CS202 Quiz#4 24july23 FINALS by MISS MEHWISH

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

We also provide Past papers for Mids.

and Finals
Cross Check your answers before submitting directly from the file. We are not
responsible for 100% correction as human error exists
1. Which of the following is the default character encoding for XML documents?
Options:
a) UTF-8
b) UTF-8
c) UTF-8
Correct option: a) UTF-8

2. In an XML document, all elements can contain ________________.


Options:
a) text
b) All of the given options
c) attributes
d) sub elements
Correct option: d) sub elements

3. JSON makes it possible to store ________ objects as text.


Options:
a) C
b) Java
c) C++
d) JavaScript
Correct option: d) JavaScript

4. __________ methods are used to draw a straight line on the HTML canvas.
Options:
a) moveTo() and lineTo()
b) drawTo() and moveTo()
c) drawTo() and lineTo()
d) drawTo() and Stroke()
Correct option: a) moveTo() and lineTo()

5. JSON uses the syntax of _________.


Options:
a) HTML
b) CSS
c) Java
d) JavaScript
Correct option: d) JavaScript

6. While converting HTML 4 elements to HTML 5 semantic elements, <div id="menu"> will be
converted into:
Options:
a) <section>
b) <article>
c) <header>
d) <nav>
Correct option: d) <nav>

7. Which of the following is not a naming rule for XML elements?


Options:
a) It can contain spaces.
b) It cannot start with the letters xml or XML or Xml, etc.
c) It can contain letters, digits, hyphens, underscores, and periods.
d) It must start with a letter or underscore.
Correct option: a) It can contain spaces.

8. While converting HTML 4 elements to HTML 5 semantic elements, <div class="post"> will be
converted into:
Options:
a) <nav>
b) <header>
c) <article>
d) <section>
Correct option: c) <article>

9. __________ is a lightweight data-interchange format.


Options:
a) JSON
b) CSS
c) Java
d) HTML
Correct option: a) JSON

10. XML is used as a format for document storage and processing, ____________.
Options:
a) None of the given options
b) offline
c) online
d) both online and offline
Correct option: d) both online and offline

You might also like