0% found this document useful (0 votes)
2K views2 pages

Pre-Quiz - Attempt Review - Js

The document describes a quiz that was completed on JavaScript. It consisted of 6 multiple choice questions. The quiz was completed successfully with full marks. The questions covered topics like which machine executes JavaScript scripts, JavaScript events, commenting in JavaScript, manipulating HTML elements using JavaScript, limitations of client-side JavaScript and using script tags.

Uploaded by

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

Pre-Quiz - Attempt Review - Js

The document describes a quiz that was completed on JavaScript. It consisted of 6 multiple choice questions. The quiz was completed successfully with full marks. The questions covered topics like which machine executes JavaScript scripts, JavaScript events, commenting in JavaScript, manipulating HTML elements using JavaScript, limitations of client-side JavaScript and using script tags.

Uploaded by

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

 Dashboard / Primer 2.0 - App Dev / Stage 1 / Web Technologies / JavaScript

Quiz review

Started on Thursday, 30 May 2024, 5:40 PM


State Finished
Completed on Thursday, 30 May 2024, 5:43 PM
Time taken 2 mins 33 secs
Marks 6.00/6.00
Grade 100.00 out of 100.00
Feedback
Congratulations!! You have passed by securing more than 80%

Questi When a user views a page containing a JavaScript program, which machine actually executes the script?

on 1 Select one:
Correct Database Server
52942
Mark 1.00 The Web server
out of 1.00
A central machine deep within Netscape's corporate offices

The User's machine running a Web browser 

Your answer is correct.


The correct answer is: The User's machine running a Web browser

Questi Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the JavaScript code for greeting the user?

on 2 Select one:
52942
Correct onchange

Mark 1.00 onclick 


out of 1.00
onmouseover

onmouseclick

Your answer is correct.


The correct answer is: onclick

Questi Which of the below statements are used to comment a line in JavaScript file?

on 3 Select one:
52942

Correct // this is a comment //

Mark 1.00 <!-- this is a comment -->


out of 1.00
// this is a comment 

/* this is a comment */

Your answer is correct.


The correct answer is: // this is a comment
Questi Which of the below java script code helps to change the content of the paragraph tag dynamically?
on 4 <p id="pid1">Aim Higher.. Sky is your limit

Correct
Select one:
Mark 1.00 document.getElement("p").innerHTML = "Never give up!!";
out of 1.00
document.getElementById("pid1").innerHTML = "Never give up!!"; 

document.getElementByName("p").innerHTML = "Never give up!!";

#demo.innerHTML = "Never give up!!";

Your answer is correct.


The correct answer is: document.getElementById("pid1").innerHTML = "Never give up!!";

Questi David, a beginner in web development trying to perform one particular operation using client side JavaScript. Choose the correct option(s) that he can't be done
with client-side JavaScript?
on 5
Correct Select one:
Display the alert box to the user
Mark 1.00 52942
out of 1.00 Validate a form

Store the form's contents to a database file on the server 

Send a form's contents by email

Your answer is correct.


The correct answer is: Store the form's contents to a database file on the server

Questi When you want to enclose; some JavaScript statements to an HTML file, which is the correct tag you have to use?

on 6 Select one:
52942
Correct <BODY>

Mark 1.00 <HEAD>


out of 1.00
<SCRIPT> 

<STYLE>

Your answer is correct.


The correct answer is: <SCRIPT>

◄ Why JavaScript - Video 52942Jump to... Javascript_Module1 ►

You might also like