Introduction to JavaScript

Introduction to JavaScript

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Used 75+ times

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the main characteristic of a programming language that distinguishes it from a scripting language?
Only languages developed by Microsoft can be called "programming languages."
Programming languages are developed by private organizations whereas scripting languages are open-source.
Programming languages are object-based, whereas scripting languages are object-oriented.
Programming languages are compiled whereas scripting languages are interpreted.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

JavaScript is an example of which language model?
procedural
object-oriented
linear
event-driven

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code demonstrates the correct way to link an external JavaScript file to an X/HTML document?
<script type="text/javascript/external" href="myJavaScriptCode.js">
<#include type="text/javascript" src="myJavaScriptCode.js">
<script type="text/javascript" src="myJavaScriptCode.js">
<link type="text/javascript" href="myJavaScriptCode.js">

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following code segments properly ensures that JavaScript code will not be displayed in the browser window by older browsers?
<!-- 
<script language="JavaScript" type="text/javascript"> 
// JavaScript code
var x = 10; 
</script> 
//-->
<!-- 
<script language="JavaScript" type="text/javascript" > 
// JavaScript code
var x = 10; 
</script> 
-->
<script language="JavaScript"> 
<!-- 
// JavaScript code
var x = 10; 
//--> 
</script>
<script language="JavaScript" type="text/javascript"> 
<!-- 
// JavaScript code
var x = 10; 
--> 
</script>

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is true about server-side JavaScript technologies?
Implementations of server-side JavaScript include LiveWire and work with back-end server processes
JavaScript is not used on the server side, only the client side.
Server-side JavaScript is written within X/HTML documents.
Server-side JavaScript is an ongoing project of the W3C expected to be released within the next year.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is a feature of JavaScript?
Requires variable types to be declared ("strong typing")
Object-oriented
Compiled on server before execution on client
Checks object references at run time ("dynamic binding")

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which task is an example of a server-side JavaScript application?
Parsing and disseminating user-submitted information
Working with frames
Launching a new window from a Web page
Validating fields of data in a user-submitted Web form

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?