Computer Knowledge

Markup and Web Languages

1,701 Questions

Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.

HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility

Markup and Web Languages Questions

Multiple choice technology web technology
  1. <css>

  2. <script>

  3. <style>

  4. <styles>

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The tag is used to define an internal style sheet within an HTML document. It is placed in the <head> section and contains CSS rules between opening and closing tags. Option A (<css>) doesn't exist. Option B (<script>) is for JavaScript. Option D (<styles>) is incorrect.

Multiple choice technology web technology
  1. class

  2. style

  3. styles

  4. font

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The style attribute is used to define inline CSS styles directly on HTML elements. For example:

. Option A (class) is for class names, not inline styles. Option C (styles) is not a valid attribute. Option D (font) is not the correct attribute for general styling.

Multiple choice technology web technology
  1. body {color: black}

  2. {body:color=black(body}

  3. {body;color:black}

  4. body:color=black

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

CSS syntax uses a selector followed by curly braces containing property:value pairs. The correct format is: selector { property: value; }. Option A (body {color: black}) correctly shows this syntax. Options B and C have incorrect bracket placement. Option D uses an equals sign instead of curly braces and colons, which is JavaScript object syntax, not CSS.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Web components are a specific set of web platform APIs (Custom Elements, Shadow DOM, HTML Templates) that create reusable custom elements. An HTML page is a complete document served by a web server, not a reusable component.

Multiple choice technology web technology
  1. XML

  2. HTTP

  3. FTP

  4. All the above

Reveal answer Fill a bubble to check yourself
A,B Correct answer
Explanation

The basic web service platform uses XML for encoding/decoding data (A) and HTTP as the transport protocol (B). FTP is not a standard web service transport protocol, so 'All the above' is incorrect.

Multiple choice technology programming languages
  1. EncType: application/x-www-urlencoded

  2. Content-Type: application/x-www-form-urlencoded

  3. Content-Type: multipart/form-data

  4. Encoding-Type: multipart/form-data

  5. Accept-Encoding: application/www-form-encoded

  6. Encoding-Type: multipart/www-form-data Request

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The 'Content-Type: application/x-www-form-urlencoded' header tells the server how to decode the parameter data from an HTML form submission. This is the standard encoding for form data where key-value pairs are URL-encoded (special characters converted to %XX format). The servlet container uses this header to properly parse the request body and populate the HttpServletRequest's parameter methods. Note the header name is 'Content-Type', not 'EncType' or 'Encoding-Type'.

Multiple choice technology web technology
  1. System.Data.Xml

  2. System.Xml

  3. System.DOM.Xml

  4. System.DOM

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

System.Xml is the namespace in .NET that provides XML DOM (Document Object Model) support. It contains classes like XmlDocument, XmlNode, XmlElement for parsing and manipulating XML documents. There is no System.DOM namespace in .NET, and System.Data.Xml is not the primary XML namespace.

Multiple choice technology web technology
  1. System.Data.Xml

  2. System.XML

  3. System.DOM.Xml

  4. System.DOM

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

System.Xml (same as System.XML - case difference) is the .NET namespace for XML DOM support. This question is a duplicate of 135084 testing the same concept - that XML functionality lives in the System.Xml namespace which provides XmlDocument and related DOM classes.

Multiple choice technology programming languages
  1. @Responses

  2. @AllChildren

  3. @AllDescendents

  4. @AllResponses

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

@AllDescendants is the Lotus Notes formula function that retrieves all response documents AND all response-to-response documents (the entire hierarchy below a parent). @Responses only gets direct responses, while @AllChildren is not a standard function.