wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

JavaScript

Total questions: 25

Worksheet time: 12mins

Name
Class
Date
1.
A string;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
2.
What surrounds a string?
a)
Quotations
b)
Curly Brackets
c)
Parenthesis
d)
Square Brackets
3.
To display writing on the screen you must include this direction;
a)
Document Write
b)
documentWrite
c)
document.write( )
d)
document.write
4.
A variable;
a)
Expresses a true false statement
b)
stores a string, number, or boolean, and gives it a specific, case-sensitive name
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
5.
A boolean;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
6.
A function;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
7.
An if/else statement;
a)
Expresses a true false statement
b)
can contain letters, numbers, spaces, and symbols.
c)
takes in an input, does something with it, and then returns an output.
d)
Runs a boolean (true/false) statement based on data entered
8.
What surrounds an if/else statement?
a)
Quotations
b)
Curly Brackets
c)
Parenthesis
d)
Square Brackets
9.
An array is;
a)
Shapes
b)
Sizes
c)
Options
d)
Lists of data
10.
What surrounds an array?
a)
Quotations
b)
Curly Brackets
c)
Parenthesis
d)
Square Brackets
11.

With jQuery, you can hide and show HTML elements with the hide() and show() methods?

a)

True

b)

False

12.

Which of the following ways is correct JQuery Hide() Syntax ?

a)

$.Hide()

b)

$("#hide").click(function(){

$("p").hide(); });

c)

None of the above

13.

The optional callback parameter is a function to be executed after the hide() or show() ____________.?

a)

Normal

b)

method completes

c)

None of the above

14.

You can also toggle between hiding and showing an element with the ______?

a)

Animation

b)

Picture

c)

toggle() method

15.

Which of the following is the correct syntax of toggle() effects in JQuery?

a)

$("button").click(function(){

$("p").toggle(); });

b)

.("p").toggle();

c)

None of the above

16.

These type of operators are found within equations to perform different types of calculations.

a)

Logic Operators

b)

Arithmetic Operators

c)

Comparison Operators

d)

Boolean Operators

17.

This data type consist of a string of characters the create words, phases, sentences, etc.

a)

String

b)

int

c)

char

d)

float

18.

This programming concept allows programmers to create storage for data?

a)

Control Strucutures

b)

Variables

c)

Selection Structures

d)

Logic Operators

19.

This operator assigns values. It also looks like an equal sign.

a)

The boolean operator

b)

The selection structure

c)

The assignment operator

d)

The logic operator

20.

If I were found guilty of creating variables and giving them names, what would I be guilty of?

a)

Being crazy

b)

Initializing variables

c)

Declaring variables

d)

Hacking the system

21.

This operator compares values, and will only return true if the two values are equal to each other.

a)

&& (and)

b)

|| (or)

c)

!= (not equal)

d)

= = (equal to)

22.

What is this operator: " %"?

a)
Concatenation
b)
Remainder or mod
c)
Division - only the whole number
d)
Escape character
23.

Using the Boolean Operator "||" (OR) in a search will broaden your results and produce more hits.

a)

True

b)

False

24.

Using the Boolean Operator "&&" (AND) will broaden your results and produce more hits.

a)

True

b)

False

25.
Variables cannot be changed.
a)
False
b)
True