194
92.7k

410+ Web Technology Solved MCQs

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Bachelor of Business Administration in Computer Applications (BBA [CA]) .

Chapters

More MCQs
351.

Head tag is used for?

A. Writing style
B. Writing Java Script
C. Including CSS, JS Files
D. All of these
Answer» D. All of these
352.

Which of the following are the background properties in CSS? i) background-color ii) background-image iii) background-repeat iv) background-position v) background

A. i, ii, iii and iv only
B. i, ii, iii and v only
C. i, ii, iv and v only
D. All of the above
Answer» D. All of the above
353.

The different ways to associate styles with a HTML document are ……………

A. Embedded css with <style> element
B. Inline css with style attribute
C. External css with <link> element
D. All of the above
Answer» D. All of the above
354.

The ..................... specifies whether a border should be solid, dashed line, dotted line, double line, groove etc.

A. border-layout
B. border-decoration
C. border-style
D. border-weight
Answer» C. border-style
355.

Which of the following are the advantages of CSS?

A. CSS saves time
B. Page load faster
C. Easy maintenance
D. All of the above
Answer» D. All of the above
356.

A CSS style rule is made up of three parts which are …… i) Selector ii) Property iii) Value iv) Attribute

A. ii and iv only
B. ii, iii and iv only
C. i, ii and iii only
D. i, ii, iii and iv
Answer» C. i, ii and iii only
357.

Which is not the selector type of CSS?

A. ID selector
B. Universal selector
C. Class selector
D. Element selector
Answer» B. Universal selector
358.

CSS comments are inserted inside …………………

A. //...................//
B. <!..................>
C. /*..................*/
D. All of the above
Answer» C. /*..................*/
359.

...................... is used to import an external style sheet

A. @insert
B. @import
C. #import
D. #insert
Answer» C. #import
360.

The ___________ property specifies the stack order of an element

A. d-index
B. s-index
C. x-index
D. z-index
Answer» D. z-index
361.

To specify table border in CSS, ____________ property is used

A. tbl-border
B. table-border
C. tb-border
D. border
Answer» D. border
362.

______________ property specifies an image to use as the background of an element

A. backg-img
B. backg-image
C. background-img
D. background-image
Answer» D. background-image
363.

Which HTML attribute is used to define inline styles?

A. class
B. styles
C. style
D. Font
Answer» C. style
364.

The <link> tag goes inside

A. body section
B. head section
C. style section
D. title section
Answer» B. head section
365.

When does JavaScript code appear inline within an HTML file?

A. Between the “script” tag
B. Outside the “script” tag
C. Both a and b
D. None of the mentioned
Answer» A. Between the “script” tag
366.

Which is the root element in a HTML document?

A. HTML
B. HEAD
C. SCRIPT
D. BODY
Answer» A. HTML
367.

What is the default value of the type attribute in javascript?

A. text/css
B. text/javascript
C. text
D. xml
Answer» A. text/css
368.

What are the objects in Java Script?

A. Document object
B. Window object
C. Form object
D. All of the above
Answer» D. All of the above
369.

JavaScript Code can be called by using

A. RMI
B. Triggering Event
C. Preprocessor
D. Function
Answer» D. Function
370.

A hexadecimal literal begins with

A. 00
B. 0x
C. 0X
D. Both b and c
Answer» D. Both b and c
371.

The escape sequence ‘\f’ stands for

A. Floating numbers
B. Representation of functions that returns a value
C. \f is not present in JavaScript
D. Form feed
Answer» D. Form feed
372.

The snippet that has to be used to check if “a” is not equal to “null” is

A. if(a!=null)
B. if (!a)
C. if(a!null)
D. if(a!==null)
Answer» D. if(a!==null)
373.

Among the following, which one is a ternary operator?

A. +
B. :
C.
D. ?:
Answer» D. ?:
374.

Consider the following statements var text = "testing: 1, 2, 3"; // Sample text var pattern = /\d+/g In order to check if the pattern matches with the string “text”, the statement is

A. text==pattern
B. pattern.test(text)
C. text.test(pattern)
D. text.equals(pattern)
Answer» B. pattern.test(text)
375.

A function definition expression can be called

A. Function prototype
B. Function literal
C. Function definition
D. Function declaration
Answer» B. Function literal
376.

JavaScript is a _______________ language

A. Object-Oriented
B. High-level
C. Assembly-language
D. Object-Based
Answer» D. Object-Based
377.

A conditional expression is also called a

A. Alternate to if-else
B. Immediate if
C. If-then-else statement
D. None of the above
Answer» B. Immediate if
378.

The “var” and “function” are

A. Keywords
B. Declaration statements
C. Datatypes
D. Prototypes
Answer» B. Declaration statements
379.

The method or operator used to identify the array is

A. isarrayType()
B. ==
C. ===
D. typeof
Answer» D. typeof
380.

What will happen if reverse() and join() methods are used simultaneously ?

A. Reverses and stores in the same array
B. Reverses and concatenates the elements of the array
C. Reverses
D. All of the above
Answer» A. Reverses and stores in the same array
381.

The pop() method of the array does which of the following task ?

A. decrements the total length by 1
B. increments the total length by 1
C. prints the first element but no effect on the length
D. None of the above
Answer» A. decrements the total length by 1
382.

The ‘$’ present in the RegExp object is called a

A. character
B. matcher
C. metacharacter
D. metadata
Answer» C. metacharacter
383.

The regular expression to match any one character not between the brackets is

A. [...]
B. [^]
C. [^...]
D. [\D]
Answer» C. [^...]
384.

The type that specifies what kind of event occured is

A. event type
B. even target
C. Both a and b
D. None of the above
Answer» A. event type
385.

Which is the object on which the event occured or with which the event is associated?

A. event type
B. event target
C. Both a and b
D. None of the above
Answer» B. event target
386.

In general, event handler is nothing but

A. function
B. interface
C. event
D. handler
Answer» A. function
387.

When will the browser invoke the handler?

A. Program begins
B. Any event occurs
C. Specified event occurs
D. None of the above
Answer» C. Specified event occurs
388.

Which are the events that have default actions that can be canceled by event handlers?

A. Submit and form-related events
B. Reset and form-related events
C. Submit and reset events
D. None of the mentioned
Answer» C. Submit and reset events
389.

The events that represents occurrences related to the browser window are

A. Window
B. Element
C. Display
D. Handlers
Answer» A. Window
390.

Which event is fired when a document and all of its external resources are fully loaded and displayed to the user?

A. Window
B. Load
C. Element
D. Handler
Answer» B. Load
391.

Which is the opposite to the load event in JavaScript?

A. dontload
B. postload
C. preload
D. unload
Answer» D. unload
392.

When are the mouse events generated?

A. When user clicks the mouse over a document
B. When user moves the mouse over a document
C. Both a and b
D. None of the above
Answer» C. Both a and b
393.

When is the mouseover event fired?

A. When mouse is moved over a new element
B. When mouse is clicked
C. When mouse is both moved and clicked
D. None of the above
Answer» A. When mouse is moved over a new element
394.

The focus and blur events are also part of

A. Element events
B. Handler events
C. Window events
D. Scroll events
Answer» C. Window events
395.

Which syntax is used to describe elements in CSS?

A. Protectors
B. Selectors
C. Both a and b
D. None of the above
Answer» B. Selectors
396.

The C in CSS stands for

A. Continuous
B. Cascaded
C. Contentional
D. Cascading
Answer» D. Cascading
397.

When are the keyboard events fired?

A. When user manually calls the button
B. When user clicks a key
C. When the user calls the modifier
D. All of the above
Answer» A. When user manually calls the button
398.

What PHP stands for?

A. Hypertext Preprocessor
B. Pre Hypertext Processor
C. Pre Hyper Processor
D. Pre Hypertext Process
Answer» A. Hypertext Preprocessor
399.

Which of the following tags is not a valid way to begin and end a PHP code block?

A. <% %>
B. <? ?>
C. <! !>
D. <? php ?>
Answer» D. <? php ?>
400.

Variables always start with a ........ in PHP

A. Pond-sign
B. Yen-sign
C. Dollar-sign
D. Euro-sign
Answer» C. Dollar-sign

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.