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 platforms and products
  1. Action not to be taken on the page defined in Page Context

  2. Where you can use $Any, $None
  3. Action will be taken on the properties of the page defined in Page Context

  4. Only used in Declarative rules

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

Page Context defines a specific page scope within the clipboard structure where rule actions will be executed. It allows rules to target properties on a particular page rather than operating broadly. The $Any and $None keywords are related but serve different purposes in PEGA expression syntax.

Multiple choice technology
  1. The <head> section

  2. The <body> section

  3. Both the <head> section and the <body> section are correct

  4. none

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

JavaScript can be placed in both and sections. The placement affects execution timing - scripts run before page load, scripts run after.

Multiple choice technology
  1. True

  2. False

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

External JavaScript files use a .js extension and contain only JavaScript code, not HTML. The tag is used in HTML files to reference external JS files, but the external file itself contains pure JavaScript without any tags.

Multiple choice technology
  1. <!--This is a comment-->

  2. //This is a comment

  3. 'This is a comment

  4. ?this is a comment ?

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

JavaScript uses double forward slashes (//) for single-line comments. Option A () is HTML comment syntax, not JavaScript. Options C and D are not valid comment syntax in any language.

Multiple choice technology web 2.0
  1. It is used to indicate ownership of content

  2. It is used to flag inappropriate content

  3. It refers to keyword that users attach to content

  4. It is used to indicate featured content on a website

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

A tag is a user-defined keyword or metadata term assigned to a piece of information or media content, facilitating taxonomy and search. It does not indicate ownership, flag inappropriate content, or specify featured website content, which are handled by authorization rules, moderation flags, and administrative settings respectively.

Multiple choice technology web technology
  1. H1

  2. H2

  3. H3

  4. H4

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

HTML headings range from H1 to H6, where H1 represents the highest (most important) level and is displayed with the largest font size by default. H6 is the smallest heading level. Each page should typically have only one H1 element.

Multiple choice technology web technology
  1. Syntax

  2. Tags

  3. Dialog

  4. Laws

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

To solve this question, the user needs to have basic knowledge of HTML. The user should know that HTML is a markup language that has a defined set of rules for writing valid code.

The correct answer is:

A. Syntax

Option A is the correct answer because the set of rules that govern the structure and format of HTML code is called its syntax. The syntax of HTML follows a specific set of rules that define how elements can be combined to create valid web pages.

Option B is incorrect because tags are the building blocks of HTML elements and are used to define and format content.

Option C is incorrect because dialog is not related to HTML; it is a user interface component that displays content to the user.

Option D is incorrect because HTML does not have laws; it has rules that define the structure and format of valid HTML code.

Therefore, the correct answer is:

The Answer is: A. Syntax

Multiple choice technology programming languages
  1. Microsoft Internet Explorer 3.02

  2. Netscape Navigator 3.02

  3. Opera 3.51

  4. SunSoft HotJava 1.0

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

SunSoft HotJava 1.0, released in the late 1990s, was primarily designed to showcase Java Applets and did not implement JavaScript. Contrastingly, Microsoft Internet Explorer 3.02, Netscape Navigator 3.02, and Opera 3.51 all featured built-in support for JavaScript, which had quickly become the standard scripting language for web browsers.

Multiple choice technology programming languages
  1. JavaScript 1.3 Standard

  2. ISO-262 Standard

  3. IEEE-262 Standard

  4. None of the above

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

The JavaScript international standard is called ECMAScript (standard ECMA-262), not any of the names listed in options A, B, or C. 'JavaScript 1.3 Standard', 'ISO-262', and 'IEEE-262' are not correct standard names. Therefore 'None of the above' is the correct answer.

Multiple choice technology programming languages
  1. JavaScript is DHTML plus CSS plus Document Object Model.

  2. DHTML is Document Object Model plus JavaScript plus CSS.

  3. Document Object Model is JavaScript plus DHTML plus CSS.

  4. JavaScript has nothing to do with DHTML.

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

To answer this question, the user needs to have a basic understanding of JavaScript and DHTML.

JavaScript is a programming language used to create interactive effects on web pages. DHTML stands for Dynamic HTML, which is a combination of HTML, CSS, and JavaScript used to create dynamic web content.

Now, let's evaluate each option to determine the correct answer:

A. JavaScript is DHTML plus CSS plus Document Object Model. This statement is incorrect as DHTML is the combination of HTML, CSS, and JavaScript. JavaScript is an integral part of DHTML, not an addition to it.

B. DHTML is Document Object Model plus JavaScript plus CSS. This statement is correct. DHTML is the combination of HTML, CSS, and JavaScript used to create dynamic web content. The Document Object Model (DOM) is a programming interface for HTML and XML documents, and it is used by JavaScript to modify the content and structure of web pages.

C. Document Object Model is JavaScript plus DHTML plus CSS. This statement is incorrect as JavaScript is a part of DHTML, not the other way around. The DOM is used by JavaScript to modify DHTML, not the other way around.

D. JavaScript has nothing to do with DHTML. This statement is incorrect. JavaScript is an essential part of DHTML and is used to create dynamic web content.

Therefore, the correct answer is:

The Answer is: B. DHTML is Document Object Model plus JavaScript plus CSS.