wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Javascript Again 1114

Total questions: 14

Worksheet time: 10mins

Name
Class
Date
1.
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
2.
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
3.
What command draws a rectangle?
a)
rec (10, 20, 100, 200);
b)
rect (10, 20, 100, 200)
c)
rect (10, 20, 100, 200);
d)
ellipse (10, 20, 40, 40)
4.
What command draws a perfect circle?
a)
ellipse (80, 60, 100, 105);
b)
ellipse(80, 60, 100, 100);
c)
circle (80, 60, 80, 60):
d)
ellipse (80, 60, 105, 100);
5.
What command draws a line?
a)
stroke (200, 220, 275, 220);
b)
line (200, 220, 275, 220);
c)
horizontal (200, 220,  60, 75);
d)
pencil (200, 220, 275, 220);
6.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
7.
A variable is used to:
a)
Store a value in memory
b)
Draw a circle
c)
Store a value that does not change
d)
Draw a rectangle
8.
In a programming language, __________ are used to store data values.
a)
tags
b)
codes
c)
files
d)
variables
9.
JavaScript uses the _______ keyword to define variables.
a)
vrb
b)
var
c)
vari
d)
va
10.

This saves a value, which can be then assigned when writing code

a)

Parameter

b)

Function

c)

Variable

11.

What is Javascript?

a)

programming language

b)

HTML tags

c)

CSS

d)

A web page

12.
Indicates the beginning  and the end of a JavaScript section.
a)
<html> </html>
b)
<style> </style>
c)
<article> </article>
d)
<script> </script>
13.
In JavaScript, you should include a semi-colon at the end of each statement.
a)
yes
b)
no
14.

Bonus Question: What is the web programming Trifecta?

a)

HTML, CSS, Javascript

b)

Java, C+, HTML

c)

Java, HTML, CSS

d)

Kobe, Labron, Jordan