Explore topic-wise MCQs in Testing Subject.

This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.

1.

Which HTML is a container for meta data?

A. <body>
B. <html>
C. <head>
D. <p>
Answer» D. <p>
2.

Which of the following statements is true about a URL?

A. It is used to address a document on the web
B. It is known as Uniform Resource Locator
C. The web pages from the web servers are requested by the URL
D. All of the above
Answer» E.
3.

Abbreviate XHTML.

A. Extensible HyperText Markup Language
B. Extensive High Text Markup Language
C. Extensive HyperText Markup Language
D. Extensible High Text Markup Language
Answer» B. Extensive High Text Markup Language
4.

What are the two method attributes that are used while submitting the forms?

A. GET
B. POST
C. SUBMIT
D. Both A & B
Answer» E.
5.

What is the inline style used for?

A. To apply style to all the pages
B. To applying a unique style to a single HTML element
C. To define a common style for all HTML elements on a page
D. All of the above
Answer» C. To define a common style for all HTML elements on a page
6.

The tag is used to _______.

A. give a page description
B. define style information
C. define a link between a document and an external resource
D. both A & B
Answer» D. both A & B
7.

Which attribute is used to start a video automatically?

A. submit
B. select
C. <video>
D. autoplay
Answer» E.
8.

Which tags can be used to display the audio and video?

A. <audio>
B. <video>
C. both a & b
D. none of the above
Answer» D. none of the above
9.

Which object returns the current position of the user and continues to return updated position as the user moves?

A. watchPosition()
B. clearWatch()
C. getCurrentPosition()
D. timestamp
Answer» B. clearWatch()
10.

Which are the objects used for storing data on the client provided by the HTML local storage?

A. window.localStorage
B. window.sessionStorage
C. window.localSession
D. both a & b
Answer» E.
11.

Which CSS property is used for controlling the layout?

A. header
B. display
C. footer
D. none of the above
Answer» C. footer
12.

Pseudo-classes in CSS ________.

A. match a specified element
B. select the active links
C. are used to define a special state of an element
D. are used to select all the visited links
Answer» D. are used to select all the visited links
13.

Which is the correct CSS syntax?

A. body:color=black
B. {body;color:black}
C. {body:color=black(body}
D. body {color: black}
Answer» E.
14.

Choose the correct HTML tag for the largest heading

A. <h6>
B. <heading>
C. <head>
D. <h1>
Answer» E.
15.

Which of the following is / are the new APIs of HTML5?

A. HTML Geolocation
B. HTML Drag & Drop
C. HTML Web Workers
D. All of the above
Answer» E.
16.

Which tag defines self - contained content like diagrams, photos, illustrations etc.?

A. <figure>
B. <mark>
C. <main>
D. <details>
Answer» B. <mark>
17.

Which HTML tag is used to define what should be displayed in browsers that do not support ruby annotations?

A. <nav>
B. <rp>
C. <rt>
D. <ruby>
Answer» C. <rt>
18.

Where is the tag used in an HTML page?

A. For adding images
B. For a graphic drawing using SVG
C. For a graphic drawing using javascript
D. None of the above
Answer» D. None of the above
19.

Semantic elements are elements which ____________.

A. describe its meaning only to the developer
B. do not have any meaning
C. are used to describe a page
D. clearly describe its meaning to the browser and the developer
Answer» E.
20.

A simple text file which tells the browser what to cache is known as a ________.

A. Input files
B. HTML file
C. A manifest file
D. Output files
Answer» D. Output files
21.

What is a web worker?

A. It helps in executing the tags on the page
B. It is a JavaScript running in the background without affecting the performance of the page
C. It is a functional tool
D. None of the above
Answer» C. It is a functional tool
22.

Which object is used to receive the server - sent event notifications?

A. source.onmessage
B. getElementById
C. EventSource
D. echo
Answer» D. echo
23.

Which CSS property sets a background image for an element?

A. background
B. background - attachment
C. background - color
D. background - image
Answer» E.
24.

Which CSS property is used with the direction property to set or return whether the text should be overridden to support multiple languages in the same document?

A. unicode - bidi
B. color
C. line - height
D. direction
Answer» B. color
25.

Which of the following statement is / are true about a canvas?

A. It is a rectangular area on an HTML page
B. By default it does have no borders and content
C. Always specify the height and the width to define the size
D. All of the above
Answer» E.
26.

Abbreviate SVG.

A. Scalable Vector Graphics
B. Segmented Variable Graphics
C. Scalable Variable Graphics
D. Segmented Variable Graphics
Answer» B. Segmented Variable Graphics
27.

Abbreviate CSS.

A. Classical Style Sheets
B. Cascading Style Sheets
C. Common Style Sheets
D. Cascading Symbol Sheets
Answer» C. Common Style Sheets
28.

Which tag can be used to insert a horizontal line on a web page?

A. < hr>
B. < br>
C. < line>
D. < line direction = horizontal >
Answer» B. < br>
29.

To create a checkbox for a form which tag is used?

A. < input type = checkbox >
B. < checkbox>
C. < input = checkbox>
D. < cb>
Answer» B. < checkbox>
30.

If you want to change the text colour to red which of the following tags will you use?

A. < body text = red>
B. < body bgcolour = red>
C. < body colour = red>
D. None of the above
Answer» B. < body bgcolour = red>
31.

To give a larger heading on an HTML page which tag can we use?

A. < head>
B. < h1>
C. < h6>
D. < h10>
Answer» C. < h6>
32.

Abbreviate HTML.

A. High Text Marking Language
B. Highlight Text Making Language
C. Hyper Text Markup Language
D. None of the above
Answer» D. None of the above
33.

Which of the following is a declaration for an HTML document?

A. <!DOCTYPE html>
B. <html>.....</html>
C. <body>.....</body>
D. <p>.....</p>
Answer» B. <html>.....</html>
34.

What can be used to change the default style of an HTML element?

A. Default attribute
B. Style attribute
C. Text align
D. Both A & B
Answer» C. Text align
35.

Which element of the text type shows that it is important?

A. <strong>
B. <em>
C. <bold>
D. Both A & B
Answer» E.
36.

Which HTML element defines the title of a work and is usually displayed in italics?

A. <bold>
B. <bdo>
C. <cite>
D. <address>
Answer» D. <address>
37.

What does the tag define in an HTML page?

A. Defines keyboard input
B. Defines mathematical variable
C. Defines preformatted text
D. Defines computer output
Answer» B. Defines mathematical variable
38.

What are the three ways by which styling can be added to the HTML elements?

A. Inter, Outer, External
B. Outline, Inline, External
C. Inline, Internal, External
D. None of the above
Answer» D. None of the above
39.

Which attributes can the screen readers read? (HTML)

A. ctrl
B. alt
C. both A & B
D. None of the above
Answer» C. both A & B
40.

Which of the following is the correct syntax to add an iframe?

A. <iframe src = " demo_iframe.htm " style = " border:none " > < / iframe >
B. <iframe src = " demo_iframe.htm " style = " border:5px dotted red " > < / iframe >
C. <iframe src = " demo_iframe.htm " width = " 200 " height = " 200 " > < / iframe >
D. <iframe src = " URL " >< / iframe>
Answer» E.
41.

How many HTML colors are supported by all the browsers?

A. 100
B. 140
C. 50
D. 90
Answer» C. 50
42.

What are the methods used to specify colors in HTML?

A. RGB colors
B. Color names
C. Hexadecimal colors
D. All of the above
Answer» E.
43.

Which HTML tag is used to define a client - side script such as the Javascript?

A. <script>
B. <unscript>
C. Both A & B
D. None of the above
Answer» B. <unscript>
44.

Which attribute can be used to uniquely define one table?

A. alt
B. id
C. <p>
D. border
Answer» C. <p>
45.

Which HTML element is used to define the description data?

A. <dt>
B. <dl>
C. <li>
D. <dd>
Answer» E.
46.

Abbreviate RWD. (HTML)

A. Real World Data
B. Relay Wave Diagram
C. Responsive Web Design
D. Rewind
Answer» D. Rewind
47.

The elements and have the following characteristics

A. Element <DIV> inherits properties defined for <SPAN> in a stylesheet
B. Elements <SPAN> and <DIV> define content to be inline or block-level
C. <DIV> and <SPAN> are used as alternatives for the element <P>
D. <DIV> is used inside element <P>.
Answer» C. <DIV> and <SPAN> are used as alternatives for the element <P>
48.

Which is not a property of attribute Behaviour of tag?

A. alternate
B. blur
C. scroll
D. slide
Answer» C. scroll
49.

When trying to access a URL, the following message is displayed on the browser:Server; Error 403.What could be the reason for the message?

A. The requested HTML file is not available
B. The path to the interpreter of the script file is invalid
C. The first line of the output from the script is not a valid HTTP header
D. The requested HTML file or CGI script has insufficient permission.
Answer» E.
50.

What is the preferred way for adding a background color in HTML?

A. <body background="yellow">
B. <background>yellow</background>
C. <body style="background-color:yellow">
D. <background color="yellow">text<background>
Answer» D. <background color="yellow">text<background>
Previous Next