0% found this document useful (0 votes)
18 views9 pages

Building Modern Website (24-Jan-2022)

The document contains a series of questions and answers related to building modern websites, covering topics such as HTML, CSS, JavaScript, and web design principles. Each question includes multiple-choice options, the correct answer, and references to a textbook titled 'Designing Modernistic Websites.' The content is structured as a quiz for educational purposes in a web development course.

Uploaded by

mhammadsamad178
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views9 pages

Building Modern Website (24-Jan-2022)

The document contains a series of questions and answers related to building modern websites, covering topics such as HTML, CSS, JavaScript, and web design principles. Each question includes multiple-choice options, the correct answer, and references to a textbook titled 'Designing Modernistic Websites.' The content is structured as a quiz for educational purposes in a web development course.

Uploaded by

mhammadsamad178
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

PRIME 2.

0 Sem1 Building Modern Websites

Q.1 ______ is used to point to a specific location in the document.


A. Break out B. link
C. anchor D. tag
Correct Answer:
Reference: Book name: Designing Modernistic Websites, Page no 49,
Heading 4.2

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.6 Which of the following escape sequence is used in JavaScript to insert a


horizontal tab in an HTML page?
A. \n B. \r
C. \f D. \t
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 285,
Table 11.4

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

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.8 Which of the following options is a composite data type in JavaScript?


A. Boolean B. Number
C. String D. Object
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 283,
Table 11.3

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.11 To use an event on a page using jQuery, in which of the following


functions should the user call the event?
A. $(document).call() B. $(document).ready()
C. $(document).start() D. $(document).run()
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 297,
Heading 11.15.2

Q.12 Identify the correct syntax to declare a pseudo-class.


A. Selector_name:state_name{valu B. Selector_name:state_name
es} {property: value}
C. State_name:selector_name D. Selector_name:state_name{}
{property: value}
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 74

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

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.16 Identify the correct syntax of doctype in HTML5.


A. <?DOCTYPE html> B. <!DOCTYPE html>
C. <!DOCTYPE html!> D. <?DOCTYPE htm?>
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 20

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

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

Q.19 Identify the category of pattern matching where characters or symbols


allow matching characters the reappear frequently in a sting.
A. Position matching B. Character classes
C. Repetition D. Back Reference
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 315

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.23 Identify the correct syntax to create a geolocation object in JavaScript.


A. <var geoloc = B. <var geoloc =
windows.navigator.geolocation; window.navigator.geolocation;>
>
C. <var geoloc = D. <var geoloc =
navigator.geolocation; > navigator.window.geolocation; >
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 441,
Heading 14.3.1

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

Q.24 Which of the following options is text-level semantic tag?


A. Selection B. Aside
C. Nav D. Mark
Correct Answer:
Reference: Book name: Designing Modernistic Websites, page no 187,
Heading 9.2.2

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

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

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

Q.34 Identify the four components of a box model.


A. Margins, padding, type, and B. Selection, padding, borders, and
content content
C. Margins, padding, borders, and D. Margins, selection, borders, and

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

content content
Correct Answer:
Reference: Book name: Building Modern Website, page no 114, Heading 6.10

Q.35 _______ makes the structure of grid.


A. Grid cell B. Grid line
C. Grid track D. Grid area
Correct Answer:
Reference: Book name: Building Modern Website, page no 170, Table 8.3

Q.36 All grid items are placed inside ________.


A. Columns and rows B. Grid gap
C. Grid area D. Vertical grid line
Correct Answer:
Reference: Book name: Building Modern Website, page no 169, Heading 8.3

Q.37 What component make a block-level grid container?


A. Display B. Flex direction
C. Grid D. flex item
Correct Answer:
Reference: Book name: Building Modern Website, page no 171

Q.38 In a flexbox, the start point of cross axis is ________.


A. Cross start B. Cross begin
C. start D. cross-start
Correct Answer:
Reference: Book name: Building Modern Website, page no 156 Table 8.1

Q.39 ________ is a form specific element.


A. datalist B. progress
C. meter D. output
Correct Answer:
Reference: Book name: Building Modern Website, page no 226, Heading
9.12.1

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

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

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.43 An object that represents eventual success or failure of an asynchronous


operation is _____.
A. method B. class
C. promise D. handler
Correct Answer:
Reference: Book name: Building Modern Website, page no 377

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.45 The two features in JSON are _______.


A. Strong and exchange B. Serialization and deserialization
C. Stack and unstack D. Form and deform
Correct Answer:
Reference: Book name: Building Modern Website, page no 383, Heading 12.11

Q.46 .flex-container {display: flex ;} what does this indicate?


A. This defines how the flex items B. This specifies that flex items will
should be stacked. wrap if required.
C. This define the type of flexbox of D. This keep all flex items on one line.
the parent container.
Correct Answer:
Reference: Book name: Building Modern Website, page no 156, Heading 8.2.1

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

Page PAGE 8 of NUMPAGES 8


PRIME 2.0 Sem1 Building Modern Websites

Correct Answer:
Reference: Book name: Building Modern Website, page no 163

Q.48 The box model refers to the ______ of HTML element.


A. selectors B. design and layout
C. alignment D. text styles
Correct Answer:
Reference: Book name: Building Modern Website, page no 114, Heading 6.10

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

Page PAGE 8 of NUMPAGES 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy