0% found this document useful (0 votes)
12 views

javascript quiz

The document consists of a series of multiple-choice questions related to JavaScript, covering topics such as syntax, functions, and features of the language. Key correct answers include that JavaScript is both a client-side and server-side language, and it is developed by Netscape. The document also highlights JavaScript's ability to handle interactivity in HTML pages and various types of pop-up boxes.

Uploaded by

Bharani ISE
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

javascript quiz

The document consists of a series of multiple-choice questions related to JavaScript, covering topics such as syntax, functions, and features of the language. Key correct answers include that JavaScript is both a client-side and server-side language, and it is developed by Netscape. The document also highlights JavaScript's ability to handle interactivity in HTML pages and various types of pop-up boxes.

Uploaded by

Bharani ISE
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. JavaScript is a ___ -side programming language.

Client
Server
Both (A)
None

2. Which of the following will write the message “Hello DataFlair!” in an alert
box?
alertBox(“Hello DataFlair!”);
alert(Hello DataFlair!);
msgAlert(“Hello DataFlair!”);
alert(“Hello DataFlair!”); (A)

3. How do you find the minimum of x and y using JavaScript?


min(x,y);
Math.min(x,y) (A)
Math.min(xy)
min(xy);

4. Which is the correct JavaScript syntax to change the HTML content given
below?

A. document.getElementById(“test”).innerHTML = “Hello DataFlair!”;(A)


B. document.getElementsById(“test”).innerHTML = “Hello DataFlair!”;
C. document.getElementById(test).innerHTML = “Hello DataFlair!”;
D. document.getElementByTagName(“p”)[0].innerHTML = “Hello
DataFlair!”;

5. Which company developed JavaScript?

A. Netscape (A)
B. Bell Labs
C. Sun Microsystems
D. IBM

6. Which of the following is correct about features of JavaScript?

A. It can not Handling dates and time.


B. JavaScript is a object-based scripting language.(A)
C. JavaScript is not interpreter based scripting language.
D. All of the above
7. Which of the following is the correct syntax to display "Letsfindcourse" in
an alert box using JavaScript?

A. alert-box("Letsfindcourse");
B. confirm("Letsfindcourse");
C. msgbox("Letsfindcourse");
D. alert("Letsfindcourse"); (A)

8. What is the correct syntax for referring to an external script called


"LFC.js"?

A. <script src="LFC.js">(A)
B. <script source="LFC.js">
C. <script ref="LFC.js">
D. <script type="LFC.js">

9. JavaScript is designed for following purpose -

A. to style HTML pages


B. to execute Queries related to databases on a server
C. to add interactivity to html pages
D. All of the above

10. What are the types of Pop up boxes available in JavaScript?

A. Alert
B. Prompt
C. Confirm
D. All of the above

You might also like