MCQs Web
MCQs Web
15-04-2021
1. Which of the following is the correct syntax to make the background-
color of all paragraph elements to yellow?
a. p {background-color : yellow;}
b. p {background-color : #yellow;}
ans a
2. Which of the following is the correct syntax for referring the external
style sheet?
4. Which of the following tag is used for inserting the largest heading in
HTML?
a. <h3>
b. <h1>
c. <h5>
d. <h6>
5. Which of the following element is responsible for making the text bold in
HTML?
a. <pre>
b. <a>
c. <b>
d. <br>
6. How to create an unordered list (a list with the list items in bullets) in
HTML?
a. <ul>
b. <ol>
c. <li>
d. <i>
a. \
b. !
c. /
d. .
console.log(count);
count++;
}
A. An error is displayed
B. An exception is thrown
storage
11. Which of the following is the correct output for the following JavaScript
code:
Int x=8;
if(x>9)
document.write(9);
else
document.write(x);
a. 9
b. 0
c. 8
d. Undefined
12. Which of the following is the correct output for the following JavaScript
code:
var grade='D';
var result;
switch(grade)
case'A':
result+="10";
case'B':
result+=" 9";
case'C':
result+=" 8";
case 'D'
result+=" 6";
default:
result+=" 0";
document.write(result);
a. 10
b. 6
c. 33
d. 0
13. Which of the following is the correct output for the following JavaScript
code:
var x=3;
var y=2;
var z=0;
If(x==y)
document.write(x);
elseif(x==y)
document.write(x);
else
document.write(z);
a. 3
b. 0
c. Error
d. 2
14. Which of the following is the correct output for the following JavaScript
code:
var grade='Z';
var result;
switch(grade)
case'A':
result+="10";
case'B':
result+=" 9";
case'C':
result+=" 8";
default:
result+=" 0";
}
document.write(result);
a. 10
b. 17
c. 18
d. 0
15. jQuery is a -
a. JavaScript method
b. JavaScript library
c. JSON library
d. PHP method
a. the % sign
c. the $ sign
d. the @ sign
18. Which of the following jQuery method is used to hide the selected
elements?
19. Which of the following jQuery method is used to stop jQuery for few
milliseconds?
a. stop() method
b. delay() method
c. slowdown() method
d. pause() method
a. Run time
b. Compile time
c. Load time
d. None of above
b. “Dot” syntax
c. None of above
a. Tsp
b. tcp
c. Tsc
d. Tcs
tsc
a. Int
b. Int16
c. Number
d. Int32
a. Jquery
b. Javascript
c. .net
d. C#
a. Google
b. Microsoft
c. Apple
d. Facebook
a. Blocks
b. Compartments
c. Components
d. Computers
a. *ngIf
b. ngFor
c. ngModel
b. <h2>{{hero.name}} Details</h2>
c. <h2>{{hero}} Details</h2>
d. <h2>{{uppercase}} Details</h2>
a. Promise
b. Observable
c. Async
d. None of above