Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JavaScript

Total questions: 24

Worksheet time: 14mins

Name
Class
Date
1.

It is a programming language used to create web pages.

a)

HTML

b)

JavaScript

c)

CSS

d)

Client-Side JavaScript

2.

This is use to add interactivity to web pages.

a)

HTML

b)

JavaScript

c)

CSS

d)

Client-side JavaScript

3.

This is use to test the JavaScripts.

a)

Google Chrome

b)

Browser

c)

Notepad

d)

HTML5

4.

This JS tag is used to display text.

a)

document.write()

b)

document.read()

c)

document.write

d)

document.writeln

5.

It displays a simple message dialog box with an OK button.

a)

alert()

b)

prompt()

c)

document.write()

d)

<script>

6.

It displays a dialog box that requires user input.

a)

alert()

b)

prompt()

c)

document.write

d)

document.writeln

7.

These are operators used to perform mathematical calculations.

a)

Arithmetic Operators

b)

Assignment Operators

c)

Relational/ Comparison Operators

d)

Logical Operators

8.

This serves as a memory allocation of data.

a)

Variable

b)

Expression

c)

Operator

d)

Operand

9.

What is Javascript?

a)

programming language

b)

HTML tags

c)

CSS

d)

A web page

10.

Where do the <script></script> tags go in your document

a)

Within <img> tags

b)

In the <p></p> tags

c)

In the <title>

d)

In the <head> or <body>

11.
Is JavaScript exactly the same as Java?
a)
No
b)
Yes
12.
JavaScript code is embedded in HTML documents between <script> and </script> tags.
a)
True
b)
False
13.
Javascript is case-sensitive
a)
True
b)
False
14.
What is CSS used for?
a)
styling web pages
b)
formatting script correctly
c)
client side scripting
d)
server side scripting
15.

JavaScripts need to be put in the ____ and ____section of an HTML page.

a)

head and body

b)

Paragraph

c)

footer

16.
How many scripts can you place in an HTML document?
a)
only once
b)
As many as needed
c)
none
17.

.......................is a high-level scripting language that is synchronous with client-side scripting

a)

javaScript

b)

php

c)

oracle

d)

None of these

18.

A ..................... scripting is a light weight programming language

a)

java script

b)

php

c)

oracle

d)

none of these

19.

To access an HTML element, JavaScript can use the ........................ method.

a)

document.getElementById(id)

b)

CONSOLE

c)

COUT

d)

none of these

20.

........................ Is used to show the out put or give message

a)

document.write():

b)

printf

c)

COUT

d)

None of these

21.

Javascript is _________ language.

a)

Programming

b)

Scripting

c)

Application

d)

applet

22.

JavaScript is designed for following purpose -

a)

To Style HTML Pages

b)

To Perform Server Side Scripting Opertion

c)

To add interactivity to HTML Pages.

d)

To Execute Query Related to DB on Server

23.

JavaScript is designed for following purpose -

a)

To Style HTML Pages

b)

To Perform Server Side Scripting Opertion

c)

To add interactivity to HTML Pages.

d)

To Execute Query Related to DB on Server

24.

JavaScript Code is written inside file having extension __________.

a)

.jsc

b)

.jvs

c)

.js

d)

.javascript