Explore topic-wise InterviewSolutions in .

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

51.

True or False:1. The increment operator in JavaScript is used to decrement the value of variables by one.2. Mistakes are non-executable statements in the program.

Answer»

1. False

2. False

52.

JavaScript returns ‘____________’ when variable which is declared but not assigned. (A) Undefined (B) Number (C) Strings (D) Boolean

Answer»

Correct option is  (A) Undefined

53.

1. ___________ is reusable code block that will be executed when it is called.2. ___________ function is used to parse a string and convert it into a number.

Answer»

1. Function

2. parseInt()

54.

1. ___________ function is used when you want input value from user at the time of program execution.2. ___________ function displays confirmation message box with ok and cancel button.

Answer»

1. prompt()

2. confirm()

55.

True or False:1. The ‘Checked’ attribute specifies the default selection for options in a checkbox or radio button.2. The ‘Size’ attribute can be used with text, checkbox, radio, submit or reset.

Answer»

1. True

2. False

56.

<Input type = “text”> creates a one line __________ (A) Textbox (B) Radio (C) Checkbox (D) Submitting

Answer»

Correct option is  (A) Textbox

57.

__________ allows more than one selection against multiple choices. A) Textbox(B) Radio (C) Checkbox (D) Submitting

Answer»

(C) Checkbox

58.

The __________ is a basic unit of storage in a JavaScript program.(A) Variable (B) Java (C) .Net (D) Python

Answer»

(A) Variable

59.

1. ___________ operator in JavaScript is used to decrement value of variable by one.2. ___________ are non-executable statements in program.

Answer»

1. Decrement

2. Comments

60.

The __________ button allows one option selection against multiple choices. (A) Textbox (B) Radio (C) Checkbox (D) Submitting

Answer»

Correct option is  (B) Radio

61.

1. Statements added in ___________ are ignored by JavaScript.2. ___________ is used to perform repetitive tasks whenever required.

Answer»

1. Comments

2. Function

62.

The page is divided into two sections internally __________ section and __________ section. (A) Head (B) body (C) <html>(D) Container tags (E) </html>

Answer»

(A) Head, (B) body

63.

HTML tags are categorized as _________ & __________ (A) Beginning(B) Container tags (C) End(D) Empty tags (E) Standalone

Answer»

(B) Container tags, (D) Empty tags

64.

1. JavaScript returns ‘___________’ when variable which is declared but not assigned.2. ___________ are used to do arithmetic and logical operations.

Answer»

1. Undefined

2. Operators

65.

___________ are used to provide information or explanation about your programming construct. (A) Comments (B) Mistakes (C) Java (D) Python

Answer»

(A) Comments

66.

__________ (++) operator in JavaScript is used to increment value of variable by one. (A) Assignment (B) Relational (C) Logical (D) Increment

Answer»

(D) Increment

67.

__________ operators are used to verifying more than one condition at a time or to negate the condition. (A) Assignment (B) Relational (C) Logical (D) Increment

Answer»

Correct option is  (C) Logical

68.

__________ operators are used to check conditions or comparison of operands. (A) Assignment (B) Relational (C) Logical (D) Increment

Answer»

(B) Relational

69.

__________ operator is used to assign value of an expression to a variable. (A) Assignment (B) Relational (C) Logical (D) Increment

Answer»

(A) Assignment

70.

___________ are non-executable statements in program. (A) Comments (B) Mistakes(C) Java (D) Python

Answer»

(A) Comments

71.

__________ operator in JavaScript is used to decrement value of variable by one. (A) Assignment (B) Relational (C) Logical (D) Decrement

Answer»

(D) Decrement

72.

___________ function displays alert popup box with ok button. This is also called as a message box. (A) Function (B) parselnt() (C) parseFloat() (D) alert()

Answer»

Correct Answer is  (D) alert()

73.

True or False:1. confirm() function displays a confirmation message box with ok and cancel buttons.2. toUpperCase() string function used to convert the given string into lower case alphabets.

Answer»

1. True

2. False

74.

___________ function displays confirmation message box with ok and cancel button.(A) prompt() (B) confirm() (C) toLowerCase() (D) toUpperCase()

Answer»

(B) confirm()

75.

<Input type =”checkbox”> creates a __________ (A) Textbox (B) Radio (C) Checkbox (D) Submitting

Answer»

(C) Checkbox

76.

True or False:1.  <Input type = “checkbox”>  creates a Password.2. The button allows more than one selection against multiple choices.

Answer»

1. False

2. False

77.

The ‘______________’ attribute can be used with text, checkbox, radio, submit or reset. (A) Checked (B) Value (C) Name (D) Maxlength

Answer»

Correct option is  (B) Value

78.

The ‘______________’ attribute specifies the default selection for options in a checkbox or radio button. (A) Checked (B) Value (C) Name (D) Maxlength

Answer»

Correct option is (A) Checked

79.

The web pages are retrieved from the original location with the help of __________ (A) Web Server (B) Uniform Resource Locator (C) Hyper Text Transfer Protocol (D) Hypertext

Answer»

(B) Uniform Resource Locator

80.

True or False:1. The web pages are retrieved from the original location with the help of Uniform Resource Locator.2. The full form of HTTP is HyperText Transfer Protocol.

Answer»

1. True

2. True

81.

1. ___________ attribute is used to set scripting language.2. The ___________ is a basic unit of storage in a JavaScript program.

Answer»

1. Language

2. Variable

82.

It aligns the table either to the __________, __________ or __________ (A) Left (B) Png (C) Right (D) Center(E) Gif

Answer»

(A) Left, (C) Right, (D) Center

83.

The popular extensions of image file are __________, __________ and __________ (A) Left (B) Png (C) Right (D) Jpg (E) Gif

Answer»

(B) Png, (D) Jpg, (E) Gif

84.

Match the following:Column‘A’Column ‘B’(1) <u> (A) (A) Displays textwith underline (2 <small>  (B) Displays text in subscript form(3) <sub> (C) Displays text in smallfont size(4) <ins> (D)Anything that appearswithin <ins>…</ins> element is displayed as inserted text

Answer»
Column‘A’Column ‘B’
(1) <u> (A) Displays text
with underline 
(2 <small>  (C) Displays text in
 small font size
(3) <sub> (B) Displays text in
 subscript form
(4) <ins> (D)Anything that appears
within <ins>…</ins> element 
 is displayed as inserted text 
85.

Match the following:Column ‘A’Column ‘B’(1) &lt;footer&gt; (A) Defines additional details(2) &lt;details&gt;  (B) Displays text within it in italicized manner(3) &lt;b&gt;  (C)Displays text within it in Bold(4) &lt;i&gt; (D) Defines a footer

Answer»
Column ‘A’Column ‘B’
(1) <footer> (D) Defines a footer
(2) <details>  (A) Defines additional details
(3) <b>  (C)Displays text within
 it in Bold
(4) <i> (B) Displays text within it
in italicized manner
86.

Match the following:Column ‘A’Column ‘B’(1) Container Tags (A) Defines a header(2) Empty tags(B) Paired tags(3)&lt;!DOCTYPE html&gt;(C) Standalone tags(4) &lt;header&gt;(D) A document type declaration

Answer»
Column ‘A’Column ‘B’
(1) Container Tags (B) Paired tags
(2) Empty tagsC) Standalone tags
(3)<!DOCTYPE html>(D) A document type declaration
(4) <header>(A) Defines a header
87.

Confirm() function displays confirmation message box with __________ and __________ button. (A) Ok(B) Single line comment (C) Cancel (D) Multiline comment (E) Programming

Answer»

(A) Ok, (C) Cancel

88.

Match the following:Column ‘A’Column ‘B’(1) &lt;nav&gt; (A) Defines a container(2) &lt;section&gt;  (B)Defines an independent  self-contained article(3) &lt;article&gt;  (C) Defines a section(4) &lt;aside&gt; (D)Defines content apart from the content

Answer»
Column ‘A’Column ‘B’
(1) <nav> (A) Defines a container
(2) <section>  (C) Defines a section
(3) <article>  (B) Defines an independent
self-contained article
(4) <aside> (D)Defines content
 apart from the content
89.

Match the following:Column‘A’Column ‘B’(1) alt (A) It is referred to as alternate text(2) &lt;HR&gt; tag (B) Define paragraphs(3) &lt;P&gt; tag (C) Display horizontal ruled line(4) table (D) Rows and column

Answer»
Column‘A’Column ‘B’
(1) alt (A) It is referred to as alternate text
(2) <HR> tag  (C) Display horizontal ruled line
(3) <P> tag (B) Define paragraphs
(4) table (D) Rows and column
90.

Match the following:Column‘A’Column ‘B’(1) &lt;table&gt; (A) It indicates table heading(2) &lt;caption&gt; (B) It is used to speedy a table heading (3) &lt;tr&gt; (C) Create each row of the table (4) &lt;th&gt; (D) It is used to indicate creation of a table

Answer»
Column‘A’Column ‘B’
(1) <table>(D) It is used to indicate
 creation of a table
(2) <caption> (B) It is used to speedy a
 table heading 
(3) <tr> (C) Create each row of the table 
(4) <th> (A) It indicates table heading
91.

Match the following:Column‘A’Column ‘B’(1) &lt;IMG&gt; tag (A) Specifies the width of the image(2 src (B)It is used to specify the path of an image file(3) Height (C) Specifies the height of the image(4) Width (D) Insert an image

Answer»
Column‘A’Column ‘B’
(1) <IMG> tag (D) Insert an image
(2 src  (B) It is used to specify the path
 of an image file
(3) Height (C) Specifies the height of the image
(4) Width (A) Specifies the width of the image
92.

Match the following:Column‘A’Column ‘B’(1) Bgcolor (A) Creates a checkbox(2) &lt;Input type  =”text”&gt; (B) Creates a one line textbox(3) &lt;Input type =”radio”&gt; (C) Creates a radio button(4) &lt;Input type =”checkbox”&gt; (D) Sets the background color

Answer»
Column‘A’Column ‘B’
(1) Bgcolor (D) Sets the background color
(2) <Input type  =”text”> (B) Creates a one line textbox
(3) <Input type =”radio”> (C) Creates a radio button
(4) <Input type =”checkbox”> (A) Creates a checkbox
93.

Match the following:Column‘A’Column ‘B’(1) &lt;td&gt; (A) It specifies data within the table (2) Border (B) Aligns the table(3) Border color  (C) Displays border in a specific color(4) Align (D) Display a border

Answer»

Match the following:

Column‘A’Column ‘B’
(1) <td> (A) It specifies data within the table 
(2) Border (D) Display a border 
(3) Border color  (C) Displays border in a specific color
(4) Align (B) Aligns the table
94.

___________ can be called either by an event or by giving call to that function. (A) Function (B) Gmail (C) Hotmail (D) Program

Answer»

(A) Function

95.

Event is an action done by the __________ or an __________ (A) Event (B) User(C) Application (D) Call (E) Attributes

Answer»

(B) User, (C) Application

96.

__________ are used to generate dynamic Web pages on the Web.(A) JavaScript (B) Scripts (C) Language (D) Python

Answer»

Correct option is  (B) Scripts

97.

1. ___________ are used to generate dynamic Web pages on the Web.2. ___________ can be use for client side or server side scripting language.

Answer»

1. Scripts

2. JavaScript

98.

The __________ attribute is a user defined value. (A) Type (B) Name (C) Maxlength (D) Size

Answer»

Correct option is  (B) Name

99.

The web pages are retrieved from the original location with the help of ___________

Answer»

Uniform Resource Locator

100.

__________ is a simple text file created using HTML. (A) World Wide Web (B) Webpage (C) Website (D) Web

Answer»

Correct option is  (B) Webpage