Which of the following statements is/are true?
$P$: In a scripting language like JavaScript, types are typically associated with values, not variables.
$Q$: It is not possible to show images on a web page without the <img> tag of HTML.
Select the correct answer from the options given below:
Statement $P$ is true.
JavaScript is dynamically typed. In JavaScript, variables can store values of different types at different times.
So, types are associated with values, not fixed permanently with variables.
Statement $Q$ is false.
Images can also be shown on a web page using CSS background images, SVG, canvas, object tag, embed tag, etc.
So, it is possible to show images without using the <img> tag.
Therefore, only $P$ is true.
Which of the following statements is/are true?
$P$: An XML document with correct syntax as specified by W3C is called "Well Formed".
$Q$: An XML document validated against a DTD is both "Well formed" and "Valid".
$R$: An XML declaration written without the required question-mark based declaration format is syntactically correct for an XML document.
Select the correct answer from the options given below:
Statement $P$ is true.
An XML document with correct syntax is called a well-formed XML document.
Statement $Q$ is also true.
If an XML document is validated against a DTD, then it is well formed and valid.
Statement $R$ is false.
An XML declaration must follow the proper XML declaration format. Without the required question-mark based syntax, it is not syntactically correct.
Therefore, only $P$ and $Q$ are true.
<script>
// JavaScript code
</script>
Suppose that a corporate website appearance varies according to the department that owns various documents. All the documents need to follow the corporate look and feel. The HR department does not need a separate style sheet. It needs only the sheet containing the difference from the corporate sheet.
Which of the following statements justify the above scenario?
A. The styles sheets cannot stack on each other
B. The style sheets can stack on each other
C. The style sheets can override each other
D. The style sheets cannot override each other
Match List - I with List - II.
| List - I | List - II |
| (A) HTML | (I) Allow for dynamic and interactive web pages. |
| (B) DHTML | (II) Defines the structure of web pages. |
| (C) XML | (III) Object-oriented programming language for web applications. |
| (D) JAVA | (IV) Used for data storage and transport. |
Choose the correct answer from the options given below :
HTML → defines structure of web pages → (II)
DHTML → dynamic interactive web pages → (I)
XML → data storage and transport → (IV)
JAVA → object-oriented programming language → (III)
Thus matching:
(A)-(II), (B)-(I), (C)-(IV), (D)-(III)
| List-I | HTML Element / Attribute | List-II | Use |
|---|---|---|---|
| (a) | Frame attribute | (i) | to create link in HTML |
| (b) | <tr> tag | (ii) | for vertical alignment of content in cell |
| (c) | Valign attribute | (iii) | to enclose each row in table |
| (d) | <a> tag | (iv) | to specify the side of the table frame that display border |
Frame attribute is used to specify the side of the table frame that displays border.
So, (a) $\rightarrow$ (iv)
<tr> tag is used to enclose each row in a table.
So, (b) $\rightarrow$ (iii)
Valign attribute is used for vertical alignment of content in a cell.
So, (c) $\rightarrow$ (ii)
<a> tag is used to create links in HTML.
So, (d) $\rightarrow$ (i)
Hence, correct matching is:
$(a)-(iv),\ (b)-(iii),\ (c)-(ii),\ (d)-(i)$
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.