This set focused on Web/Internet Basic MCQs – Multiple Choice Questions Answers. These Questions have been already asked in one or more Competitive Exams.We have hand picked these Questions from the old Question Papers.
1. The fourth section of a request message in HTTP is the __________
- header
- request line
- body
- a blank line
In HTTP, there are only three sections in a request message. The fourth section mentioned in the previous response is incorrect.
The three sections of a request message in HTTP are as follows:
- Request Line: This section includes the HTTP method, the target URL (Uniform Resource Locator), and the HTTP version. It specifies the action to be performed on the requested resource.
- Request Headers: These are additional fields that provide information about the request or modify the behavior of the server. Headers can include information such as the user agent, accepted content types, authentication credentials, and more.
- Request Body: This section is optional and is used to include additional data sent with the request. It is commonly used in methods like POST or PUT to send data such as form submissions, JSON payloads, or file uploads.
2. It is possible to display pictures (i.e, images) in HTML specification by using the tag
- “
” - “
” - “
”
- “
”
Yes, it is possible to display pictures or images in HTML by using the `<img>` tag.
The `<img>` tag is a self-closing tag in HTML and does not require a closing tag. It is used to embed an image within an HTML document. The `<img>` tag requires the `src` attribute, which specifies the source URL or file path of the image. Additionally, you can provide optional attributes such as `alt`, `width`, `height`, and more to control the display and behavior of the image.
Here is an example of using the `<img>` tag to display an image:
```html <img src="image.jpg" alt="Description of the image" width="200" height="150"> ```
In the above example, the `src` attribute specifies the source file "image.jpg" for the image. The `alt` attribute provides an alternative text description for the image, which is displayed if the image fails to load or for accessibility purposes. The `width` and `height` attributes specify the dimensions of the image in pixels.
By using the `<img>` tag with appropriate attributes, you can include images within your HTML documents and control their display properties.
3. SGML stands for
- Standard Generalized Markup Language
- Structured General Markup Language
- Standard Graphics Mapping Language
- Standard General Markup Link
SGML stands for Standard Generalized Markup Language.
Learn more about : What is SGML and what is its use?
4. In the URL HTTP://xxxx:yyyy/zzzz, the name of the host (or an alias for it) is _________
- HTTP
- xxxx
- yyyy
- zzzz
In the URL `HTTP://xxxx:yyyy/zzzz`, the name of the host (or an alias for it) is represented by `xxxx`. The host name identifies the network location where the web server is hosted. It can be a domain name (e.g., example.com) or an IP address (e.g., 192.168.0.1). The host name helps the client determine the specific server it needs to communicate with to retrieve the requested web page.
5. In the URL HTTP://xxxx:yyyy/zzzz, the name of the port is _________.
- HTTP
- xxxx
- yyyy
- zzzz
In the URL `HTTP://xxxx:yyyy/zzzz`, the name of the port is represented by `yyyy`. The port number is used to identify a specific communication endpoint within a host. In the case of HTTP, the default port number is 80. However, it is common to include the port number explicitly in the URL when it deviates from the default. The port number helps direct the request to the appropriate service running on the server.
6. In the URL HTTP://xxxx:yyyy/zzzz, the pathname of the file or directory where the web page is located is _______
- HTTP
- xxxx
- yyyy
- zzzz
In the URL `HTTP://xxxx:yyyy/zzzz`, the pathname of the file or directory where the web page is located is represented by `zzzz`. It refers to the specific file or directory within the server's file system hierarchy that corresponds to the requested web page. The pathname can include subdirectories if the web page is nested within a directory structure. It is used by the web server to locate and serve the requested resource to the client.
7. HTML and XML are markup languages
- Specially development for the web
- Are based on SGML
- Are versions of SGML
- Independent of SGML
HTML and XML are both markup languages based on SGML (Standard Generalized Markup Language). SGML provided the foundation for defining the syntax and structure of markup languages. HTML (Hypertext Markup Language) was derived from SGML and specifically designed for creating web pages with a predefined set of tags and elements. XML (Extensible Markup Language) was also derived from SGML but with a more flexible and customizable approach, allowing users to define their own markup tags and structure for representing structured data.