Computer Knowledge

Markup and Web Languages

1,492 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 security
  1. True

  2. False

  3. May be

  4. Never

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

Browsers automatically include cookies for the domain in HTTP requests, including POST form submissions. This is how session state is maintained - the session ID cookie travels with the form POST to the server, allowing the server to associate the submission with the authenticated session.

Multiple choice technology security
  1. Xpath

  2. XmlReader

  3. SQL

  4. xmlPlus

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

To read XML documents, the query language used is XPath.

Option A is correct because XPath is a query language used to navigate and select elements and attributes in an XML document. It provides a syntax for addressing specific parts of an XML document, similar to how directories and files are addressed in a file system.

Option B, XmlReader, is incorrect because XmlReader is a .NET class used to read XML documents, but it is not a query language. It provides a way to read XML data sequentially and extract information from it.

Option C, SQL, is incorrect because SQL is a query language used to interact with relational databases, not XML documents.

Option D, xmlPlus, is incorrect because there is no such query language with that name for reading XML documents.

Therefore, the answer is: A. XPath

Multiple choice technology security
  1. XSS

  2. Reflection Attack

  3. Mirror Attack

  4. XSLT

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

Cross-Site Scripting (XSS) attacks work by injecting malicious scripts into web pages that other users view. When a vulnerable site echoes client-supplied data without proper sanitization, that data executes in the context of the victim's browser session, allowing attackers to steal cookies, session tokens, or perform actions on behalf of the victim.

Multiple choice
  1. Compiler

  2. Interpreter

  3. Browser

  4. Network

  5. Web server

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

A Web browser like Internet explorer, Chrome or FireFox can interpret the set of HTML tags within the page in order to display the page on the screen as the page's creator intended it to be viewed. It recieves the HTML tags from the server, reads it and renders or creates the page on the client system accordingly.

Multiple choice
  1. HTML tags are case sensitive.

  2. Some html tags are not required to be closed.

  3. The opening and closing html tag is optional.

  4. HTML tags can have attributes.

  5. HTML tags can be written using any text editor.

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

HTML tags are not case sensitive. For example to create a paragraph we can write P or p. The tags in XML are case sensitive.

Multiple choice
  1. input type = textbox

  2. input type = text

  3. input type = label

  4. input type = textfield

  5. textarea

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

Input type=Text or simply input creates a standard textbox. This can also have a value attribute, which sets the initial text in the textbox.

Multiple choice
  1. SGML

  2. DHTML

  3. XML

  4. JSP

  5. None of the above

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

SGML or Standard Generalized Markup Language is the standard technology for defining generalized markup language for documents. HTML is an example of SGML based languages. SGML is not a language in itself but a description of how to specify a language.

Multiple choice
  1. CSS defines how to display HTML elements.

  2. External style sheets are stored in CCS files.

  3. Styles were added from HTML 4.0.

  4. External style sheets can save a lot of work.

  5. A CSS rule has two main parts: a selector, and one or more declarations.

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

Style sheets are normally saved in external .CSS files not .CCS files.