Explore topic-wise MCQs in Javascript.

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

1.

Arrange the TCP/IP model layers in the order from farthest to closest to the end user.

A. Network Access Layer, Internet Layer, Application Layer, Transport Layer
B. Network Access Layer, Transport Layer, Internet Layer, Application Layer
C. Network Access Layer, Internet Layer, Transport Layer, Application Layer
D. Network Access Layer, Application Layer, Internet Layer, Transport Layer
Answer» D. Network Access Layer, Application Layer, Internet Layer, Transport Layer
2.

SpiderMonkey was developed by _____________

A. Firefox
B. Internet Explorer
C. Safari
D. Opera
Answer» B. Internet Explorer
3.

*/*_When is JavaScript called obtrusive??

A. JavaScript code is medium sized
B. JavaScript code is so small
C. JavaScript code is so large
D. All of the mentioned
Answer» D. All of the mentioned
4.

*/*_How does SVG describe complex shapes??

A. Path of lines
B. Path of curves
C. Path of lines and curves
D. None of the mentioned
Answer» D. None of the mentioned
5.

*/*_Which of the following is the parameter used to invoke the Audio() constructor??

A. File type
B. Music type
C. Both File and Music
D. None of the mentioned
Answer» D. None of the mentioned
6.

*/*_Which layer is used to control the communication between the hardware in the network??

A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Presentation Layer
Answer» B. Internet Layer
7.

*/*_Which is the alternate name for JavaScriptCore that is used by Safari??

A. Nitro
B. SpiderMoney
C. Carakan
D. None of the mentioned
Answer» B. SpiderMoney
8.

*/*_Which of the following browsers use Webkit??

A. Chrome
B. Internet Explorer
C. Safari
D. Both Chrome and Safari
Answer» E.
9.

*/*_How do you restore a saved coordinate system??

A. restore()
B. getback()
C. set()
D. none of the mentioned
Answer» B. getback()
10.

*/*_Arrange the TCP/IP model layers in the order from furthest to closest to the end user.?

A. Network Access Layer, Internet Layer, Application Layer, Transport Layer
B. Network Access Layer, Transport Layer, Internet Layer, Application Layer
C. Network Access Layer, Internet Layer, Transport Layer, Application Layer
D. Network Access Layer, Application Layer, Internet Layer, Transport Layer
Answer» D. Network Access Layer, Application Layer, Internet Layer, Transport Layer
11.

_ What is the purpose of image replacement?$?

A. To replace an image
B. To implement special effects
C. Removal of image rollovers
D. Implementation of image rollovers
Answer» E.
12.

_ What is the returning value of the getContext() method?$?

A. Drawing model
B. CanvasRenderingContext2D object
C. Context2D object
D. None of the mentioned
Answer» C. Context2D object
13.

_ Which of the following is not the property of the video tag?$?

A. width
B. height
C. breadth
D. none of the mentioned
Answer» D. none of the mentioned
14.

_ Once the TCP/IP connection has been established, the browser sends an HTTP GET request over the connection to the remote server. The remote server finds the resource and returns it in an HTTP Response, the status of which is 200 to indicate a good response.$?

A. HTTP Response
B. HTTP Request
C. Get Request
D. None of the mentioned
Answer» B. HTTP Request
15.

_ Carakan is used by which of the following browsers?$?

A. Firefox
B. Internet Explorer
C. Safari
D. Opera
Answer» E.
16.

_ The User Interface is taken care by which layer?$?

A. Transport Layer
B. Network Layer
C. UI Layer
D. Presentation Layer
Answer» C. UI Layer
17.

_ Which of the following is a property used to check how crisp or fuzzy shadows are?$?

A. shadowColor
B. shadowBlur
C. strokeStyle
D. none of the mentioned
Answer» C. strokeStyle
18.

_ What are the various possessions in the three-way handshake by the TCP?$?

A. Synchronize
B. Synchronize-Acknowledge
C. Acknowledge message
D. All of the mentioned
Answer» E.
19.

_Which HTML element is used to include images?$?

A. image
B. img
C. src
D. sourceimg
Answer» C. src
20.

Which method is used to obtain the “drawing context” object ?$?

A. getContext()
B. getObject()
C. get()
D. getDrawing()
Answer» B. getObject()
21.

Which of the following attributes are common to both audio and video?$?

A. enter
B. control
C. controls
D. all of the mentioned
Answer» D. all of the mentioned
22.

How will the HTTP GET request be sent from the browser?$?

A. Remote server
B. Local server
C. By itself
D. None of the mentioned
Answer» B. Local server
23.

SpiderMonkey was developed by$?

A. Firefox
B. Internet Explorer
C. Safari
D. Opera
Answer» B. Internet Explorer
24.

Which layer is used to handle the HTTP requests?$?

A. Network Layer
B. Transport Layer
C. Application Layer
D. Presentation Layer
Answer» B. Transport Layer
25.

Which of the following are not the properties of a canvas object?$?

A. fillStyle
B. strokeStyle
C. lineWidth
D. lineSize
Answer» E.
26.

Which layer handles the top-level communication?$?

A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Application Layer
Answer» E.
27.

From which version of IE is canvas supported?

A. 7
B. 8
C. 9
D. Not yet supported
Answer» D. Not yet supported
28.

Which of the following render HTML?

A. Browsers
B. Email Clients
C. Web Components
D. All of the mentioned
Answer» E.
29.

The layer in which the TCP (or UDP) communication takes place is

A. Network Access Layer
B. Internet Layer
C. Transport Layer
D. Presentation Layer
Answer» D. Presentation Layer
30.

What is the purpose of the canvas element?

A. Creates drawing surface
B. Exposes powerful drawing API to client-side JavaScript
C. Creates drawing surface & Exposes powerful drawing API to client-side JavaScript
D. None of the mentioned
Answer» D. None of the mentioned
31.

Which is a possible way of finding all the img elements in the document?

A. document(images)
B. document.images[]
C. document(img)
D. all of the mentioned
Answer» C. document(img)
32.

What are the features of an interpreter?

A. Shared with other properties
B. Embedded in other tools
C. Shared with other properties & Embedded in other tools
D. None of the mentioned
Answer» D. None of the mentioned