Building Modern Website (24-Jan-2022)
Building Modern Website (24-Jan-2022)
Q.2_______ property of the navigator object retrieves the version number and
platform of the browser.
A. appVersion B. version
C. appVer D. ver
Correct Answer:
Reference: Book name: Designing Modernistic Websites, Direct
reference not available
Q.3 _________ styles are placed inside the <head> selection of a particular Web
page source code.
A. External B. Inline
C. Indented D. Internal
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 65,
Heading 5.3.1
Q.4 Identify the attribute of a span tag which is used in specifying a language
code for the content in an element, in XHTML documents.
A. lang B. xml:lang
C. class D. id
Correct Answer:
Reference: Book name: Designing Modernistic Websites, Direct
reference not available
Q.5 The property of CSS is used to specify the space between element border
and the element content.
A. Max-height B. Min-width
C. padding D. spacing
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 95
Q.7 Which of the following options are new input types in HTML5? (choose 3
correct answers)
A. address B. tel
C. e-mail D. range
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 208,
Table 9.8
Q.9 Which of the following browsers require the -webkit- prefix to support CSS3
transitions? (choose 2 correct answers)
A. Apple Safari 3.1 B. Mozilla Firefox 3.7
C. Google Chrome D. Opera 10.5x
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 138
Q.10 Which of the following options are valid values that can be assigned to the
text-decoration property (choose 3 correct answers)
A. none B. overline
C. strike-through D. line-through
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 92,
Table 6.6
Q.13_______ storage keeps track of data specific to one window or tab and
discards it as soon as the user closes the tab.
A. Session B. Applicaton
C. Local D. Page
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 416,
Heading 13.12.1
Q.14 _______ uses JavaScript and CSS to make dynamic web pages.
A. JavaScript B. CSS
C. XHTML D. DHTML
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 5
Q.15 Which attribute of Audio tag identifies whether to replay the audio once it
has stopped?
A. autoplay B. preload
C. loop D. autobuffer
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 259,
Table 10.4
Q.17 The _______ element is a column or a selection that generally contains data
linked to the main information but not as relevant or important as the main
information.
A. <aside> B. <nav>
C. <mark> D. <selection>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 191
Q.18 The _______ element emphasizes the text as compared to its surrounding
text.
A. STRONG B. SUB
C. SUP D. INS
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 34
Q.20 Identify the correct method for displaying an image on a Web page.
A. <IMG source=”sample.jph” B. <IMG path=”sample.jph”
width=”200” height=”100”> width=”200” height=”100”>
C. <IMG name=”sample.jph” D. <IMG src=”sample.jph”
width=”200” height=”100”> width=”200” height=”100”>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 128
Q.21 Which of the following options are new form elements introduced in
HTML5 (choose 3 correct answers)
A. Datalist B. Progress
C. Input D. Meter
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 225,
Heading 9.12
Q.22 Which of the following meta tags indicates that the web application runs in
a full-screen mode?
A. <meta name=? B. <meta
HandheldFriendly? content=? name=”MobileOptimized”
true?/> content=”width” />
C. <meta name=?apple-mobile- D. <meta name=?
web-app-capable? content=? Formatdetection? content=?
yes?/> telephone=no?/>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, Direct
reference not found
Q.25 Which of the following options are correct values for the target attribute of
the A element? (Choose 3 correct answer)
A. _self B. _blank
C. _top D. _new
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 51,
Table 4.2
Q.26 Which of the following options are new features in HTML5? (Choose 3
correct answers)
A. <canvas> B. <div>
C. <article> D. <audio>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 8,
Heading 1.5
Q.27 Identify the correct syntax for specifying an inline style for the <p> tag.
A. <p style=”font-size: 20 px; B. <p fontstyle=”font-size: 20 px;
color: red;”></p> color: red;”></p>
C. <p font-size: 20 px; color: D. <p style=”font-size: 20; color:
red;”></p> red;”></p>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 66,
Heading 5.3.2
Q.28 Identify the correct syntax to invoke a JavaScript function named Sum() on
the click of a button on an HTML page.
A. <input type=”click value=’Add” B. <input type=button"
on click=”Sum();”/> value=’Add” on
click=”Sum();”/>
C. <input type=” onclick D. <button value=”Add”
value=’Add” on onClick=”Sum():”/>
click=”Sum();”/>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 291,
Code Snippet 8
Q.29 The ______ attribute allows the user to span a cell along a horizontal row in
an HTML table.
A. colspan B. rowspan
C. cellspan D. span
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 242,
Heading 10.2.2
Q.30 The ______ tag is used for displaying information about the data.
A. html B. meta
C. title D. script
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 20
Q.31 Identify the satellite navigation system that provides information about
the location from any part of the globe.
A. GSM B. Bluetooth
C. WIFI D. GPS
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 440,
Heading 14.2
Q.32 HTML5 canvas allows the user to create quadratic curves using the
________ method.
A. makeQuadraticCurve B. quadraticCurveTo()
C. drawQuadraticCurve() D. quadraticCurve()
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 401
Q.33 Identify the correct syntax of the <embed> tag to insert an external file
into an HTML page.
A. <embed B. <embed>
source=”sample.mp3”/>
C. <embed src=”sample.mp3”/> D. <embed file=”sample.mp3”/>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 413,
Heading 13.9
content content
Correct Answer:
Reference: Book name: Building Modern Website, page no 114, Heading 6.10
Q.40 The ______ is a textbox control that provides a list of suggestion to select from as a
user to types.
A. Autocomplete B. Form
C. Pattern D. Title
Correct Answer:
Reference: Book name: Building Modern Website, page no 224, Heading
9.11.7
Q.41 To allow multiple addresses in the e-mail field, each address needs to be
separated with _________.
A. Double semicolon B. Colon
C. comma D. semicolon
Correct Answer:
Reference: Book name: Building Modern Website, page no 211, Heading
9.10.1
Q.42 In the <img> tag, use the _________ attribute to define the image map name.
A. image map B. usemap
C. image map D. use-map
Correct Answer:
Reference: Book name: Building Modern Website, page no 202
Q.44 To declare a private class field, prefix the name of the class field with ______.
A. # B. *
C. $ D. ~
Correct Answer:
Reference: Book name: Building Modern Website, page no 379, Heading 12.9
Q.47 John needs to adjust the spacing before and between the flex lines. Which
property should he ideally use?
A. Flex-wrap B. Flex-flow
C. Align content D. Align items
Correct Answer:
Reference: Book name: Building Modern Website, page no 163
Q.49 Identify the correct method to assign a value sample.jpg to the src attribute of the IMG tag
having id img1 using document object.
A. <document.getElement(‘img1’).src = B. <document.getElement(‘img1’).id =
"sample.jpg";> "sample.jpg";>
C. <document.getElementByld(‘img1’).id = D. <document.getElementByld(‘img1’).src =
"sample.jpg";> "sample.jpg";>
Correct Answer:
Reference: Book name: Building Modern Website, page no 372
Q.50 Which of the following options will be correctly identified by the pattern /[^AB]PQ/?
A. APQ B. BPQ
C. CPQ D. ARQ
Correct Answer:
Reference: Book Name: Building Modern Website, page no 315