wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

uCertify Chapter 1 Test

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following best describes an object-oriented program?

a)

A network of objects logically connected to one another that perform a series of tasks

b)

A sequence of statements that collectively perform a specific task

c)

A collection of individual objects that perform different functions

d)

A collection of objects that perform specific functions in a sequential order

2.

JavaScript fits best under which category of languages?

a)

Object-driven

b)

Object-oriented

c)

Object-independent

d)

Object-based

3.

Which main characteristic of a programming language distinguishes it from a scripting language?

a)

Programming languages are object-based, whereas scripting languages are object-oriented.

b)

Programming languages are developed by private organizations whereas scripting languages are open-source.

c)

Programming languages are compiled whereas scripting languages are interpreted.

d)

Programming languages are subsets of scripting languages and are interpreted.

4.

Which of the following terms identifies the attributes that define the characteristics of an object?

a)

Value

b)

Property

c)

Function

d)

Method

5.

Which of the following is used to add multiline comments in JavaScript?

a)

::

b)

<!-- ... -->

c)

//

d)

/* */

6.

Why should comments be included within JavaScript code blocks?

a)

Because comments are required for each JavaScript code block

b)

Because comments provide a way to indicate the intent of the code

c)

Because comments deactivate all JavaScript code during debugging

d)

Because comments provide accessibility in browsers for the visually impaired

7.

Which of the following technologies enables server-side scripting using JavaScript?

a)

Java

b)

React

c)

Node.js

d)

C++

8.

What type of a language is HTML?

a)

Scripting language

b)

Programming language

c)

Semantic language

d)

Markup language

9.

What is Microsoft's implementation of JavaScript called?

a)

ECMAScript

b)

MScript

c)

JScript

d)

JavaScript

10.

Which of the following is not a feature of JavaScript?

a)

Object-oriented

b)

Compiled language

c)

Case-sensitive

d)

Platform independent

11.

Which of the following companies originally developed JavaScript?

a)

Sun Microsystems

b)

Microsoft Corporation

c)

World Wide Web Consortium (W3C)

d)

Netscape Corporation

12.

What is the symbol used for the INCREMENT operator in JS?

a)

+

b)

++

c)

=

d)

==

13.

Conditions return values of which data type?

a)

Integer

b)

boolean

c)

floating-point

d)

string

14.

Loops in programming start counting from ?

a)

0

b)

1

c)

Any number

15.
Generally speaking, what functionality does JavaScript provide when used as part of the "Web development trifecta"?
a)
Page manipulation capabilities and advanced interactivity
b)
Content and page structure, but minimum interactivity
c)
Formatting and page design, plus some simple interactivity
d)
Content, page structure, and advanced interactivity
16.
JavaScript is a scripting language. Scripting languages:
a)
interpret and automate a list of tasks that would otherwise be executed one-at-a-time by a person.
b)
interpret and execute a list of tasks once the list is compiled.
c)
need the server to interpret a script and to return the appropriate responses.
d)
perform their functionality on the server side, which reduces processing time dramatically.
17.

What is the proper function to call to print to the screen?

a)

write

b)

println

c)

PRINT

d)

post

18.

When we are done with a line what do we put at the end?

a)

a colon :

b)

a semi-colon ;

c)

a period .

d)

a quotation mark "

19.

What is a variable

a)

Store values in containers so we can use them later.

b)

Store values in containers so we can use them never.

c)

Store values in containers so we can use them once.

d)

Store values in containers so we can't use them later.

20.

What function do you need to call to ask the user of the program to enter text?

a)

readLine

b)

readln

c)

text

d)

println