0% found this document useful (0 votes)
7 views13 pages

MCQs Web

The document is a questionnaire covering basic web technologies, including HTML, JavaScript, jQuery, and TypeScript. It consists of multiple-choice questions with correct answers indicated for each question. Topics include syntax for styling, creating lists, hyperlinks, JavaScript operations, and TypeScript features.

Uploaded by

harjot9868
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views13 pages

MCQs Web

The document is a questionnaire covering basic web technologies, including HTML, JavaScript, jQuery, and TypeScript. It consists of multiple-choice questions with correct answers indicated for each question. Topics include syntax for styling, creating lists, hyperlinks, JavaScript operations, and TypeScript features.

Uploaded by

harjot9868
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

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 = example.css>

b. <style src = "example.css" >

c. <stylesheet> example.css </stylesheet>

d. <link rel="stylesheet" type="text/css" href="example.css">

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 = "www.google.com"> google.com </a>

b. <a url = "www.google.com" google.com /a>

c. <a link = "www.google.com"> google.com </a>

d. <a> www.google.com <google.com /a>

9 How to insert an image in HTML?

a. <img href = "jtp.png" />

b. <img url = "jtp.png" />

c. <img link = "jtp.png" />

d. <img src = "jtp.png" />

10. What will happen, if the following JavaScript code is executed?

var count =0;

while (count <10)

console.log(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)

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

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

21.Anonymous 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>{{hero.name | uppercase}} Details</h2>

b. <h2>{{hero.name}} 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

You might also like