wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to JavaScript

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following statements distinguishes a programming language 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

2.

Which of the following technologies enables server-side scripting using Java Script

a)

React

b)

Java

c)

Node JS

d)

C++

3.

Which of the following is not a feature for Java Script

a)

Case-sensitive

b)

Compiled Language

c)

Object-Oriented

d)

Platform Independent

4.

Why should comments be included within JavaScript code blocks?

a)

Because comments are required for each Java Script code block

b)

Because comments deactivate all JavaScript code during debugging

c)

Because comments provide accessibility in browsers for the visually impaired.

d)

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

5.

 

Java Script is defined under which category of languages?

a)

Object-Oriented (Prototype-based)

b)

Object-Driven

c)

Object- Independent

d)

Object-Oriented (Class-based)

6.

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 performs an 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

7.

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

a)

::

b)

<!-->

c)

//

d)

/* */

8.

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

a)

Property

b)

Method

c)

Value

d)

Function

9.

Which of the following terms can perform an action by an object?

a)

Value

b)

Object

c)

Method

d)

Property

10.

Which of the following terms specifies the quality of a property?

a)

Value

b)

Property

c)

Object

d)

Prototype