IT Questions and Answers :)

Thursday, August 8, 2019

What does BASH (as in the shell) stand for?

What does BASH (as in the shell) stand for?

  • Bright And Simple sHell
  • Bourne Again SHell
  • Basic ASCII SHell
  • Bad Assed SHell 
What does BASH (as in the shell) stand for?

EXPLANATION

Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell. First released in 1989, it has been distributed widely as the default login shell for most Linux distributions and Apple's macOS. A version is also available for Windows 10. It is also the default user shell in Solaris 11.

Share:

What does DLL stand for?

What does DLL stand for?

  • Dynamic Local Link
  • Dynamic Link Library
  • Data Link Library
  • Data Library Link 
What does DLL stand for?

EXPLANATION

Dynamic Link Libraries (DLL)s are like EXEs but they are not directly executable. They are similar to .so files in Linux/Unix. That is to say, DLLs are MS's implementation of shared libraries.
DLLs are so much like an EXE that the file format itself is the same. Both EXE and DLLs are based on the Portable Executable (PE) file format. DLLs can also contain COM components and .NET libraries.
What does a DLL contain?
A DLL contains functions, classes, variables, UIs and resources (such as icons, images, files, ...) that an EXE, or other DLL uses.
Types of libraries:
On virtually all operating systems, there are 2 types of libraries. Static libraries and dynamic libraries. In windows the file extensions are as follows: Static libraries (.lib) and dynamic libraries (.dll). The main difference is that static libraries are linked to the executable at compile time; whereas dynamic linked libraries are not linked until run-time.
More on static and dynamic libraries:
You don't normally see static libraries though on your computer, because a static library is embedded directly inside of a module (EXE or DLL). A dynamic library is a stand-alone file.
A DLL can be changed at any time and is only loaded at runtime when an EXE explicitly loads the DLL. A static library cannot be changed once it is compiled within the EXE. A DLL can be updated individually without updating the EXE itself.
Loading a DLL:
A program loads a DLL at startup, via the Win32 API LoadLibrary, or when it is a dependency of another DLL. A program uses the GetProcAddress to load a function or LoadResource to load a resource. 

Share:

How many domains can you run on an instance of Windows server?

How many domains can you run on an instance of Windows server?

  • 1
  • 25
  • 4
  • 16 
How many domains can you run on an instance of Windows server?


EXPLANATION

 Every forest starts with a single domain. The maximum number of users that a single domain forest can contain is based on the slowest link that must accommodate replication between domain controllers and the available bandwidth that you want to allocate to Active Directory Domain Services (AD DS).

Share:

Which of the following was the first search engine on the Internet?

Which of the following was the first search engine on the Internet?

  • Yahoo
  • Google
  • AltaVista
  • Archie

Which of the following was the first search engine on the Internet?

EXPLANATION

Archie



  • The first search engine - it searched FTP sites to create index of downloadable files
  • Due to limited space, only the listings were available and not for the contents for each site 
  • Archie is a tool for indexing FTP archives, allowing people to find specific files. It is considered to be the first Internet search engine.[2] The original implementation was written in 1990 by Alan Emtage, then a postgraduate student at McGill University in Montreal, and Bill Heelan, who studied at Concordia University in Montreal and worked at McGill University at the same time

 

 
Share:

Which of the commands below would you use to insert an image into an HTML file?

Which of the commands below would you use to insert an image into an HTML file?

  • <img src="image1.jpg" alt="image">
  • <picture src="image1.jpg" alt="image">
  • <pictures src="image1.jpg" alt="image">
  • <image src="image1.jpg" alt="image"> 
Which of the commands below would you use to insert an image into an HTML file?

EXPLANATION

Let’s pretend we have an image of a dog on our computer saved as “funny-dog.jpg” and we want to insert it into a webpage; this is the code we would use:
1<img src="funny-dog.jpg">
Let’s analyze this code. First, <img> is the code for creating an image element. Next, the letters “src” are used as an attribute (which you learned about in Lesson 3: Attributes and Values) and stand for “source”. Basically, we need to provide the web browser with a value to the source of the image. Naturally, the value for the source attribute is “funny-dog.jpg”. This example assumes your image file is located in the same directory as your HTML file. If, for example, you had your image file inside a folder named “images” your code would look like this:
1<img src="images/funny-dog.jpg">

Self Closing Elements

As you can see, in both code examples so far there has not been an ending </img> tag, because the image code is a “self closing” element. This is because unlike a paragraph, we won’t have a plethora of content inside our <img> element, but rather a single image. In fact, HTML5 does not require us to ever “close” our elements, but for organizational reasons I recommend including traditional closing tags for most elements.
There is one additional bit of code we must add before we are finished. We must assign an “alt” attribute and value to our image. The “alt” attribute stands for “alternative” and is used to provide a text-based alternative for viewers incase the image will not load, or if they are visually impaired. Here is what our code will look like:
1<img src="funny-dog.jpg" alt="A funny dog sitting on the grass.">

 

Share:

Popular Posts