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

What is the purpose of using JavaScript in web development?

  1. To define the structure and layout of a web page

  2. To add styling and formatting to a web page

  3. To make a web page interactive

  4. To optimize the performance of a web page

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

JavaScript is primarily used to add interactivity and dynamic behavior to web pages, allowing users to interact with elements such as forms, buttons, and animations.

Multiple choice

What is the recommended file format for publishing virtual tours on the web?

  1. HTML5

  2. Flash

  3. Java

  4. XML

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

HTML5 is the recommended file format for publishing virtual tours on the web, as it is widely supported by modern browsers and devices, providing a seamless and interactive experience for viewers.

Multiple choice

Which online platform is known for its collaborative writing projects, allowing multiple authors to contribute to a single story or poem?

  1. Wattpad

  2. Goodreads

  3. Scribd

  4. Inkitt

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

Wattpad is a popular online platform that enables collaborative writing projects, where multiple authors can contribute to the same story or poem.

Multiple choice

Which language is commonly employed in web development within the Commonwealth of Nations?

  1. HTML

  2. CSS

  3. JavaScript

  4. PHP

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

JavaScript is a popular language for web development in the Commonwealth of Nations due to its versatility, interactivity, and wide adoption.

Multiple choice

In the interactive storytelling platform "Twine", authors create non-linear narratives where readers can navigate through different paths and endings. What is the name of the file format used in Twine?

  1. JSON

  2. HTML

  3. XML

  4. TwineScript

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

TwineScript is the file format used in Twine to create interactive stories and games.

Multiple choice

What is the most common markup language used to create web pages?

  1. HTML

  2. CSS

  3. JavaScript

  4. PHP

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

HTML (Hypertext Markup Language) is the standard markup language for creating web pages.

Multiple choice

What is the purpose of CSS?

  1. To define the structure of a web page

  2. To define the appearance of a web page

  3. To define the behavior of a web page

  4. To define the content of a web page

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

CSS (Cascading Style Sheets) is used to define the appearance of web pages, including the layout, fonts, and colors.

Multiple choice

What is the purpose of JavaScript?

  1. To define the structure of a web page

  2. To define the appearance of a web page

  3. To define the behavior of a web page

  4. To define the content of a web page

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

JavaScript is a scripting language used to define the behavior of web pages, such as responding to user input, performing calculations, and creating dynamic content.

Multiple choice

Which of the following is NOT a common type of cross-site scripting (XSS) vulnerability?

  1. Reflected XSS

  2. Stored XSS

  3. DOM-based XSS

  4. Self-XSS

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

Self-XSS is not a common type of XSS vulnerability. It occurs when a script is executed by the victim's browser without any interaction from the attacker.

Multiple choice

Which metadata element is typically used to describe the author of a digital resource?

  1. Title

  2. Creator

  3. Subject

  4. Description

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

The 'Creator' metadata element is commonly used to identify the individual or organization responsible for creating the digital resource.

Multiple choice

Which metadata standard is commonly used for describing cultural heritage resources?

  1. Metadata Object Description Schema (MODS)

  2. Resource Description Framework (RDF)

  3. Extensible Markup Language (XML)

  4. Hypertext Transfer Protocol (HTTP)

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

The Metadata Object Description Schema (MODS) is a widely adopted standard for describing cultural heritage resources. It provides a comprehensive set of metadata elements to capture information about cultural objects, such as their title, creator, physical characteristics, and cultural context.

Multiple choice

Which metadata element is typically used to describe the language of a digital resource?

  1. Title

  2. Creator

  3. Language

  4. Description

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

The 'Language' metadata element is commonly used to identify the language in which a digital resource is created or expressed.

Multiple choice

Which HTML element is used to define the main content of a web page?

  1. <head>

  2. <body>

  3. <title>

  4. <meta>

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

The `` element contains the main content of a web page, including text, images, and other elements.

Multiple choice

What is the correct syntax for a CSS rule that sets the font-size of an element?

  1. font-size: 12px;

  2. font: 12px;

  3. size: 12px;

  4. text-size: 12px;

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

The font-size property is used to set the font size of an element, and the value can be specified in pixels (px), ems, or percentages.

Multiple choice

What is the purpose of the document.querySelector() method in JavaScript?

  1. To select the first element that matches a specified CSS selector

  2. To select all elements that match a specified CSS selector

  3. To create a new element in the DOM

  4. To remove an element from the DOM

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

The document.querySelector() method returns the first element that matches a specified CSS selector.