wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IT 201 - Midterm Quiz 1 - JavaScript concept and operation

Total questions: 15

Worksheet time: 16mins

Name
Class
Date
1.

Who developed Javascript?

a)

Brendan Eich

b)

Tim Berners-Lee

c)

Marc Andreesen

d)

Rasmus Lerdorf

2.

What was the original name of Javascript chosen by the founder of Netscape?

a)

Livescript

b)

Mocha

c)

JScript

d)

ECMA Script

3.

Which of the following is not an advantage of Javascript?

a)

It validate user input before sending the page off to the server.

b)

It provides immediate feedback to the visitors.

c)

It increase user and interface interactivity.

d)

It support multi-threading and multiprocessor capabilities.

4.

Which of the following is an international body responsible for the development of a scripting standard?

a)

ISO

b)

W3C

c)

ASCII

d)

ECMA

5.

What is the official name of Javascript?

a)

ECMAScript

b)

LiveScript

c)

JScript

d)

Mocha

6.

Which of the following script tag attribute refer to the location of an external document containing the program code​?

a)

ref

b)

href

c)

src

d)

resource

7.

Which of the following is the correct syntax to insert javascript externally?

a)

<script src=“URL” type="text/javascript">

b)

<script src=“URL” language="javascript" type="text/javascript">

c)

<script href=“URL” type="text/javascript">

d)

<script src=“URL” language="javascript">

8.

Which of the following display option should we use if we need to get or set the HTML or XML markup contained within the element?

a)

innerHTML

b)

document.write()

c)

window.alert()​

d)

console.log()​

9.

Which of the following javascript display option is more convenient to used during testing procedure?

a)

document.write()​

b)

innerHTML

c)

console.log()

d)

window.alert

10.

Which of the following display option for javascript is more suited to use for debugging purposes?

a)

innerHTML

b)

document.write()

c)

console.log()

d)

window.alert()

11.

Which of the following option to display in Javascript is often used if you want to make sure information comes through to the user and takes the focus away from the current window?

a)

window.alert

b)

console.log()

c)

innerHTML

d)

document.write()

12.

Which of the following is a variable without a value?

a)

null

b)

undefined

c)

zero

d)

empty

13.

Which of the following operator is used in logical statements to determine equality or difference between variables?

a)

Comparison

b)

Bitwise

c)

Logical

d)

Conditional

14.

What type of operator is applied in the following syntax?

variableName = (condition) ? Value1: value2

a)

ternary

b)

logical

c)

bitwise

d)

comparison

15.

Which of the following operators treat their operands as a sequence of 32 bits (zeroes and ones), rather than as decimal, hexadecimal, or octal numbers?

a)

bitwise

b)

arithmetic

c)

assignment

d)

logical