Web tech Basics Questionnaire
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;}
c. all {background-color : yellow;}
d. all p {background-color : #yellow;}
ans a
2. Which of the following is the correct syntax for referring the external
style sheet?
a. <style src = [Link]>
b. <style src = "[Link]" >
c. <stylesheet> [Link] </stylesheet>
d. <link rel="stylesheet" type="text/css" href="[Link]">
3. The correct sequence of HTML tags for starting a webpage is -
a. Head, Title, HTML, body
b. HTML, Body, Title, Head
c. HTML, Head, Title, Body
d. HTML, Head, Title, Body
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>
7. Which character is used to represent the closing of a tag in HTML?
a. \
b. !
c. /
d. .
8. How to create a hyperlink in HTML?
a. <a href = "[Link]"> [Link] </a>
b. <a url = "[Link]" [Link] /a>
c. <a link = "[Link]"> [Link] </a>
d. <a> [Link] <[Link] /a>
9 How to insert an image in HTML?
a. <img href = "[Link]" />
b. <img url = "[Link]" />
c. <img link = "[Link]" />
d. <img src = "[Link]" />
10. What will happen, if the following JavaScript code is executed?
var count =0;
while (count <10)
[Link](count);
count++;
}
A. An error is displayed
B. An exception is thrown
C. The values of count variable are logged or stored in a particular location or
storage
D. The value of count from 0 to 9 is displayed in the console
11. Which of the following is the correct output for the following JavaScript
code:
Int x=8;
if(x>9)
[Link](9);
else
[Link](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";
[Link](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)
[Link](x);
elseif(x==y)
[Link](x);
else
[Link](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";
}
[Link](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
16. Which of the following sign is used as a shortcut for jQuery?
a. the % sign
b. the & sign
c. the $ sign
d. the @ sign
17. $(this) in jQuery is used when -
a. an HTML element references the entire document
b. an HTML element references its own action
c. an HTML element references the action of its parent element
d. All of the above
18. Which of the following jQuery method is used to hide the selected
elements?
a. The hidden() method
b. The hide() method
c. The visible(false) method
d. The display(none) method
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
20. Typescript provides type checking at
a. Run time
b. Compile time
c. Load time
d. None of above
[Link] function in typescript uses
a. “Arrow” syntax
b. “Dot” syntax
c. None of above
22. Typescript compile statement
a. Tsp
b. tcp
c. Tsc
d. Tcs
tsc
22. In typescript integers are represented by type
a. Int
b. Int16
c. Number
d. Int32
23. Typescript is compiled to
a. Jquery
b. Javascript
c. .net
d. C#
24. Typescript is backed
a. Google
b. Microsoft
c. Apple
d. Facebook
25. What MVC stands for?
A - Model View Control
B - Model View Controller
C - Main View Controller
D - Main View Control
26. Building blocks of angular is called
a. Blocks
b. Compartments
c. Components
d. Computers
27. Two-way binding uses the directive
a. *ngIf
b. ngFor
c. ngModel
28 Syntax to create a new module is
a. Node create component heroes
b. Ng create component heros
c. ng generate component heroes
d. Ng make component heroes
29. Which of the following is invalid
a. <h2>{{[Link] | uppercase}} Details</h2>
b. <h2>{{[Link]}} Details</h2>
c. <h2>{{hero}} Details</h2>
d. <h2>{{uppercase}} Details</h2>
30. Keyword used to fetch data from asynchronous call back is
a. Promise
b. Observable
c. Async
d. None of above