NEW
Font size
WorksheetsuCertify Chapter 1 Test
Total questions: 20
Worksheet time: 10mins
Which of the following best describes an object-oriented program?
A network of objects logically connected to one another that perform a series of tasks
A sequence of statements that collectively perform a specific task
A collection of individual objects that perform different functions
A collection of objects that perform specific functions in a sequential order
JavaScript fits best under which category of languages?
Object-driven
Object-oriented
Object-independent
Object-based
Which main characteristic of a programming language distinguishes it from a scripting language?
Programming languages are object-based, whereas scripting languages are object-oriented.
Programming languages are developed by private organizations whereas scripting languages are open-source.
Programming languages are compiled whereas scripting languages are interpreted.
Programming languages are subsets of scripting languages and are interpreted.
Which of the following terms identifies the attributes that define the characteristics of an object?
Value
Property
Function
Method
Which of the following is used to add multiline comments in JavaScript?
::
<!-- ... -->
//
/* */
Why should comments be included within JavaScript code blocks?
Because comments are required for each JavaScript code block
Because comments provide a way to indicate the intent of the code
Because comments deactivate all JavaScript code during debugging
Because comments provide accessibility in browsers for the visually impaired
Which of the following technologies enables server-side scripting using JavaScript?
Java
React
Node.js
C++
What type of a language is HTML?
Scripting language
Programming language
Semantic language
Markup language
What is Microsoft's implementation of JavaScript called?
ECMAScript
MScript
JScript
JavaScript
Which of the following is not a feature of JavaScript?
Object-oriented
Compiled language
Case-sensitive
Platform independent
Which of the following companies originally developed JavaScript?
Sun Microsystems
Microsoft Corporation
World Wide Web Consortium (W3C)
Netscape Corporation
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
Conditions return values of which data type?
Integer
boolean
floating-point
string
Loops in programming start counting from ?
0
1
Any number
What is the proper function to call to print to the screen?
write
println
post
When we are done with a line what do we put at the end?
a colon :
a semi-colon ;
a period .
a quotation mark "
What is a variable
Store values in containers so we can use them later.
Store values in containers so we can use them never.
Store values in containers so we can use them once.
Store values in containers so we can't use them later.
What function do you need to call to ask the user of the program to enter text?
readLine
readln
text
println
