Front End Mcqs
Front End Mcqs
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 -
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. 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
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
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
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
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
11 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(B) Protocol
152. What is the name of the location address of the hypertext documents?
(C) File
153. What are shared on the Internet and are called as Web pages?
(A) Programs
(B) Cables
(D) None
12 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(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) text
(B) http-equiv
(C) content
(D) name
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
158. Which tag is used to identify the keywords describing the site?
13 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(A) Files
(B) Functions
(C) Attributes
(D) Documents
(A) Form
(B) Field
(C) Table
(D) Frame
(A) Functions
(B) Events
(C) Files
(D) Lists
163. ____ files are more compact than the GIF files.
(B) .JPG
(C) .JPEG
14 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(A) Two
(B) Three
(C) Five
(D) Six
(A) Name
(B) Content
(D) None
166. Which tag is used to provide additional information about the page that is not visible in the
browser?
167. Which character is used after the opening angular bracket to represent the closing tag?
(A) /
(B)
(C) |
(D) %
ANS : (A) /
(B) Comments
15 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
170. Which section of the Web page will contain Meta tags?
(D) None
(D) None
(A) Size
(B) ALT
(C) ALIGN
(D) SRC
16 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(B) Italics
(D) Bold
176. Which tag is used to change the default characteristics of a particular tag in the entire web
document wherever that tag is used?
177. The attributes that are used with <MARQUEE>tag are ___
(A) SIZE
(B) BG COLOR
(C) 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
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
180. The communication protocol used by the Internet to transfer hypertext documents is ___
181. The instructions indicated to the browser to display a document are called ___
(A) Codes
(B) Tags
(C) Programs
(D) Statements
(A) 64
(B) 156
18 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(C) 256
(D) 264
184. Transferring your HTML code from one machine to server is known as ___
(A) Indexing
(B) Hosting
(C) Serving
(D) Sorting
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
186. Which of the following programs are likely to become very popular?
(A) Structure
(B) Tag
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
(D) Internet
(B) Notepad
190. Which is the formal description of message formats and rules to be followed by computers?
(A) Standards
(B) Protocol
(C) Syntax
(D) Language
191. Which term is used to refer to the computers that are used for storing web pages as files?
(A) Internet
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
194. _____ are used to allow the user to select one of the options displayed.
195. _____ is used to separate the attributes in the selected segment of a style tag.
(A) :
(B) ;
(C) ,
(D) *
ANS : (B) ;
(A) Size
(B) SRC
(C) Color
(D) Font
(A) FONT
(B) COLOR
(C) TYPE
(D) SIZE
(A) FFOOFF
21 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(B) FFFFFF
(C) FFOOOO
(D) FFFFOO
200. Which of the following attributes specifies the name of the image file?
(A) Font
(B) SRC
(C) Color
(D) Size
(A) Web
(C) Clipart
(D) Toolbar
202. Software applications used for creating web pages and web sites are called as ___
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
204. _____ attribute can be added to make one of the options as the default option.
(A) SIZE
(B) CHECKED
(C) TYPE
(D) VALUE
205. Which of the following is the content of a document that includes text, pictures and links to
other related documents?
(C) Computer
(D) Software
(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
23 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(A) HTML
(B) Ms Paint
(C) Notepad
(D) FrontPage
209. Who send the requisition for web pages to the web servers?
(A) Node
(B) System
210. Which tag is used to identify the author’s name of the web document?
211. Which attribute can be used to change the colour of the links?
(A) Link
(B) ALINK
(C) VLINK
212. The ___ option allows the user to specify a location on the web.
(A) Format
(C) Location
(D) Insert
24 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(A) Notepad
(B) SGML
(C) Gopher
(D) Computer
(C) Tag
215. Which option on the menu can be used to insert rows and columns?
(A) Insert
(B) Tool
(C) Table
(D) Format
216. Which of the following achieves the effect of using script language?
(A) DHTML
(B) XML
(C) HTML
(D) CGI
25 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(A) HTML
(B) FrontPage
(C) Notepad
(D) MS Paint
(A) PASCAL
(B) C
(C) HTML
(D) BASIC
(D) None
(A) Comments
(B) Tags
26 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
(A) <BIG>tag
(B) <SMALL>tag
(C) <MARQUEE>tag
(D) WWW
226. The tag used to add images to the HTML document is ____
(A) <FONT>
(B) <HR>
(C) <HI>
(D) <IMG>
227. The ____ passes the information given by the user to a specified program.
(A) User
(B) Programmer
(D) Browser
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
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
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
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
B. SMTP
C. TCP
D. FTP
ANSWER: D. FTP
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
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
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
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 : B. BPS
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
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
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
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>
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
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>
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. “#”
Ans : D. <table><tr><td>
271. The XML format has a simpler set of …………………… than HTML.
A) loader rule
B) parsing rules
C) generator rule
D) logical rule
34 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
C) multi text
D) simple text
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
275. What does the alt attribute in the <img> tag represent?
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?
281. Which input type is used for a single-line text input field?
a. text
b. textarea
c. input
d. line
Answer: a. text
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?
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
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
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
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
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
a. Red
b. Blue
c. Purple
d. Black
Answer: b. Blue
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?
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?
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?
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?
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
h1 {color: "green";}
a) nothings happen
b) error occurs
c) heading becomes dark-green
d) heading becomes green
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
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
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
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
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
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
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
45 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
Answer: A) style
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
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
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;">
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.
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
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
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
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
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
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 : c) Lexical
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
376. What will be the result or type of error if p is not defined in the following JavaScript code
snippet?
console.log(p)
51 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
377. What is the prototype represents in the following JavaScript code snippet?
a) Not valid
b) Prototype of a function
c) Function javascript
d) A custom constructor
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
384. Which component is used to compile, debug and execute the java programs?
a) JRE
b) JIT
c) JDK
d) JVM
Ans : c) JDK
Ans : c) keyword
387. What is the extension of java code files?
a) .js
b) .txt
c) .class
d) .java
Ans : d) .java
Ans : d) JAVA_HOME
53 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
Ans : c) Compilation
Ans : c) .class
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()
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) 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
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
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
Ans : b) Servlets execute within the address space of web server, platform independent and uses the
functionality of java class libraries
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
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
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
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;
423. In JavaScript, multi-line comments start with __ and end with ___.
a) /* and */
b) <!—and -->
c) ## and ##
d) // and //
Answer: A) /* and */
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
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
61 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
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()
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()
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
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 (\)
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
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
65 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
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
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
67 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
A. Netscape
B. Bell Labs
C. Sun Microsystems
D. IBM
Ans : A. Netscape
A. <script>
B. <head>
C. <meta>
D. <style>
Ans : A. <script>
481. Choose the correct JavaScript syntax to change the content of the following HTML code.
A. Dreamweaver
B. FrontPage
C. HomeSite
D. Macromedia
Ans : B. FrontPage
A. True
B. False
C. Can be true or false
D. Can not say
Ans : A. True
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. <script>
B. <script>
C. </script language="javascript">
D. All of the above
Ans : B. <script>
A. if
B. with
C. debugger
D. use strict
A. \\
B. //
C. \* *\
D. \* */
70 | P a g e
VELOCIS EDUCATION FRONT END MCQ MASTERY GUIDE
Ans : B. //
A. for
B. while
C. forwhich
D. dowhile
Ans : B. while
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
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
A. AvailHeight
B. ColorsDepth
C. AvailWidth
D. ColorDepth
Ans : B. ColorsDepth
(THE END)
72 | P a g e