0% found this document useful (0 votes)
289 views72 pages

Front End Mcqs

The document is a comprehensive guide containing multiple-choice questions (MCQs) focused on front-end web development, specifically HTML and CSS. It covers various topics such as HTML tags, attributes, and CSS properties, along with their correct answers. This resource is designed for individuals seeking to enhance their knowledge and mastery of front-end development concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
289 views72 pages

Front End Mcqs

The document is a comprehensive guide containing multiple-choice questions (MCQs) focused on front-end web development, specifically HTML and CSS. It covers various topics such as HTML tags, attributes, and CSS properties, along with their correct answers. This resource is designed for individuals seeking to enhance their knowledge and mastery of front-end development concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 72

VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

FRONT END MCQ


1. HTML stands for –
A. HighText Machine Language
B. HyperText and links Markup Language
C. HyperText Markup Language
D. None of these
Ans. HyperText Markup Language

2. Which of the following tag is used for inserting the largest heading in HTML?
A. <h3>
B. <h1>
C. <h6>
D. <h7>
Ans . <h1>
3. Which character is used to represent the closing of a tag in HTML?
A. \
B. !
C. /
D. .
Ans. /
4. Which of the following element is responsible for making the text italic in HTML?
A. <i> B. <italic> C. <it> D. <pre>
Ans . <i>
5. <input> is
A. a format B. an empty C. All of the D. None of the
tag. tag. above above
Ans . an empty tag.
6. Which of the following tag is used to define options in a drop-down selection list?
A. <select> B. <list> C. <dropdown> D. <option>
Ans . <option>
7. The <hr> tag in HTML is used for -

A. new B. vertical C. new D. horizontal


line ruler paragraph ruler
Ans . horizontal ruler
8. Which of the following HTML tag is used to display the text with scrolling effect?

D. None of
A. <marquee> B. <scroll> C. <div> the above
Ans . <marquee>
9. Which of the following is the container for <tr>, <th>, and <td> ?
A. <data> B. <table> C. <group> D. All of the above
Ans . <table>
10. Which of the following is the correct way to create a list using the lowercase letters?

A. <ol alpha = "a" > B. <ol type = "a"> C. <ol letter = "a"> D. None of the above
Ans . <ol type = "a">
11. Which of the following HTML attribute is used to define inline styles?

1|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

A. style B. type C. class D. None of the above


Ans . style
12. A program in HTML can be rendered and read by -

A. Web browser B. Server C. Interpreter D. None of the above


Ans . Web browser
13. In HTML5, which of the following tag is used to initialize the document type?

A. <Doctype HTML> B. <\Doctype html> C. <Doctype> D. <!DOCTYPE html>


Ans . <!DOCTYPE html>
14. Which is the correct way to comment out something in HTML?

A. Using ## and # B. Using <!-- and --> C. Using </-- and -/-> D. Using <!-- and -!>
Ans. Using <!-- and -->
15. How many sizes of headers are available in HTML by default?
A. 5 B. 1 C. 3 D. 6
Ans . 6
16. Which of these elements in HTML can be used for making a text bold?
A. <a> B. <pre> C. <br> D. <b> E.
Ans. <b>
17. Who is the father of HTML?
B. Tim
A. Rasmus Berners C. Brendan D. Sergey
Lerdorf -Lee Eich Brin
Ans. Tim Berners-Lee
18. What is DOM in HTML?
A. Language dependent application programming
B. Hierarchy of objects in ASP.NET
C. Application programming interface
D. Convention for representing and interacting with objects in html documents
Ans. Convention for representing and interacting with objects in html documents
19. which part of the HTML metadata is contained?
A. head tag B. title tag C. html tag D. body tag
Ans. head tag
20. Which element is used to get highlighted text in HTML ?
A. <u> B. <mark> C. <highlight> D. <b>
Ans. <mark>
21. Which of the following elements in HTML defines video or movie content?
A. <video> B. <movie> C. <audio> D. <media>
Ans. <video>
22. Which of the following is not the element associated with the HTML table layout?
A. alignment B. color C. size D. spanning
Ans. color
23. Which element is used for or styling HTML layout?
A. CSS B. jQuery C. JavaScript D. PHP
Ans. CSS
24. HTML is a subset of ___________
A. SGMT B. SGML C. SGME D. XHTML

2|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans. SGML
25. Which HTML element is used for short quote?
A. <em> B. <abbr> C. <q> D. <blockquote>
Ans. <q>

26. Which of the following HTML tag is used to add a row in a table?
A. <th> B. <td> C. <tr> D. <tt>
Ans. <tr>
27. What is the work of <address> element in HTML ?
D. contains
B. contains contact
A. contains IP home details for
address address C. contains url author
Ans. contains contact details for author
28. Which tag is used to create a dropdown in HTML Form?
A. <input> B. <select> C. <text> D. <textarea>
Ans. <select>
29. Which of the following extension is used to save an HTML file?
A. .hl B. .h C. .htl D. .html
Ans. .html
30. Which attribute is not essential under <iframe>?
A. frameborder B. width C. height D. src
Ans. frameborder
31. Which tag is used to underline the text in HTML?
A. <p> B. <u> C. <i> D. <ul>
Ans. <u>
32. Which of the following is an HTML specification used to add more information to HTML
tags?
A. Modifydata B. Minidata C. Macrodata D. Microdata
Ans. Microdata
33. Which of the following HTML element is used for canvas graphics?
A. <css> B. <paint> C. <canvas> D. <graphic>
Ans. <canvas>
34. In HTML, which tag is used to make a numbered list?
A. <ol> B. <ul> C. <li> D. <ll>
Ans. <ol>
35. In HTML, which tag is used to create a blank line?
A. <b> B. <br> C. <em> D. <a>
Ans. <br>
36. Which element functions similarly to the b> element?
A. <blockquote> B. <strong> C. <em> D. <i>
Ans. <strong>
37. HTML is the standard ____language for creating Web pages.
A. scripting B. programming C. styling D. markup
Ans. markup
38. Which tag/element defines the HTML document's body?
A. <HTML> B. <HTMLbody> C. <bdy> D. <body>
Ans. <body>
39. Which tag is the root element of an HTML page?
A. <html> B. <title> C. <head> D. <body>
3|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans. <html>
40. HTML tags with no content are called _____.
A. Special tags B. Advanced tags C. Empty tags D. Other tags
Ans. Empty tags

41. HTML headings are defined with the _____ tags.

A. <head1> to <head6> B. <p1> to <p6> C. <h1> to <h6> D. <h1> to <h3>


Ans. <h1> to <h6>
42. Which tag is used to display a horizonal rule (horizonal line)?
A. <br> B. <hr> C. <hr>...</hr> D. <line>
Ans. <hr>
43. Which tag is used to define a line break?
A. <\n> B. <lr> C. <br> D. <br>...</br>
Ans. <br>
44. Which tag is used to define preformatted text?
A. <pf> B. <p> C. <pre> D. <code>
Ans. <pre>
45. Which HTML tag is used to define emphasized text?
A. <italic> B. <em> C. <i> D. <it>
Ans. <em>
46. Which HTML tag is used to define smaller text?
A. <normal> B. <span> C. <smaller> D. <small>
Ans. <small>
47. Which HTML tag is used to define strike a line through deleted text?
A. <delete> B. <del> C. <deleted> D. <through>
Ans. <del>
48. Which HTML tag is used to define subscript text?
A. <sub> B. <subscript> C. <s> D. <subscripted>
Ans. <s>
49. Which HTML tag is used to define superscript text?
A. <sup> B. <superscript > C. <s> D. <superscripted>
Ans. <sup>
50. Which HTML tag is used to define an abbreviation or an acronym?
A. <abbreviation> B. <abbr> C. <acronym> D. <acr>
Ans. <abbr>
51. What HTML tag is used to define the contact information for the author/owner of a
document or an article?
A. <contact> B. <authorinfo> C. <address> D. <addr>
Ans. <address>
52. Which ____ attribute specifies where to open the linked document?
A. href B. link C. src D. target
Ans. target
53. Which attribute is often used to point to a class name in a style sheet?
A. style B. css C. src D. class
Ans. class
54. Which attribute is used to specify a unique id for an HTML element?
A. style B. css C. id D. class
Ans. id
55. Which tag specifies an inline frame?
4|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

A. <frame> B. <iframe> C. <inlineframe> D. <frames>


Ans. <iframe>
56. Which tag is used to create an HTML form for user input?
A. <form> B. <input> C. <form_put> D. <form_get>
Ans. <form>
57. Which tag is used to display a radio button?
A. <input B. <input C. <input D. <input
type="textbox"> type="checkbox"> type="radio"> type="text">
Ans. <input type="radio">
58. Which input type reset defines a reset button that will reset all form values to their default
values?
A. clear B. clear:both C. reset D. refresh
Ans. reset
59. Which tag is used to display a submit button?
A. <input B. <input C. <input D. <input
type="sub type="checkb type="tex type="rad
mit"> ox"> t"> io">
Ans. <input type="submit">
60. Which of the following is the correct syntax to make the background-color of all paragraph
elements to yellow?
A. p {background- B. p {background- C. all {background- D. all p {background-
color : yellow;} color : #yellow;} color : yellow;} color : #yellow;}
Ans. p {background-color : yellow;}
61. The CSS property used to make the text bold is -
A. font-weight :
bold B. weight: bold C. font: bold D. style: bold
Ans. font-weight : bold
62. The CSS property used to specify the transparency of an element is -
A. opacity B. filter C. visibility D. overlay
Ans. opacity
63. Which of the following CSS property is used to specify the space between every letter inside
an element?
A. alpha- B. character- C. letter- D. alphabet-
spacing spacing spacing spacing
Ans. letter-spacing
64. Which of the following syntax is correct in CSS to make each word of a sentence start with a
capital letter?
A. text-style : C. text-transform : D. text-transform :
capital; B. transform : capitalize; capital; capitalize;
Ans. text-transform : capitalize;
65. How to select the elements with the class name "example"?
A. example B. #example C. .example D. Class example
Ans..example
66. Which of the following is the correct syntax to select all paragraph elements in a div
element?
A. div p B. p C. div#p D. div ~ p
Ans. div p
67. Which of the following is the correct syntax to select the p siblings of a div element?
A. p B. div + p C. div p D. div ~ p
Ans. div ~ p
68. The CSS property used to draw a line around the elements outside the border?
5|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

A. border B. outline C. padding D. line


Ans. outline
69. Which of the following CSS property is used to add shadows to the text?
D. text-
A. text-shadow B. text-stroke C. text-overflow decoration
Ans. text-shadow
70. Which of the following is not a value of the font-variant property in CSS?
A. normal B. small-caps C. large-caps D. inherit
Ans. large-caps
71. The CSS property used to set the maximum width of the element's content box is -
A. max-width B. height C. max-height D. position
property property property property
Ans. max-width property
72. Which of the following is not a type of combinator?
A. > B. ~ C. + D. *
Ans. *
73. Which if the following CSS function allows us to perform calculations?
A. calc() function B. calculator() function C. calculate() function D. cal() function
Ans. calc() function
74. The CSS property used to set the maximum height of the element's content box is -
A. max-width B. height C. max-height D. position
property property property property
Ans. max-height property
75. Which of the following CSS property is used to represent the overflowed text which is not
visible to the user?
A. text-shadow B. text-stroke C. text-overflow D. text-decoration
Ans. text-overflow
76. Which of the following CSS property is used to set the blend mode for each background
layer of an element?
A. background-blend- B. background- C. background- D. background-
mode property collapse property transform property origin property
Ans. background-blend-mode property
77. Which of the following CSS property is used to set the horizontal alignment of a table-cell
box or the block element?
A. text-align B. text-transform C. text-shadow
property property property D. text-decoration
Ans. text-align property

78. The CSS property which is used to set the text wider or narrower compare to the default
width of the font is -
A. font-stretch B. font-weight C. text-transform D. font-variant
property property property property
Ans. font-stretch property
79. The CSS property used to set the indentation of the first line in a block of text is -
A. text-indent B. text-stroke C. text-decoration D. text-overflow
property property property property
Ans. text-indent property
80. The correct syntax to give a line over text is -
A. text-decoration: B. text-decoration: C. text-decoration: D. text-decoration:
line-through none overline underline
Ans. text-decoration: overline
6|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

81. The “color:red” in CSS can be known as _____________:


A. Value B. Declaration C. Selector D. Rule
Ans. Declaration
82. In an HTML page, which of these tags is used for embedding CSS?

A. <!DOCTYPE html> B. <css> C. <style> D. <script>


Ans. <style>
83. Which of these functions would convert the color of an element by the filter property to a
grey shade, for use?
A. grayscale() B. shade() C. brightness() D. black()
Ans. grayscale()
84. Which of these functions is the 2D transformation in the matrix format?
A. perspective B. matrix3d() C. matrix2d() D. matrix()
Ans. matrix()
85. Which one of these is NOT an appropriate value for the font-variant property?
A. small-caps B. large-caps C. default D. inherit
Ans. large-caps
86. Which value is a slightly bolder weight than the standard bold in the font attribute?
A. dark B. lighter C. light D. emphasize
Ans. dark
87. No single, integrated ____________________ specification exists, because it gets split into
various separate modules:
A. CSS4 B. CSS3 C. CSS2 D. CSS1
Ans. CSS4
88. ___________ describes the CSS properties for manipulating the “ruby” position, that are
small annotations next to or on top of words, especially common in Japanese and Chinese.
A. text-align B. lang C. ruby D. align
Ans. ruby
89. The screen media type can be used with:
A. television-type B. computer C. handheld
devices devices screens D. all devices
Ans. computer devices
90. Which one is NOT the audio element’s attribute?
A. check B. controls C. loop D. src
Ans. Check
91. Which of these measurements would define a measurement that is relative to the x-height of a font?
A. px B. pt C. em D. ex
Ans. ex

92. Which CSS Color Feature could be used as a macro for any current color?
A. HSLa Color B. RGB Color C. CurrentColor keyword D. HSL Color
Ans. CurrentColor keyword

93. Which CSS Color Feature is like RGB color and adds the alpha channel value so as to specify a color’s opacity
A. AlphaRGB B. RGBalpha C. RGBa D. RGB
Ans. RGBa

94. Which Selector selects any element in case it is the only child element of its parent element with its type?
A. :target B. :only-of-type C. @media D. ::selection
Ans.:only-of-type

7|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

95. Which of these protocols would enable a hyperlink to easily access any file on the available local file system
A. ftp B. https C. telnet D. file
Ans. file

96. Which of the following has introduced text, list, box, margin, border, color, and background properties?
A. HTML B. PHP C. CSS D. Ajax
Ans. CSS

97. Which of the following CSS framework is used to create a responsive design?
A. django B. rails C. larawell D. bootstrap
Ans. bootstrap

98. Which of the following are the CSS Extension Prefixes for Webkit?
A. chrome B. -web C. -o- D. -webkit
Ans. -webkit

99. Which of the following function defines a linear gradient as a CSS image?
A. gradient() B. linear-gradient() C. grayscale() D. image()
Ans. linear-gradient()
100. Which of the following CSS property can be used to set the image as a border
instead of the border style?
A. background-image- C. border-
source B. background-image image-source D. border-image
Ans. border-image-source
101. Which of the following CSS property sets the font size of text?
A. font-size B. text-size C. text D. size
Ans. font-size
102. Which of the following is not the property of the CSS box model?
A. margin B. color C. width D. height
Ans. Color
103. Which of the following CSS property sets the shadow for a box element?
A. set-shadow B. box-shadow C. shadow D. canvas-shadow
Ans. box-shadow
104. Which of the following CSS Property controls how an element is positioned?
A. static B. position C. fix D. set
Ans. position
105. Which of the following CSS property can be used to allow line breaks within words?
A. line-break B. line-wrap C. word-wrap D. word-break
Ans. word-break
106. What is CSS stands for?
A. Cascading Style B. Cascade Style C. Color Style D. Color Style
Sheets Sheet Sheets Sheet
Ans. Cascading Style Sheets
107. In a CSS file, there is a CSS rule for paragraphs tags – what does p can be called?
A. Selector B. Attribute C. Property D. Tag
Ans. Selector
108. CSS comments are placed within the ______.
A. // B. /* and */ C. <* and *> D. <! And !>
Ans. /* and */
109. What are the valid values of font-style property?
A. italic, bold, B. normal, bold, C. underline, bold, D. inherit, italic,
8|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

bolder italic italic normal, oblique


Ans. inherit, italic, normal, oblique
110. Which CSS property is used to style the hyperlinks on hover (Mouse over)?
A. a:mouseover B. a:move C. a:mover D. a:hover
Ans. a:hover
111. What are the valid values of text-align property?
A. left, middle, C. left, center, D. left, middle,
right B. left, center, right right, justify right, justify
Ans. left, center, right, justify

112. Which CSS property is used to specify the indentation of the first line of a text?
A. text-align B. padding-left C. margin-left D. text-indent
Ans. text-indent
113. Which CSS property is used to specify the space between the characters in a text?
A. text-space B. letter-space C. letter-spacing D. letter-distance
Ans. letter-spacing
114. Which CSS property is used to specify the space between the words in a text?
A. word-spacing B. word-padding C. word-height D. characters-spacing
Ans. word-spacing
115. What are the valid values of text-transform property?
A. uppercase, B. uppercase, D. upper, lower,
lowercase, and lowercase, capitalize, C. upper, lower, capital, and
capitalize and sentence and capital sentence
Ans. uppercase, lowercase, and capitalize
116. Which CSS property sets the vertical alignment of an element?
A. vertical- B. vertical-text- C. text- D. vertical-align-
align align valign text
Ans. vertical-align

117. Which is the correct CSS statement to define multiple font families?
B. font-name: C. font-family: D. font-family:
A. font: "Times "Times New "Times New "Times New
New Roman", Roman", Roman, Roman",
Times, serif; Times, serif; Times, serif"; Times, serif;
Ans. font-family: "Times New Roman", Times, serif;

118. Which CSS property specifies the type of list item marker?
B. list-style- D. list-style-
A. list-style type C. list-style-circle square
Ans. list-style-type

119. Which CSS property specifies an image as the list item marker?
A. list-style- B. list-style- C. list-style- D. list-style-
image picture background bgimage
Ans. list-style-image

120. Which type of JavaScript language is ___


A. Object-Oriented B. Object-Based C. Assembly-language D. High-level
Ans. Object-Based

121. Which one of the following also known as Conditional Expression:


A. Alternative to if- B. Switch C. If-then-else
else statement statement D. immediate if
9|P ag e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans. immediate if
122. In JavaScript, what is a block of statement?
B. block that combines a D. block that
number of statements C. both conditional contains a
A. Conditional into a single compound block and a single single
block statement statement statement
Ans. block that combines a number of statements into a single compound statement
123. The "function" and " var" are known as:
C. Declaration
A. Keywords B. Data types statements D. Prototypes
Ans. Declaration statements
124. Which one of the following is the correct way for calling the JavaScript code?
A. Preprocessor B. Triggering Event C. RMI D. Function/Method
Ans. Function/Method
125. Which of the following type of a variable is volatile?
A. Mutable B. Dynamic C. Volatile D. Immutable
variable variable variable variable
Ans. Mutable variable
126. When there is an indefinite or an infinite value during an arithmetic computation in
a program, then JavaScript prints______.
A. Prints an B. Prints an D. Prints the value
exception error overflow error C. Displays "Infinity" as such
Ans. Displays "Infinity"
127. In the JavaScript, which one of the following is not considered as an error:
B. Missing of D. Missing of
A. Syntax error semicolons C. Division by zero Bracket
Ans. Division by zero
128. Which of the following givenfunctions of the Number Object formats a number with
a different number of digits to the right of the decimal?
A. toExponential() B. toFixed() C. toPrecision() D. toLocaleString()
Ans. toFixed()
129. Which of the following number object function returns the value of the number?
A. toString() B. valueOf() C. toLocaleString() D. toPrecision()
Ans. valueOf()
130. Which of the following function of the String object returns the character in the
string starting at the specified position via the specified number of characters?
A. slice() B. split() C. substr() D. search()
Ans. substr()
131. In JavaScript, what will be used for calling the function definition expression:
A. Function B. Function C. Function D. Function
prototype literal calling declaration
Ans. Function literal
132. Which of the following one is the property of the primary expression:
B. basic expressions
A. Contains only containing all C. contains variable D. stand-alone
keywords necessary functions references alone expressions
Ans. stand-alone expressions
133. Which one of the following statement is most suitable to check if the pattern
matches with the sting "text".
A. test(text) B. equals(pattern) C. test(pattern) D. text==pattern
Ans. text==pattern
10 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

134. Which one of the following is an ternary operator:


A. ? B. : C. - D. +
Ans.?
135. "An expression that can legally appear on the left side of an assignment expression."
is a well known explanation for variables, properties of objects, and elements of arrays.
They are called_____.
A. Properties B. Prototypes C. Definition D. Lvalue
Ans. Lvalue
136. Which one of the following operator is used to check weather a specific property
exists or not:
A. Exists B. exist C. within D. in
Ans. in
137. What we will get if we compare the "one" with "8" using the less than operator
("one"<8)?
A. FALSE B. TRUE C. NaN D. Undefined
Ans. FALSE
138. Which one of the following is known as the Equality operator, which is used to check
whether the two values are equal or not:
A. = B. == C. === D. &&
Ans. ==
139. Which one of the following operator returns false if both values are equal?
A. ! B. != C. !== D. #=
Ans.!=
140. The correct sequence of HTML tags for starting a webpage is -
A. Head, Title, B. HTML, Body, C. HTML, Head, D. HTML, Head,
HTML, body Title, Head Title, Body Body, Title
Ans. HTML, Head, Title, Body
141. How to create a hyperlink in HTML?
A. <a href = B. <a url = C. <a link = D. <a>
"www.javatpoint.co "www.javatpoint.c "www.javatpoint.co www.javatpoint.
m"> om" m"> com
javaTpoint.com javaTpoint.com javaTpoint.com <javaTpoint.com
</a> /a> </a> /a>
Ans. <a href = "www.javatpoint.com"> javaTpoint.com </a>
142. How to insert an image in HTML?
A. <img href = B. <img url = C. <img link = D. <img src =
"jtp.png" /> "jtp.png" /> "jtp.png" /> "jtp.png" />
Ans. <img src = "jtp.png" />
143. How to add a background color in HTML?
C. <marquee
A. <marquee bg B. <marquee bg- bgcolor = D. <marquee
color: "red"> color = "red"> "red"> color = "red">
Ans. <marquee bgcolor = "red">
144. Which of the following tag is used to make the underlined text?
A. <i> B. <ul> C. <u> D. <pre>
Ans. <u>
145. How to create a checkbox in HTML?
A. <input type = B. <input type = D. <input type =
"checkbox"> "button"> C. <checkbox> "check">
Ans. <input type = "checkbox">

11 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

146. HTML tags are enclosed in-


A. # and # B. { and } C. ! and ? D. < and >
Ans. < and >
147. Which of the following tag is used to add rows in the table?
D. None of the
A. <td> and </td> B. <th> and </th> C. <tr> and </tr> above
Ans. <tr> and </tr>
148. Which of the following is the correct way to send mail in HTML?
A. <a href =
"mailto: B. <a href = C. <mail D. None of the
xy@y"> "xy@y"> xy@y</mail> above
Ans. <a href = "mailto: xy@y">
149. How to insert a background image in HTML?
A. <body B. <img
background = background = C. <bg-image = D. None of the
"img.png"> "img.png"> "img.png"> above
Ans. <body background = "img.png">
150. What are the types of unordered or bulleted list in HTML?
A. disc, square, B. polygon, triangle, C. disc, circle, D. All of the
triangle circle square above
Ans. disc, circle, square
151. Which program is used by web clients to view the web pages?

(A) Web browser

(B) Protocol

(C) Web server

(D) Search Engine

ANS : (A) Web browser

152. What is the name of the location address of the hypertext documents?

(A) Uniform Resource Locator

(B) Web server

(C) File

(D) Web address

ANS : (A) Uniform Resource Locator

153. What are shared on the Internet and are called as Web pages?

(A) Programs

(B) Cables

(C) Hypertext documents

(D) None

ANS : (C) Hypertext documents

12 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

154. How many colour names are used by the browsers?

(A) 8

(B) 10

(C) 12

(D) 16

ANS : (D) 16

155. Which tag is used to display text in title bar of a web document?

(A) Body tag

(B) Meta tag

(C) Title tag

(D) Comment tag

ANS : (C) Title tag

156. The ____ attribute is used to identify the values of variables.

(A) text

(B) http-equiv

(C) content

(D) name

ANS : (C) content

157. The language that instructs the browser on how to display the hypertext, and adds pictures
to the document is __

(A) C

(B) COBOL

(C) HTML

(D) BASIC

ANS : (C) HTML

158. Which tag is used to identify the keywords describing the site?

(A) Comment tag

(B) Title tag

(C) Meta tag

(D) Anchor tag

13 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

ANS : (C) Meta tag

159. Which are used with a tag to modify its function?

(A) Files

(B) Functions

(C) Attributes

(D) Documents

ANS : (C) Attributes

160. CGI stands for ___

(A) Common Gateway Internet

(B) Common Gateway Interface

(C) Central Gateway Interface

(D) Central Gateway Internet

ANS : (B) Common Gateway Interface

161. ____ is a collection of controls in HTML.

(A) Form

(B) Field

(C) Table

(D) Frame

ANS : (A) Form

162. HTML allows us to create three different kinds of ___

(A) Functions

(B) Events

(C) Files

(D) Lists

ANS : (D) Lists

163. ____ files are more compact than the GIF files.

(A) .JPG and JPEG

(B) .JPG

(C) .JPEG

(D) None of the above

14 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

ANS : (A) .JPG and JPEG

164. HTML allows us to use ___ levels of headings.

(A) Two

(B) Three

(C) Five

(D) Six

ANS : (D) Six

165. Which is an attribute of Meta tag?

(A) Name

(B) Content

(C) Both (a) and (b)

(D) None

ANS : (B) Content

166. Which tag is used to provide additional information about the page that is not visible in the
browser?

(A) Anchor tag

(B) Meta tag

(C) Comment tag

(D) Body tag

ANS : (B) Meta tag

167. Which character is used after the opening angular bracket to represent the closing tag?

(A) /

(B)

(C) |

(D) %

ANS : (A) /

168. ____ are ignored by browser.

(A) Title tag

(B) Comments

(C) Body section

15 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(D) Head section

ANS : (B) Comments

169. The two commonly used browsers are ____

(A) Internet Explorer and Windows Explorer

(B) Outlook Express and Internet Explorer

(C) Microsoft Internet Explorer and Netscape Navigator

(D) Internet Explorer and HTML

ANS : (C) Microsoft Internet Explorer and Netscape Navigator

170. Which section of the Web page will contain Meta tags?

(A) Body section

(B) Heading section

(C) (a) or (b)

(D) None

ANS : (B) Heading section

171. What are the two segments of a style tag?

(A) Selector and property

(B) Name and content

(C) Head section and body section

(D) None

ANS : (A) Selector and property

172. ____ attribute is used to display an alternate message.

(A) Size

(B) ALT

(C) ALIGN

(D) SRC

ANS : (B) ALT

173. Check boxes are used _____

(A) To enable option

(B) To disable option

(C) To create lists

16 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(D) To enable or disable option

ANS : (D) To enable or disable option

174. ____ Icon displays list of fonts that can be used.

(A) Text Size Icon

(B) Italics

(C) Change Font Icon

(D) Bold

ANS : (C) Change Font Icon

175. What is the birth date of Hypertext Documents?

(A) June 12, 1990

(B) June 15, 1990

(C) June 10, 1991

(D) June 12, 1991

ANS : (D) June 12, 1991

176. Which tag is used to change the default characteristics of a particular tag in the entire web
document wherever that tag is used?

(A) Meta tag

(B) Style tag

(C) Marquee tag

(D) Heading tag

ANS : (B) Style tag

177. The attributes that are used with <MARQUEE>tag are ___

(A) SIZE

(B) BG COLOR

(C) DIRECTION

(D) BG COLOR and DIRECTION

ANS : (D) BG COLOR and DIRECTION

178. The ___ attribute is used to specify the width of the table.

(A) CELLPADDING

(B) WIDTH

17 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(C) CELLSPACING

(D) BORDER

ANS : (B) WIDTH

179. Which one of the following indicates how light or dark a color appears on the web page?

(A) Value

(B) shade

(C) Hue

(D) Tint

ANS : (A) Value

180. The communication protocol used by the Internet to transfer hypertext documents is ___

(A) Hyper Text Internet Protocol

(B) Hyper Text Transfer Protocol

(C) Internet protocol

(D) File Transfer Protocol

ANS : (B) Hyper Text Transfer Protocol

181. The instructions indicated to the browser to display a document are called ___

(A) Codes

(B) Tags

(C) Programs

(D) Statements

ANS : (B) Tags

182. The primary colors are ____

(A) Red, green, yellow

(B) Red, white, yellow

(C) Red, green, blue

(D) Red, yellow, blue

ANS : (C) Red, green, blue

183. How many different colours can GIF contain?

(A) 64

(B) 156

18 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(C) 256

(D) 264

ANS : (C) 256

184. Transferring your HTML code from one machine to server is known as ___

(A) Indexing

(B) Hosting

(C) Serving

(D) Sorting

ANS : (B) Hosting

185 The _____ attribute is used to specify the value to be stored in the variable if an option is
selected.

(A) SIZE

(B) VALUE

(C) CHECKED

(D) TYPE

ANS : (B) VALUE

186. Which of the following programs are likely to become very popular?

(A) HTML, XML

(B) OBJECT, Applet

(C) DHTML, XML

(D) HTML, DHTML

ANS : (C) DHTML, XML

187. _____ contains the document itself.

(A) Structure

(B) Tag

(C) Head section

(D) Body section

ANS : (D) Body section

188. Which of the following enables the computers around the world to be connected together?

(A) Assembler

19 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(B) Compiler

(C) HTML document

(D) Internet

ANS : (D) Internet

189. The popular browser used to surf the Internet is

(A) Netscape Composer

(B) Notepad

(C) Microsoft Internet Explorer

(D) Microsoft word

ANS : (C) Microsoft Internet Explorer

190. Which is the formal description of message formats and rules to be followed by computers?

(A) Standards

(B) Protocol

(C) Syntax

(D) Language

ANS : (B) Protocol

191. Which term is used to refer to the computers that are used for storing web pages as files?

(A) Internet

(B) Web clients

(C) Web servers

(D) World Wide Web

ANS : (B) Web clients

192. The CELLSPACING attribute is used to ___

(A) Specify the colour of the border

(B) Specify the thickness of the border

(C) Specify the space between cells

(D) Specify the space between text and border

ANS : (C) Specify the space between cells

193. Interactive documents that can be created using a feature of HTML are called ____

(A) Tables

20 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(B) Forms

(C) Files

(D) Frames

ANS : (B) Forms

194. _____ are used to allow the user to select one of the options displayed.

(A) Radio buttons

(B) Text boxes

(C) Check boxes

(D) Password controls

ANS : (A) Radio buttons

195. _____ is used to separate the attributes in the selected segment of a style tag.

(A) :

(B) ;

(C) ,

(D) *

ANS : (B) ;

196. The image tag is always used with _____ attribute.

(A) Size

(B) SRC

(C) Color

(D) Font

ANS : (B) SRC

197. The _____ attribute specifies the bullet style.

(A) FONT

(B) COLOR

(C) TYPE

(D) SIZE

ANS : (C) TYPE

198. RGB value for Red is

(A) FFOOFF

21 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(B) FFFFFF

(C) FFOOOO

(D) FFFFOO

ANS : (C) FFOOOO

199. What is the abbreviation of WWW?

(A) Wide Web World

(B) Win World Web

(C) Web Wide World

(D) World Wide Web

ANS: (D) World Wide Web

200. Which of the following attributes specifies the name of the image file?

(A) Font

(B) SRC

(C) Color

(D) Size

ANS: (B) SRC

201. A collection of images that are part of MS office is called a ___

(A) Web

(B) FrontPage Express

(C) Clipart

(D) Toolbar

ANS: (C) Clipart

202. Software applications used for creating web pages and web sites are called as ___

(A) Web programs

(B) Web page editors

(C) Web master

(D) Web links

ANS : (B) Web page editors

203. Which attribute is used to specify the colour to be used for links?

(A) BGCOLOR

22 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(B) Link

(C) VLINK

(D) TEXT

ANS : (B) Link

204. _____ attribute can be added to make one of the options as the default option.

(A) SIZE

(B) CHECKED

(C) TYPE

(D) VALUE

ANS : (B) CHECKED

205. Which of the following is the content of a document that includes text, pictures and links to
other related documents?

(A) Front Page

(B) Hyper Text

(C) Computer

(D) Software

ANS : (B) Hyper Text

206. <HTML> is followed by how many sections?

(A) 2

(B) 3

(C) 4

(D) 6

ANS : (A) 2

207. _____ provides facilities required to link several related documents already stored on
computers.

(A) HTML

(B) Computer

(C) Software

(D) Internet

ANS : (A) HTML

208. Name any one Web page editor program.

23 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(A) HTML

(B) Ms Paint

(C) Notepad

(D) FrontPage

ANS : (D) FrontPage

209. Who send the requisition for web pages to the web servers?

(A) Node

(B) System

(C) Web clients

(D) Web customer

ANS: (C) Web clients

210. Which tag is used to identify the author’s name of the web document?

(A) Anchor tag

(B) Meta tag

(C) Title tag

(D) Font tag

ANS : (B) Meta tag

211. Which attribute can be used to change the colour of the links?

(A) Link

(B) ALINK

(C) VLINK

(D) All the above

ANS : (D) All the above

212. The ___ option allows the user to specify a location on the web.

(A) Format

(B) From location

(C) Location

(D) Insert

ANS : (B) From location

213. A popular way of linking many documents was ___

24 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(A) Notepad

(B) SGML

(C) Gopher

(D) Computer

ANS : (C) Gopher

214. Which indicates the beginning of an effect?

(A) Start tag

(B) End tag

(C) Tag

(D) None of the given

ANS : (A) Start tag

215. Which option on the menu can be used to insert rows and columns?

(A) Insert

(B) Tool

(C) Table

(D) Format

ANS : (C) Table

216. Which of the following achieves the effect of using script language?

(A) DHTML

(B) XML

(C) HTML

(D) CGI

ANS : (A) DHTML

217. Forms are created by the attributes

(A) Action and Method

(B) Value and Method

(C) Method and Target

(D) Action and Target

ANS : (A) Action and Method

218. Name any one text editor program.

25 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(A) HTML

(B) FrontPage

(C) Notepad

(D) MS Paint

ANS : (C) Notepad

219. Which language is used for creating Web Pages?

(A) PASCAL

(B) C

(C) HTML

(D) BASIC

ANS : (C) HTML

220. What is the abbreviation of HTTP?

(A) Hypertext tag path

(B) Hyper Text Transfer Protocol

(C) Hypertext transfer path

(D) None

ANS : (B) Hyper Text Transfer Protocol

221. The entire web document is contained within ____

(A) Comments

(B) Tags

(C) Web page

(D) HTML element

Ans : (D) HTML element

222. HTML document should begin with the ____

(A) <HEAD> tag

(B) <TITLE> tag

(C) <BODY> tag

(D) <HTML> tag

Ans : (D) <HTML> tag

223. GIF is the abbreviation for ___

26 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(A) Graphics Interchange Format

(B) Graphics Instruction Format

(C) Graphics Item Format

(D) Graphics Information Format

Ans : (A) Graphics Interchange Format

224. The <Font> tag is similar to ____

(A) <BIG>tag

(B) <SMALL>tag

(C) <MARQUEE>tag

(D) <BIG>and<Small> tags

Ans : (D) <BIG>and<Small> tags

225. The HTML and HTTP standard are defined by ____

(A) Web client

(B) Internet association

(C) WWW consortium

(D) WWW

Ans : (C) WWW consortium

226. The tag used to add images to the HTML document is ____

(A) <FONT>

(B) <HR>

(C) <HI>

(D) <IMG>

Ans : (D) <IMG>

227. The ____ passes the information given by the user to a specified program.

(A) User

(B) Programmer

(C) Web server

(D) Browser

Ans : (C) Web server

228. ____ is used to store the data within the documents on the server.

27 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

(A) XML

(B) HTML

(C) DHTML

(D) CGI

Ans : (A) XML

229. IP stands for ________.


A. Information Provider
B. Internet Provider
C. Internet Protocol
D. Information Protocol
ANSWER: C. Internet Protocol

230. An _______ is a company that provides internet access to users or subscribers of its service.
A. ARPAnet
B. Cyber net
C. Internet Provider
D. Internet Service Provider
ANSWER: D. Internet Service Provider

231. The process of transferring files from a web page on the internet to your computer is called.
A. Uploading
B. Forwarding
C. Transferring
D. Downloading
ANSWER: D. Downloading

232. Moving from one website to another is called_


A. transferring
B. shifting
C. browsing
D. loading
ANSWER: C. browsing

233. Verification of a login name and password is known as___________.


A. configuration
B. accessibility
C. authentication
D. logging in
ANSWER: C. authentication

234. _________is the oldest and most popular form of communication between computers.
A. Messanger
B. Chart
C. VoIP
28 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

D. E-Mail
ANSWER: D. E-Mail

235. The internet supports a large system called the _____.


A. Private Network Access
B. World Wide Web
C. World Wide Access Point
D. Network Access Point
ANSWER: B

236. _______________ are set of rules and procedures for communicating.


A. Programs
B. Algorithms
C. Protocols
D. Mails
ANSWER: C. Protocols

237. Each computer connected to the internet must ______.


A. be an IBM PC
B. have an unique IP address
C. be internet compatible
D. have a modem connection
ANSWER: B. have an unique IP address

238. A homepage is __________.


A. an index of encyclopedia articles
B. where all Internet data is stored
C. required for access to the Internet
D. the first page of a website
ANSWER: D. the first page of a website

239. Employee in an organization can use a part of the private intranet is called _____.
A. internet
B. intranet private
C. extranet
D. cybernet
ANSWER: C. extranet

240. ____is a document commonly written in Hyper Text Markup Language (HTML) that is
accessible through the Internet or other network using an internet browser.
A. Word
B. Web page
C. Web Site
D. Windows
ANSWER: B. Web page

241. In order to upload a HTML file to a web server, you use_________


A. HTTP
29 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

B. SMTP
C. TCP
D. FTP
ANSWER: D. FTP

242. A web page is located using a _____.


A. Universal Record Linking
B. Uniform Resource Locator
C. Universal Record Locator
D. Uniformly Reachable Links
ANSWER: B. Uniform Resource Locator

243. Which of the following protocol is used for WWW?


A. FTP
B. SMTP
C. TCP
D. HTTP
ANSWER: D. HTTP

244. A webpage displays a picture. What tag was used to display that picture?
A. Picture
B. Image.
C. img.
D. src.
ANSWER: C. img.

245. A piece of icon or image on a web page associated with another webpage is
called____________.
A. url
B. hyperlink
C. plugin
D. connection
ANSWER: B. hyperlink

246. _________ is a computer program running to serve the requests of other programs.
A. Server
B. Client
C. Software
D. Application
ANSWER: A. Server

247. web cookie is a small piece of data __________.


A. sent from a website and stored in users web browser while a user is browsing a website
B. sent from user and stored in the server while a user is browsing a website
C. sent from root server to all servers
D. none of the mentioned
ANSWER: sent from a website and stored in users web browser while a user is browsing a website

30 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

248. ________ programs are automatically loaded and operates as a part of browser.
A. Utilities
B. Plug-ins
C. Widgets
D. Add-ons
ANSWER: B. Plug-ins

249. A website’s _____ structure is more important to a user than its physical structure.
A. Commercial
B. logical
C. file
D. data
ANSWER: B. logical

250. A site that links every page to every other page could be considered to exhibit a structured
called a ______.
A. mixed form
B. mixed hierarchy
C. full mesh
D. pure tree
ANSWER: C. full mesh

251. A world wide web contains web pages …….


A. residing in many computers
B. created using HTML
C. with links to other web pages
D. residing in many computers linked together using HTML

ANS : D. residing in many computers linked together using HTML

252. Which of the following is used as character based browser?


A. Mosaic
B. Internet Explorer
C. Netscape
D. Lynx

ANS : D. Lynx

253. A…….. is a network in which the computers are connected directly, usually by some type of
cable.
A. LAN
B. MAN
C. CAN
D. HAN

ANS : A. LAN

254. FTP applications are


A. Internet Browsers
31 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

B. Used to send emails


C. Used to download and upload files
D. None of the above

ANS : C. Used to download and upload files

255. The purpose of Markup is to


A. Add hypertext capabilities
B. Enhance the document
C. Both A and B
D. None of the above

ANS : C. Both A and B

256. The interface that the user must navigate often is called……
A. the look and feel of a website
B. the most liked website
C. the unwanted website
D. the adhoc website

ANS : A. the look and feel of a website

257. Modem speeds are measured in


A. BSP
B. BPS
C. BDS
D. None of the above

ANS : B. BPS

258. The Domain name “gov” stands for


A. U.S. government
B. Any government
C. Developed Nations Government
D. None of the above

ANS : A. U.S. government

259. In HTML the visited website display the link in……….. color.
A. red or purple
B. red or blue
C. blue or green
D. black or white

ANS : A. red or purple

260. Which of the following is not a part of the Internet Advisory Board?
A. Internet Engineering Task Force
B. Internet Engineering Research Task Force

32 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

C. Internet Engineering Steering Group


D. All are a part of the IAB

Ans : B. Internet Engineering Research Task Force

261. The ………. tag defines the relationship between a document and an external resource.
A. <src>
B. <href>
C. <anchor>
D. <link>

Ans : D. <link>

262. The Internet uses the TCP/IP as its protocol engine and this uses
A. All of the ISO/OSI layers
B. Only five of the ISO/OSI layers
C. Only six of the ISO/OSI layers
D. Only two of the ISO/OSI layers

Ans : B. Only five of the ISO/OSI layers

263. The Internet based e-mail offers two types of access on the Internet.
A. Web based e-mail and post office protocol based e-mail
B. Data based e-mail and Internet protocol based e-mail
C. Shell based e-mail and post office protocol based e-mail
D. None of the above

Ans : A. Web based e-mail and post office protocol based e-mail

264. The …… tag provides a way to create numbered or alphanumeric lists rather than bullets.
A. <ul>…</ul>
B. <ol>…</ol>
C. <li>…</li>
D. <i>….</i>

Ans : B. <ol>…</ol>

265. Which of the following functions is not performed by mail server?


A. It stores the message when network traffic is low and transfers it when network traffic is high
B. It acts as a gateway or translator between the different types of e-mail systems.
C. It temporally stores the e-mail messages
D. It forwards the e-mail messages to the next server

Ans : A. It stores the message when network traffic is low and transfers it when network traffic is
high

266. Which of the following options do not hold good in case of sending your E-mail by the E-mail
service providers?
A. The ESPs charge is independent of the connect time
B. The ESPs charge is dependent on the connect time
33 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

C. You can send e-mail message to a fax number


D. The ESPs existed before the Internet caught the country by storm

Ans : A. The ESPs charge is independent of the connect time

267. Choose the correct HTML to right-align the content inside a table cell.
A. <td valign=”right”>
B. <tdright>
C. <td align=”left”>
D. <td rightalign>

Ans : C. <td align=”left”>

268. The symbol that identifies the “href” attribute as the name of a NAME anchor rather than an
address or file name is
A. “&”
B. “$”
C. “#”
D. “!”

Ans : C. “#”

269. Which of the following tags are belongs to <Table> tag.


A. <table> <head><title>
B. <td><br>
C. <ol><ul>
D. <table><tr><td>

Ans : D. <table><tr><td>

270. XML stands for ………………….


A) Extensible Markup Language
B) Eccessive Markup Language
C) Executive Markup Language
D) Extensible Managing Language

Ans : A) Extensible Markup Language

271. The XML format has a simpler set of …………………… than HTML.
A) loader rule
B) parsing rules
C) generator rule
D) logical rule

Ans : B) parsing rules

272. All information in XML is …………………


A) Unicode text
B) multi code

34 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

C) multi text
D) simple text

Ans : A) Unicode text

273. What is the purpose of the HTML <meta> tag?

a. To define a hyperlink
b. To create a metadata container
c. To insert an image
d. To define a paragraph
Answer: b. To create a metadata container

274 In HTML, what is the purpose of the <head> tag?

a. It defines the main content of the document


b. It contains metadata about the document
c. It represents the header section of a page
d. It defines a section that is not visible on the page
Answer: b. It contains metadata about the document

275. What does the alt attribute in the <img> tag represent?

a. Alignment of the image


b. Alternative text for the image
c. Altitude of the image
d. Animation level of the image
Answer: b. Alternative text for the image

276. What is the purpose of the rowspan attribute in HTML?

a. It defines the number of columns a table cell spans


b. It defines the width of a table cell
c. It defines the number of rows a table cell spans
d. It defines the height of a table cell
Answer: c. It defines the number of rows a table cell spans

277. What does the colspan attribute define in HTML?

a. The number of rows a table cell spans


b. The number of columns a table cell spans
c. The width of a table cell
d. The height of a table cell
Answer: b. The number of columns a table cell spans

278. What is the purpose of the HTML <form> tag?

a. To define a table
b. To create a hyperlink
c. To create a form for user input
35 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

d. To insert an image
Answer: c. To create a form for user input

279. Which attribute of the <form> tag is used to specify the URL where the form data will be
sent?

a. action
b. method
c. target
d. url
Answer: a. action

280. What does the method attribute in the <form> tag determine?

a. The form's appearance


b. The encoding type for form data
c. The HTTP method used when sending form data
d. The target window for the form
Answer: c. The HTTP method used when sending form data

281. Which input type is used for a single-line text input field?

a. text
b. textarea
c. input
d. line
Answer: a. text

282. How can you create a checkbox in an HTML form?

a. <check>
b. <input type="checkbox">
c. <box>
d. <checkbox>
Answer: b. <input type="checkbox">

283. What is the purpose of the <label> tag in relation to form elements?

a. It defines the width of the form


b. It adds a border around form elements
c. It associates a label with a form element for better accessibility
d. It changes the color of form elements
Answer: c. It associates a label with a form element for better accessibility

284. Which attribute is used to set the maximum number of characters allowed in a text input
field?

a. size
b. maxlength
c. limit
36 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

d. maxchars
Answer: b. maxlength

285. What is the purpose of the <select> tag in HTML forms?

a. To create a submit button


b. To create a dropdown list
c. To define a radio button
d. To define a text area
Answer: b. To create a dropdown list

286. Which attribute is used to make an input field read-only in HTML?

a. readonly
b. disabled
c. enabled
d. editable
Answer: a. readonly

287. How is multiple selection achieved in a dropdown list using the <select> tag?

a. <select multiple>
b. <select size="multiple">
c. <select choice="multiple">
d. <select choose="multiple">
Answer: a. <select multiple>

288. How can you set the color of a link when it is being clicked?

a. a:click
b. a:focus
c. a:active
d. a:visited
Answer: c. a:active

289. What is the order of the link states in CSS?

a. Active, Hover, Visited, Link


b. Link, Visited, Hover, Active
c. Visited, Link, Active, Hover
d. Link, Hover, Active, Visited
Answer: b. Link, Visited, Hover, Active

290. Which CSS property is used to remove the underline from a link?

a. text-decoration
b. underline-style
c. decoration
d. line-style
Answer: a. text-decoration
37 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

291. What is the purpose of the :visited pseudo-class in CSS?

a. It styles unvisited links


b. It styles visited links
c. It styles active links
d. It styles links on hover
Answer: b. It styles visited links

292. In CSS, how do you style a link when the mouse hovers over it?

a. a:hover
b. a:active
c. a:focus
d. a:visited
Answer: a. a:hover

293. Which CSS pseudo-class is used to style an active link?

a. a:hover
b. a:active
c. a:focus
d. a:visited
Answer: b. a:active

294. How can you specify the color of an unvisited link in CSS?

a. link-color
b. text-color
c. a:link
d. a:visited
Answer: c. a:link

295. What is the default color of an unvisited link in HTML?

a. Red
b. Blue
c. Purple
d. Black
Answer: b. Blue

296. What is an HTML image map used for?

a. Embedding images in a web page


b. Creating clickable areas within an image
c. Defining image dimensions
d. Adding alt text to images
Answer: b. Creating clickable areas within an image

297. Which HTML tag is used to create an image map?

38 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

a. <img>
b. <map>
c. <area>
d. <imap>
Answer: b. <map>

298. What is the purpose of the usemap attribute in the <img> tag?

a. To specify the source of the image


b. To define the shape of the image
c. To link to an external image map file
d. To associate the image with a map
Answer: c. To associate the image with a map

299. Which attribute is used to define the shape of a clickable area in an image map?

a. shape
b. area
c. coords
d. size
Answer: a. shape

300. What is the purpose of the coords attribute in the <area> tag?

a. It defines the color of the clickable area


b. It specifies the coordinates of the clickable area
c. It sets the size of the clickable area
d. It links to an external file
Answer: b. It specifies the coordinates of the clickable area

301. Which shape value is used for a rectangular clickable area in an image map?

a. rect
b. circle
c. poly
d. square
Answer: a. rect

302. How are multiple clickable areas defined within an image map?

a. Using multiple <img> tags


b. Using the <map> tag with multiple <area> tags
c. Using the multiple attribute in the <map> tag
d. Using the clickable attribute in the <img> tag
Answer: b. Using the <map> tag with multiple <area> tags

303. Which attribute is used to specify the link destination for a clickable area in an image map?

a. link
b. destination
39 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

c. href
d. url
Answer: c. href

304. What is the purpose of the alt attribute in the <area> tag within an image map?

a. It defines the alternate text for the image


b. It specifies the shape of the clickable area
c. It sets the color of the clickable area
d. It provides text for screen readers and tooltips
Answer: d. It provides text for screen readers and tooltips

305. How is an image map visually represented in HTML?

a. As a separate visual element on the page


b. As an overlay on the image
c. It is not visually represented
d. As a tooltip when hovering over the image
Answer: c. It is not visually represented

306. What is CSS?


a) CSS is a style sheet language
b) CSS is designed to separate the presentation and content, including layout, colors, and fonts
c) CSS is the language used to style the HTML documents
d) All of the mentioned

Ans : d) All of the mentioned

307. Which of the following tag is used to embed css in html page?
a) <css>
b) <!DOCTYPE html>
c) <script>
d) <style>

Ans : d) <style>

308. Which of the following CSS selectors are used to specify a group of elements?
a) tag
b) id
c) class
d) both class and tag

Ans : c) class
309. Which of the following CSS selector is used to specify a rule to bind a particular unique
element?
a) tag
b) id
c) class
d) both class and tag
40 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans : b) id

310. Which of the following type of HTML tag is used to define an internal style sheet?
a) <script>
b) <link>
c) <class>
d) <style>

Ans : d) <style>

311. Which of the following CSS property is used to make the text bold?
a) text-decoration: bold
b) font-weight: bold
c) font-style: bold
d) text-align: bold

Ans : b) font-weight: bold

312. What will be the output of following CSS code snippet?

h1 {color: "green";}

a) nothings happen
b) error occurs
c) heading becomes dark-green
d) heading becomes green

ans : a) nothings happen

313. Which of the following CSS style property is used to specify an italic text?
a) style
b) font
c) font-style
d) @font-face

ANS : c) font-style

314. What will be the output of following CSS code snippet?

h1 {color: red text-decoration: underline; font-style: italic;}

a) color: red, text-decoration: underline works


b) only font-style: italic works
c) color: red, text-decoration: underline and font-style: italic all works
d) text-decoration: underline and font-style: italic works

ANS : b) only font-style: italic works

315. Which of the following is the correct syntax to link an external style sheet in the HTML file?
a) <link rel=”stylesheet” href=”style.css” />
b) <link rel=”stylesheet” src=”style.css” />
41 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

c) <style rel=”stylesheet” src=”style.css” />


d) <style rel=”stylesheet” link=”style.css” />

Ans : a) <link rel=”stylesheet” href=”style.css” />

316. Which of the following is the first CSS specification to become an official W3C
Recommendation?
a) CSS level 2
b) (X)HTML CSS
c) CSS level 1
d) CSS level 2.1

Ans : c) CSS level 1

317. Which of the following function defines a linear gradient as a CSS image?
a) gradient()
b) linear-gradient()
c) grayscale()
d) image()

Ans : b) linear-gradient()

318. Which of the following CSS property defines the different properties of all four sides of an
element’s border in a single declaration?
a) border-collapse
b) border-width
c) padding
d) border

Ans : b) border-width

319. Which of the following is the correct way to apply CSS Styles?
a) in an external CSS file
b) inside an HTML element
c) inside the <head> section of an HTML page
d) all of the mentioned

Ans : d) all of the mentioned

320. Which of the following CSS property sets the font size of text?
a) font-size
b) text-size
c) text
d) size

Ans : a) font-size

321. Which of the following CSS property sets what kind of line decorations are added to an
element, such as underlines, overlines, etc?
a) text-decoration
42 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

b) text-style
c) text-decoration-line
d) text-line

Ans : c) text-decoration-line

322. Which of the following CSS property specifies the look and design of an outline?
a) outline-style
b) outline-format
c) outline-font
d) none of the mentioned

Ans : a) outline-style

323. Which of the following CSS property is used to set the color of the text?
a) text-decoration
b) pallet
c) colour
d) color

Ans: d) color

324. Which of the following CSS selector selects the elements that are checked?
a) :checked
b) E ~ F
c) ::after
d) none of the mentioned

Ans : a) :checked

325. Which of the following is an appropriate value for the overflow element?
a) scroll
b) hidden
c) auto
d) all of the mentioned

Ans : d) all of the mentioned

326. Which of the following CSS property is used to specify table borders in CSS?
a) table:border
b) table
c) border
d) none of the mentioned

Ans : c) border

327. Which of the following property is used to align the text in a table?
a) text-align
b) align

43 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

c) text
d) none of the mentioned

Ans : a) text-align

328. Which of the following CSS Property sets the stacking order of positioned elements?
a) y-index
b) z-index
c) x-index
d) all of the mentioned

Ans : b) z-index

329. Which of the following property allows a marquee to be used in the case of a text-overflow?
a) overflow-marquee
b) overflow-style
c) overflow-text
d) none of the mentioned

Ans : b) overflow-style

330. Which of the following CSS property defines the space between cells in a table?
a) border-spacing
b) border-style
c) border
d) none of the mentioned

Ans: a) border-spacing

331. Which selector do we use to specify the rule for binding some particular unique element?
a. class
b. tag
c. both tag and class
d. id
ans : d. id

332. Which CSS3 Color Feature could be used as a macro for any current color?
a. HSLa Color
b. RGB Color
c. CurrentColor keyword
d. HSL Color
Answer: (c) CurrentColor keyword

333. Which property sets the actual amount of spacing between the various letters?
a. letter-spacing
b. letter-space
c. line-height
d. space

44 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Answer: (b) letter-space

334. Which CSS3 Color Feature is like RGB color and adds the alpha channel value so as to specify
a color’s opacity?
a. AlphaRGB
b. RGBalpha
c. RGBa
d. RGB
Answer: (c) RGBa

335. What CSS describes?


A. CSS describes how calculation perform on button click.
B. CSS describes how HTML elements are to be displayed on screen, paper, or in other media
C. Both A. and B.
D. None of the above
Answer: B) CSS describes how HTML elements are to be displayed on screen, paper, or in other
media

336. What is the correct syntax for referring an external CSS?


A. <link rel="stylesheet" type="text/css" href="mystyle.css">
B. <stylesheet rel="stylesheet" type="text/css" href="mystyle.css">
C. <style rel="stylesheet" type="text/css" href="mystyle.css">
D. All of the above
Answer: A) <link rel="stylesheet" type="text/css" href="mystyle.css">

337. What is a CSS selector?


A. A CSS selector is the CSS class name
B. A CSS selector is the set of properties that are going to be applied on HTML elements
C. A CSS selector is name of CSS file.
D. A CSS selector is the first part of a CSS Rule. It may an HTML element or pattern of elements.
Answer: D) A CSS selector is the first part of a CSS Rule. It may an HTML element or pattern of
elements

338. Internal styles are written within the _____ element.


A. <style>…</style>
B. <css>…</css>
C. <stylesheet>…</stylesheet>
D. Both A. and B.
Answer: A) <style>…</style>.

339. Inline styles are written within the _____ attribute.


A. style
B. css
C. stylesheet
D. Both A. and B.

45 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Answer: A) style

340. Can comments also span multiple lines?


A. Yes
B. No
Answer: A) Yes

341. Which property is used to define the text color?


A. text-color
B. color
C. font-color
D. Both A. and B.
Answer: B) color

342. Which property is used to define the background color?


A. bgcolor
B. bg-color
C. background
D. background-color
Answer: D) background-color

343. From the given options which is/are the valid way to represent a color?
A. A valid color name like "blue"
B. HEX code like "#0000ff"
C. RGB Value like "rgb(0,0,255)
D. All of the above
Answer: D) All of the above

344. Which property is used to define the font of the element's text?
A. font
B. font-family
C. font-style
D. All of the above
Answer: B) font-family

345. To make a text italic, which CSS property is used?


A. font
B. font-family
C. font-style
D. All of the above
Answer: C) font-style

346. Why font-weight property is used?


A. Sets how thick or thin characters in text should be displayed.
B. Sets the size of the font

46 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

C. Both A. and B.
D. None of the above
Answer: A) Sets how thick or thin characters in text should be displayed

347. What is/are the correct value(s) of font-weight property?


A. bold, italic, underline
B. normal, bold, italic
C. normal, bold, bolder, lighter, initial, and inherit
D. None of the above
Answer: C) normal, bold, bolder, lighter, initial, and inherit

348. Which is the correct inline CSS for p tag to define paragraph's text and background colors?
A. <p css="color: red; background-color: yellow;">
B. <p cssstyle="color: red; background-color: yellow;">
C. <p inline="color: red; background-color: yellow;">
D. <p style="color: red; background-color: yellow;">
Answer: D) <p style="color: red; background-color: yellow;">

349. What is the correct syntax of border property in CSS?


A. border: border-width border-style border-color
B. border: border-color border-width border-style
C. border: border-style border-width border-color
D. All of the above
Answer: A) border: border-width border-style border-color

350. Which of the following is the correct syntax to display the hyperlinks without any underline?
A. a {text-decoration : underline;}
B. a {text-decoration : none;}
C. a {text-decoration : block;}
D. None of the above
Answer: B) a {text-decoration : none;}

351. Which of the following is the correct syntax to remove the underline on hyperlinks and
visited hyperlinks?
A. a {text-decoration : underline;}, a:visited {text-decoration : underline;}
B. a {text-decoration : block;}, a:visited {text-decoration : block;}
C. a {text-decoration : none;}, a:visited {text-decoration : none;}
D. None of the above
Answer: C) a {text-decoration : none;}, a:visited {text-decoration : none;}

352. If you want to use a green dotted border around an image, which CSS property is used for
that?
A. border-style
B. border-color
C. border-decoration

47 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

D. Both A. and B.
Answer: D) Both A. and B.

353. Which CSS property and value is used to center an element?


A. text-align:center
B. align:center
C. text-align:middle
D. align:middle
Answer: A) text-align:center

354. What is the use of "text-align:justify" in CSS?


A. Stretches the lines so that each line has equal width
B. Stretches the lines so that each line can be arranged in left alignment
C. Stretches the lines so that each line can be arranged in right alignment
D. None of the above
Answer: A) Stretches the lines so that each line has equal width

355. Which CSS property is used to specify the space between lines?
A. line-space
B. line-spacing
C. line-padding
D. line-height
Answer: D) line-height

356. Which CSS property adds shadow to text?


A. content-shadow
B. text-shadow
C. word-shadow
D. text-outline
Answer: B) text-shadow

357. Which CSS property is used to specify uppercase and lowercase letters in a text?
A. text-transform
B. text-case
C. case
D. text-casing
Answer: A) text-transform

358. Which is the correct CSS statement to capitalize the first letter of each word?
A. text-transform: uppercase
B. text-transform: capitalize
C. text-transform: sentence
D. Both A. and B.
Answer: B) text-transform: capitalize

48 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

359. What are the valid values of "text-decoration" property?


A. overline, line-through, underline, and none
B. overline, strike, line-through, underline, and none
C. double-line, overline, line-through, underline, and none
D. None of these
Answer: A) overline, line-through, underline, and none

360. Which CSS property defines the radius of an element's corners?


A. border-corner
B. radius
C. corner
D. border-radius
Answer: D) border-radius

361. Which CSS property allows you to specify an image to be used instead of the normal border
around an element?
A. border-image
B. border-picture
C. border-background
D. border-bgimage
Answer: A) border-image

362. What are the RGBA color values?


A. RGBA color values are combination of four colors
B. RGBA color values are an extension of RGB color values with background image
C. RGBA color values are an extension of RGB color values with an alpha channel
D. None of the above
Answer: C) RGBA color values are an extension of RGB color values with an alpha channel

363. In a RGBA color value, what does A stand for?


A. A specifies the opacity for a color
B. A specifies the Aqua color
C. A specifies the opacity Azure color
D. All of the above
Answer: A) A specifies the opacity for a color

364. Which of the following specifies the red color with opacity?
A. rgba(255, 0, 0, 255)
B. rgba(255, 255, 255, 0.3)
C. rgba(0, 0, 255, 0.3)
D. rgba(255, 0, 0, 0.3)
Answer: D) rgba(255, 0, 0, 0.3)
365. What is JavaScript?
a) JavaScript is a scripting language used to make the website interactive
b) JavaScript is an assembly language used to make the website interactive

49 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

c) JavaScript is a compiled language used to make the website interactive


d) None of the mentioned

Ans : a) JavaScript is a scripting language used to make the website interactive

366. Among the given statements, which statement defines closures in JavaScript?
a) JavaScript is a function that is enclosed with references to its inner function scope
b) JavaScript is a function that is enclosed with references to its lexical environment
c) JavaScript is a function that is enclosed with the object to its inner function scope
d) None of the mentioned

Ans : b) JavaScript is a function that is enclosed with references to its lexical environment

367. Arrays in JavaScript are defined by which of the following statements?


a) It is an ordered list of values
b) It is an ordered list of objects
c) It is an ordered list of string
d) It is an ordered list of functions

Ans : a) It is an ordered list of values

368. Which of the following is not javascript data types?


a) Null type
b) Undefined type
c) Number type
d) All of the mentioned

Ans : d) All of the mentioned

369. Where is Client-side JavaScript code is embedded within HTML documents?


a) A URL that uses the special javascript:code
b) A URL that uses the special javascript:protocol
c) A URL that uses the special javascript:encoding
d) A URL that uses the special javascript:stack

Ans : b) A URL that uses the special javascript:protocol

370. Which of the following object is the main entry point to all client-side JavaScript features and
APIs?
a) Position
b) Window
c) Standard
d) Location

Ans : b) Window

371. Which of the following can be used to call a JavaScript Code Snippet?
a) Function/Method
b) Preprocessor
50 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

c) Triggering Event
d) RMI

Ans : a) Function/Method

372. Which of the following explains correctly what happens when a JavaScript program is
developed on a Unix Machine?
a) will work perfectly well on a Windows Machine
b) will be displayed as JavaScript text on the browser
c) will throw errors and exceptions
d) must be restricted to a Unix Machine only

Ans : a) will work perfectly well on a Windows Machine

373. Which of the following scoping type does JavaScript use?


a) Sequential
b) Segmental
c) Lexical
d) Literal

Ans : c) Lexical

374. Why JavaScript Engine is needed?


a) Both Compiling & Interpreting the JavaScript
b) Parsing the javascript
c) Interpreting the JavaScript
d) Compiling the JavaScript

Ans : c) Interpreting the JavaScript

375. Which of the following methods/operation does javascript use instead of == and !=?
a) JavaScript uses equalto()
b) JavaScript uses equals() and notequals() instead
c) JavaScript uses bitwise checking
d) JavaScript uses === and !== instead

Ans : d) JavaScript uses === and !== instead

376. What will be the result or type of error if p is not defined in the following JavaScript code
snippet?

console.log(p)

a) Value not found Error


b) Reference Error
c) Null
d) Zero

51 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

ans : b) Reference Error

377. What is the prototype represents in the following JavaScript code snippet?

function javascript() {};

a) Not valid
b) Prototype of a function
c) Function javascript
d) A custom constructor

ans : d) A custom constructor

378. Why event handlers is needed in JS?


a) Allows JavaScript code to alter the behaviour of windows
b) Adds innerHTML page to the code
c) Change the server location
d) Performs handling of exceptions and occurrences

Ans : a) Allows JavaScript code to alter the behaviour of windows

379. Which of the following is not a framework?


a) JavaScript .NET
b) JavaScript
c) Cocoa JS
d) jQuery

Ans : b) JavaScript

380. Which of the following is the property that is triggered in response to JS errors?
a) onclick
b) onerror
c) onmessage
d) onexception

Ans : b) onerror

381. Which of the following is not an error in JavaScript?


a) Missing of Bracket
b) Division by zero
c) Syntax error
d) Missing of semicolons

Ans : b) Division by zero

382. Who invented Java Programming?


a) Guido van Rossum
b) James Gosling
c) Dennis Ritchie
d) Bjarne Stroustrup
52 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans : b) James Gosling

383. Which statement is true about Java?


a) Java is a sequence-dependent programming language
b) Java is a code dependent programming language
c) Java is a platform-dependent programming language
d) Java is a platform-independent programming language

Ans : d) Java is a platform-independent programming language

384. Which component is used to compile, debug and execute the java programs?
a) JRE
b) JIT
c) JDK
d) JVM

Ans : c) JDK

385. Which one of the following is not a Java feature?


a) Object-oriented
b) Use of pointers
c) Portable
d) Dynamic and Extensible

Ans : b) Use of pointers

386. Which of these cannot be used for a variable name in Java?


a) identifier & keyword
b) identifier
c) keyword
d) none of the mentioned

Ans : c) keyword
387. What is the extension of java code files?
a) .js
b) .txt
c) .class
d) .java

Ans : d) .java

388. Which environment variable is used to set the java path?


a) MAVEN_Path
b) JavaPATH
c) JAVA
d) JAVA_HOME

Ans : d) JAVA_HOME

53 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

389. Which of the following is not an OOPS concept in Java?


a) Polymorphism
b) Inheritance
c) Compilation
d) Encapsulation

Ans : c) Compilation

390. What is not the use of “this” keyword in Java?


a) Referring to the instance variable when a local variable has the same name
b) Passing itself to the method of the same class
c) Passing itself to another method
d) Calling another constructor in constructor chaining

Ans : b) Passing itself to the method of the same class

391. Which of the following is a type of polymorphism in Java Programming?


a) Multiple polymorphism
b) Compile time polymorphism
c) Multilevel polymorphism
d) Execution time polymorphism

Ans : b) Compile time polymorphism


392. What is Truncation in Java?
a) Floating-point value assigned to a Floating type
b) Floating-point value assigned to an integer type
c) Integer value assigned to floating type
d) Integer value assigned to floating type

Ans : b) Floating-point value assigned to an integer type

393. What is the extension of compiled java classes?


a) .txt
b) .js
c) .class
d) .java

Ans : c) .class

394. Which exception is thrown when java is out of memory?


a) MemoryError
b) OutOfMemoryError
c) MemoryOutOfBoundsException
d) MemoryFullException

54 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans : b) OutOfMemoryError
395. Which of these are selection statements in Java?
a) break
b) continue
c) for()
d) if()

Ans : d) if()

396. Which of these keywords is used to define interfaces in Java?


a) intf
b) Intf
c) interface
d) Interface

Ans: c) interface
397. Which of the following is a superclass of every class in Java?
a) ArrayList
b) Abstract class
c) Object class
d) String

Ans : c) Object class

398. Which of the below is not a Java Profiler?


a) JProfiler
b) Eclipse Profiler
c) JVM
d) JConsole

Ans : c) JVM

399. Which of these packages contains the exception Stack Overflow in Java?
a) java.io
b) java.system
c) java.lang
d) java.util

Ans : c) java.lang

400. Which of these statements is incorrect about Thread?


a) start() method is used to begin execution of the thread
b) run() method is used to begin execution of a thread before start() method in special cases
c) A thread can be formed by implementing Runnable interface only
d) A thread can be formed by a class that extends Thread class

Ans : b) run() method is used to begin execution of a thread before start() method in special cases

55 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

401. Which of these keywords are used for the block to be examined for exceptions?
a) check
b) throw
c) catch
d) try

Ans : d) try

402. Which one of the following is not an access modifier?


a) Protected
b) Void
c) Public
d) Private

Ans : b) Void
403. What is the numerical range of a char data type in Java?
a) 0 to 256
b) -128 to 127
c) 0 to 65535
d) 0 to 32767

Ans : c) 0 to 65535
404. Which class provides system independent server side implementation?
a) Server
b) ServerReader
c) Socket
d) ServerSocket

Ans : d) ServerSocket

405. Which of the following is true about servlets?


a) Servlets can use the full functionality of the Java class libraries
b) Servlets execute within the address space of web server, platform independent and uses the
functionality of java class libraries
c) Servlets execute within the address space of web server
d) Servlets are platform-independent because they are written in java

Ans : b) Servlets execute within the address space of web server, platform independent and uses the
functionality of java class libraries

406. JavaScript is the programming language of the _____.


a) Desktop
b) Mobile
c) Web
d) Server
Answer: C) Web

407. Which type of JavaScript language is _____?

56 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

a) Object-oriented
b) Object-based
c) Functional programming
d) All of the above
Answer: B) Object-based

408. Which of the following statement(s) is true about the JavaScript?


a) It is a scripting language used to make the website interactive
b) It is an advanced version of Java for Desktop and Mobile application development
c) It is a markup language of Java to develop the webpages
d) All of the above
Answer: A) It is a scripting language used to make the website interactive

409. In which HTML element, we put the JavaScript code?


a) <javascript>...</javascript>
b) <js>...</js>
c) <script>...</script>
d) <css>...</css>
Answer: C) <script>...</script>

410. JavaScript code can be written in ____.


a) JavaScript file (.js file)
b) HTML document directly
c) JavaScript file and in HTML document directly
d) In style sheets (.css file)
Answer: C) JavaScript file and in HTML document directly

411. Which symbol is used separate JavaScript statements?


a) Comma (,)
b) Colon (:)
c) Hyphen (_)
d) Semicolon (;)
Answer: D) Semicolon (;)

412. JavaScript ignores?


a) newlines
b) tabs
c) spaces
d) All of the above
Answer: D) All of the above

413. Which is the correct syntax to call an external JavaScript file in the current HTML document?
a) <script src="jsfile.js"></script>
b) <script href=" jsfile.js"></script>
c) <import src=" jsfile.js"></import>

57 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

d) <script link=" jsfile.js"></script>


Answer: A) <script src="jsfile.js"></script>

414. Which JavaScript method is used to access an HTML element by id?


a) getElementById()
b) getElement(id)
c) getElementById(id)
d) elementById(id)
Answer: C) getElementById(id)

415. Which property is used to define the HTML content to an HTML element with a specific id?
a) innerText
b) innerContent
c) elementText
d) innerHTML
Answer: D) innerHTML

416. Which JavaScript method is used to write HTML output?


a) document.write()
b) document.output()
c) console.log()
d) document.writeHTML()
Answer: A) document.write()

417. Which JavaScript method is used to write on browser's console?


a) console.write()
b) console.output()
c) console.log()
d) console.writeHTML()
Answer: C) console.log()

418. Which JavaScript method is used to write into an alert box?


a) window.alertHTML()
b) window.alert()
c) window.alertBox()
d) window.alertContent()
Answer: B) window.alert()

419. Which is the correct JavaScript statement to display "Hello Boss!" into an alert box?
a) alert("Hello Boss!");
b) alert('Hello Boss!');
c) alert(Text:'Hello Boss!');
d) Both A. and B.
Answer: D) Both A. and B.

58 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

420. Which is the correct JavaScript statement to print the addition of two numbers 10 and 20 in
a paragraph whose id is 'result'?
a) getElementById("result").innerHTML = 10+20;
b) getElementById("result").innerHTML = "10+20";
c) getElementById("#result").innerHTML = 10+20;
d) All of the above
Answer: A) getElementById("result").innerHTML = 10+20;

421. What is the use of this JavaScript statement?


<button onclick="window.print()">Submit</button>
a) It will write "Submit" on the current Window
b) It will print the content of the current page
c) It will write the content of the current page in the browser’s console
d) None of the above
Answer: B) It will print the content of the current page

422. In JavaScript, single line comment begins with ___.


a) #
b) /*
c) $
d) //
Answer: D) //

423. In JavaScript, multi-line comments start with __ and end with ___.
a) /* and */
b) <!—and -->
c) ## and ##
d) // and //
Answer: A) /* and */

424. Which JavaScript keyword is used to declare a variable?


a) Var
b) var
c) Let
d) All of the above
Answer: B) var

425. How many keywords are there in JavaScript to declare variables or constants?
a) 1
b) 2
c) 3
d) 4
Answer: C) 3

426. What is the main difference between var and let keywords in JavaScript?

59 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

a) var defines a variable while let defines a constant


b) var defined function scoped variable while let define block scoped variable
c) The value of a variable declared with var can be changed while the value of a variable
declared with let cannot be changed
d) All of the above
Answer: B) var defined function scoped variable while let define block scoped variable

427. The const keyword is used to define a ______.


a) Function scopes variable
b) Block scoped variable
c) Constant
d) Constant with no initial value
Answer: C) Constant

428. Which is the correct syntax to declare a constant in JavaScript?


a) const constant_name;
b) constant_name const;
c) constant_name const = value;
d) const constant_name = value;
Answer: D) const constant_name = value;

429. What is the default value of an uninitialized variable?


a) 0
b) undefined
c) null
d) NaN
Answer: B) undefined

430. Can be redeclare a variable that is declared with var keyword?


a) Yes
b) No
Answer: A) Yes

431. Can be redeclare a variable that is declared with let keyword?


a) Yes
b) No
Answer: B) No

432. Which is the exponentiation operator in JavaScript?


a) exp()
b) ^
c) **
d) pow
Answer: C) **

60 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

433. Does JavaScript support increment (++) and decrements (--) Operators?
a) Yes
b) No
Answer: A) Yes

434. JavaScript types are _____.


a) Static
b) Dynamic
Answer: B) Dynamic

435. JavaScript arrays are written with _____.


a) round brackets ()
b) curly brackets {}
c) double quotes ""
d) square brackets []
Answer: D) square brackets []

436. JavaScript objects are written with _____.


a) round brackets ()
b) curly brackets {}
c) double quotes ""
d) square brackets []
Answer: B) curly brackets {}

437. Which JavaScript operator is used to determine the type of a variable?


a) typeof
b) TypeOf
c) typeOf
d) sizeof
Answer: A) typeof

438. Which is the correct syntax of JavaScript typeof operator?


a) typeof variable/value
b) typeof(variable/value)
c) Both A. and B.
d) None of the above
Answer: C) Both A. and B.

439. Which keyword is used to define a JavaScript function?


a) module
b) fun
c) func
d) function
Answer: D) function

61 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

440. Which is the correct syntax for the function definition?


a) return_type function function_name(parameter1, parameter2, ...) { /*Function's body*/ }
b) function function_name(parameter1, parameter2, ...) { /*Function's body*/ }
c) return_type function_name(parameter1, parameter2, ...) { /*Function's body*/ }
d) function function_name(parameter1, parameter2, ...) as return_type { /*Function's body*/ }
Answer: B) function function_name(parameter1, parameter2, ...) { /*Function's body*/ }

441. Which method is used to get the year of a date as a four-digit number?
a) getYear()
b) fullYear()
c) getFullYear()
d) getfullyear()
Answer: C) getFullYear()

442. What does the Date object's method getTime() return?


a) Date in DD-MM-YYYY format
b) Date in DD MON YYYY format
c) Date in MON, DD YYYY format
d) Number of milliseconds since January 1, 1970
Answer: D) Number of milliseconds since January 1, 1970

443. The internal clock in JavaScript counts from midnight _____.


a) January 1, 1972
b) January 1, 1947
c) January 1, 1980
d) January 1, 1970
Answer: D) January 1, 1970

444. Which JavaScript method is used to convert a date to a UTC string (a date display standard)?
a) toUTCString()
b) toUtcString()
c) utcString()
d) toutcstring()
Answer: A) toUTCString()

445. Which JavaScript statement(s) is correct to create Date object(s) with new Date()
constructor?
a) new Date(year, month, day, hours, minutes, seconds, milliseconds)
b) new Date(milliseconds)
c) new Date(date string)
d) All of the above
Answer: E) All of the above
446. Which JavaScript object works with the dates?
a) Date
b) DateTime

62 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

c) date
d) dateTime
Answer: A) Date

447. Which JavaScript method is used to create a new array with array elements that passes a
test?
a) forEach()
b) map()
c) forMap()
d) filter()
Answer: D) filter()

448. Which JavaScript method is used to call a function (a callback function) once for each array
element?
a) for()
b) traverse()
c) forEach()
d) foreach()
Answer: C) forEach()

449. Which JavaScript method is used to get a number as a string?


a) toString()
b) intToString()
c) parseInteger()
d) All of the above
Answer: A) toString()

450. Does the following JavaScript variable definition is correct?


let x = `I'm "David!"`;
a) Yes
b) No
Answer: A) Yes

451. In JavaScript, the string template literals use ____ rather than the quotes ("") to define a
string?
a) Single quotes ('')
b) Backslash with single quote (\’'\')
c) Backslashes (\\)
d) Back-ticks (``)
Answer: D) Back-ticks (``)

452. Which is/are the valid JavaScript method(s) to extract string parts?
a) slice(start, end)
b) substring(start, end)
c) substr(start, length)

63 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

d) All of the above


Answer: D) All of the above

453. Which is the correct JavaScript statement to define string as object?


a) var s = new String("IncludeHelp!");
b) var s = String("IncludeHelp!");
c) var s = "IncludeHelp!"
d) All of the above
Answer: A) var s = new String("IncludeHelp!");

454. Which character is used to break up a code line within a text string in JavaScript?
a) Single quote (')
b) Single backslash (\)
c) Double quote (")
d) Tipple single quote (''')
Answer: B) Single backslash (\)

455. Which property is used to get the length of a string in JavaScript?


a) strlen
b) len
c) length
d) Length
Answer: C) length

456. Which is the correct syntax to access an object property in JavaScript?


a) objectName:propertyName
b) propertyName
c) objectName["propertyName"]
d) Both B. and C.
Answer: D) Both B. and C.

457. In JavaScript a variable contains one value while an object may contain ___.
a) One value
b) Two values
c) Three values
d) Many values
Answer: D) Many values

458. Can we use a function as a variable value?


a) Yes
b) No
Answer: A) Yes

459. The ” var” and “function” are known as _____________.


a. Data types

64 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

b. Keywords
c. Prototypes
d. Declaration statements
Answer: (d) Declaration statements

460. Which of these is the correct way in which we can call the JavaScript code?
a. Triggering Event
b. Preprocessor
c. Function/Method
d. RMI
Answer: (c) Function/Method

461. Which of these functions of the Number Object would format a number with different
numbers of digits to the decimal’s right?
a. toFixed()
b. toExponential()
c. toLocaleString()
d. toPrecision()
Answer: (a) toFixed()

462. Out of the following functions of the string object, which one would return the character in
any string via the specified number of characters starting at a specified position?
a. search()
b. substr()
c. split()
d. slice()
Answer: (b) substr()

463. Look at the snippets given below and check the one in which the variable “a” isn’t equal to
the “NULL”.
a. if (a!)
b. if(a!=null)
c. if(a!==null)
d. if(a!null)
Answer: (c) if(a!==null)

464. In JavaScript, what do we use for calling the expression for function definition?
a. Function literal
b. Function prototype
c. Function declaration
d. Function calling
Answer: (a) Function literal

465. Which of these is used in JavaScript for calling a method or a function?


a. Functional Expression

65 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

b. Property Access Expression


c. Primary Expression
d. Invocation Expression
Answer: (d) Invocation Expression

466. Which of these operators are used for checking if a specific property exists?
a. in
b. within
c. exist
d. exists
Answer: (a) in

467. “The expression that can appear legally on an assignment expression’s left side” is a
common explanation for variables, elements of arrays, and properties of objects. These are known
as __________:
a. Prototypes
b. Properties
c. Lvalue
d. Definition
Answer: (c) Lvalue

468. Which of these is known as the Equality operator used for checking whether both the values
are equal?
a. =
b. ==
c. ===
d. &&
Answer: (b) ==

469. In case a value of an operator is NULL, then the unary operator would return the
____________ typeof.
a. object
b. boolean
c. string
d. undefined
Answer: (d) undefined

470. Which of these is not a keyword?


a. debugger
b. use strict
c. with
d. if
Answer: (b) use strict

471. Which of these symbols is used to create comments in JavaScript?

66 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

a. //
b. \\
c. \* */
d. \* *\
Answer: (a) //

472. In the line of code given below, what will the “datatype” written in brackets be called?
article[datatype]=assignment_value;
a. An object
b. A String
c. Floating point
d. An integer
Answer: (b) A String

473. In the line of code given below, the prototype represents the _____________.
functionx(){};
a. Prototype of a function
b. Function x
c. Not valid
d. A custom constructor
Answer: (a) Prototype of a function

474. Which of these methods or operators are used for identifying an array?
a. isarrayType()
b. ===
c. ==
d. Typeof
Answer: (a) isarrayType()

475. A function’s execution would stop whenever a program control would encounter the
_________ statement in the function’s body.
a. goto statement
b. break statement
c. continue statement
d. return statement
Answer: (d) return statement

476. Which of these codes is equivalent to the code given below?


a.x(g,h);
a. a [ “x” ] ( g , h );
b. x (g) &&a.x (h);
c. x( g&&h );
d. a (x )[ “g” , “h” ];
Answer: (a) a [ “x” ] ( g , h );

67 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

477. Which of these keywords is used to define various functions in JavaScript?


a. function
b. main
c. init
d. Void
Answer: (a) function

478. Which company developed JavaScript?

A. Netscape
B. Bell Labs
C. Sun Microsystems
D. IBM

Ans : A. Netscape

479. Inside which HTML element do we put the JavaScript?

A. <script>
B. <head>
C. <meta>
D. <style>

Ans : A. <script>

480. Which of the following is correct about features of JavaScript?

A. It can not Handling dates and time.


B. JavaScript is a object-based scripting language.
C. JavaScript is not interpreter based scripting language.
D. All of the above

Ans : B. JavaScript is a object-based scripting language.

481. Choose the correct JavaScript syntax to change the content of the following HTML code.

A. document.getElement ("letsfindcourse").innerHTML = "I am a letsfindcourse";


B. document.getElementById ("letsfindcourse").innerHTML = "I am a letsfindcourse";
C. document.getId ("letsfindcourse") = "I am a letsfindcourse";
D. document.getElementById ("letsfindcourse").innerHTML = I am a letsfindcourse;

Ans : B. document.getElementById ("letsfindcourse").innerHTML = "I am a letsfindcourse";

482. Which of the following are advantages of JavaScript?

A. Less server interaction


B. Increased interactivity
C. Richer interfaces
D. All of the above
68 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans : D. All of the above

483. Which of the following true about Javascript?

A. Client-side JavaScript does not allow the reading or writing of files


B. JavaScript cannot be used for networking applications
C. JavaScript doesn't have any multi-threading or multiprocessor capabilities
D. All of the above

Ans : D. All of the above

484. Microsoft has developed a popular HTML editor called?

A. Dreamweaver
B. FrontPage
C. HomeSite
D. Macromedia

Ans : B. FrontPage

485. HomeSite 5 is a well-liked HTML and JavaScript editor from Macromedia.

A. True
B. False
C. Can be true or false
D. Can not say

Ans : A. True

486. JavaScript is designed for following purpose -

A. to style HTML pages


B. to execute Queries related to databases on a server
C. to add interactivity to html pages
D. All of the above

Ans : D. All of the above

487. Among the following, which one is a ternary operator in JavaScript?

A. #
B. ::
C. &:
D. ?:

Ans : D. ?:

488. What are the three important manipulations done in a for loop on a loop variable in
javascript?

69 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

A. the initialization, the Incrementation, and update


B. the initialization, the test, and the update
C. the initialization, the test, and Incrementation
D. All of the above

Ans : B. the initialization, the test, and the update

489. What does javascript use instead of == and !=?

A. It uses bitwise checking


B. It uses === and !== instead
C. It uses equals() and notequals() instead
D. It uses equalto()

Ans : B. It uses === and !== instead

490. What should appear at the very end of your JavaScript?


The <script language="javascript"> tag

A. <script>
B. <script>
C. </script language="javascript">
D. All of the above

Ans : B. <script>

491. Among the keywords below, which one is not a statement?

A. if
B. with
C. debugger
D. use strict

Ans : D. use strict

492. How do we define the term Thread?

A. Device that controls input


B. Variable that controls movement
C. Controlled execution of applications
D. None of the above

Ans : C. Controlled execution of applications

493. Which symbol is used for comments in Javascript?

A. \\
B. //
C. \* *\
D. \* */

70 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

Ans : B. //

494. Which of them is not the looping structures in JavaScript?

A. for
B. while
C. forwhich
D. dowhile

Ans : B. while

495. What is defination of an undefined value in JavaScript?

A. Variable used in the code doesn't exist


B. Variable is not assigned to any value
C. Property doesn't exist
D. All of the above

Ans : D. All of the above

496. what is the disadvantage of using innerHTML in JavaScript?

A. Content can not be replaced everywhere


B. We can use like "appending to innerHTML"
C. Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content is replaced by html
D. The entire innerHTML content is not re-parsed and build into elements, therefore its not slower

Ans : C. Even if you use +=like "innerHTML = innerHTML + 'html'" still the old content is replaced by
html
497. What are the two basic groups of dataypes in JavaScript?

A. Primitive
B. Reference types.
C. All of the above
D. None of the above

Ans : C. All of the above

498. Which of the following are the errors in JavaScript?

A. Load time errors


B. Run time errors:
C. Logical Errors:
D. All of the above

Ans : B. Run time errors:

499. Which of the following are the functional components in JavaScript?

A. First-class functions
B. Encapsulated-class functions

71 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE

C. Fixed-class functions
D. All of the above

Ans : A. First-class functions


500. Which of the following is not the properties of screen objects in JavaScript?

A. AvailHeight
B. ColorsDepth
C. AvailWidth
D. ColorDepth

Ans : B. ColorsDepth

(THE END)

72 | P a g e

You might also like