
Introduction to JavaScript
Computers
9th - 12th Grade
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 1 pt
JavaScript is an example of which language model?
procedural
object-oriented
linear
event-driven
3.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 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" 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>
<!--
// JavaScript code
var x = 10;
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--
// JavaScript code
var x = 10;
-->
</script>
<!--
// JavaScript code
var x = 10;
-->
</script>
5.
MULTIPLE CHOICE QUESTION
30 sec • 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
30 sec • 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
30 sec • 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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?