wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSP Final Exam

Total questions: 50

Worksheet time: 28mins

Name
Class
Date
1.

Putting commands in correct order so computers can read the commands is called ordering.

a)

True

b)

False

2.

The process of designing, writing, testing, debugging, and maintaining the source code of computer programs is called (a)   .

3.

A web design approach that separates content from the way in which it is formatted and presented is considered a:

a)

Style sheet

b)

HTML document

c)

Notepad

d)

Notepad++

4.

What is the correct HTML for creating a hyperlink?

a)

<a name="http://www.w3school.com">w3school.com</a>

b)

<a href="http://www.w3schools.com">w3schools.com</a>

c)

<a url="http://www.w3school.com">, <a>"http://www.w3schools.com"</a><a></a>

5.

The main declaration that lets us know what doctype is being used before we create a web page is ...

a)

<Doctype! html>

b)

<Declare! html>

c)

<!Doctype html>

d)

<!Declare html>

6.

You can use this CSS attribute to add style to a group of HTML tags.

a)

Class

b)

Tags

c)

ID

d)

Style

7.

This would center words across the page in my web page.

a)

center

b)

alignment

c)

text-align: center

d)

align

8.
The computational concept of running the same sequence multiple times.
a)
Parallelism
b)
Events
c)
Broadcast
d)
Loops
9.

Which symbol means "not equal to"?

a)

==

b)

<=

c)

>=

d)

!=

10.

What is a loop?

a)

Starting the program

b)

Ending the program

c)

Allows something to be repeated

11.
A placeholder for a piece of information that can change.
a)
Variable
b)
Condition
c)
Program
d)
Loop
12.

A completed program in scratch is called

a)

Scratch

b)

Volume

c)

Project

d)

Document

13.

What is a BUG in a program?

a)

a small insect

b)

an error in the code

14.

A loop that continues to repeat while a condition is true.

a)

for loop

b)

while loop

c)

until

d)

function

15.

Another term for an "if-else" statment is

a)

loops

b)

function

c)

conditional

d)

algorithm

16.
4. An instruction you can give to Karel.
a)
Command
b)
If Else Statement
c)
Indentation
d)
World
17.
True of False: Variable names should not begin with a number
a)
True
b)
False
18.

If x = 4 then what would be the value of x after this: x++ =?

a)

16

b)

8

c)

5

d)

3

19.
A user does this to tell the computer start the commands you have written into the program.
a)
event
b)
run program
c)
function
d)
abstraction
20.

What is the key word used for when code is repeated or looped?

a)

Iteration

b)

Isolation

c)

ISO File

d)

Instantaneous

21.

What is a condition?

a)

JavaScript

b)

holds true before allowing your method to proceed.

c)

syntax

d)

pseudocode

22.

What can influence a program's output?

a)

The color of the computer

b)

The program's input

c)

The weather

d)

The size of the computer screen

23.
A written note in the program that explains something about that portion of the program.
a)
Robot
b)
Taskbot
c)
Code 
d)
Comment
24.

A set of instructions that a computer executes to achieve a particular objective.

a)

Physical computing

b)

Computer science

c)

Program

d)

Bluetooth Technology

25.

What can be used to teach Karel a new command?

a)

Functions

b)

Variables

c)

Dog treats

d)

Conditions

26.
A set of instructions that tells a computer what to do to accomplish a particular task is called:
a)
Programming language
b)
Software
c)
An application
d)
A computer program
27.

What is printed to the console?


console.log(15 % 4);

a)

2

b)

3

c)

4

d)

1

28.

What does HTML stand for?

a)

Hyper Tremendous Movie Lines

b)

Hyper Text Markup Language

c)

Hey Thanks for Making me Late

29.

Web pages starts with which of the following tag?

a)

<form>

b)

<HTML>

c)

<body>

d)

<Title>

30.

Which set contains all of the DEFAULT tags needed to create a webpage?

a)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

</html>

b)

<html>

<head>

</head>

<body>

</body>

</html>

c)

<!DOCTYPE html>

<html>

<head>

</head>

</html>

d)

<!DOCTYPE html>

<html>

<head>

</head>

<body>

</body>

31.
A properly coded HTML tag will always be found between which two symbols?
a)
( )
b)
{ }
c)
[ ]
d)
< >
32.
A Header;
a)
Must include your name
b)
First Line of your code
c)
Found at bottom of your code
d)
Not needed in HTML
33.
Jerry wants to insert a line break into his webpage. Which code should he use?
a)
<ul>
b)
<li>
c)
<br>
d)
<h1>
34.
Annie wants the name of her product to be the main heading at the top of her webpage. Which tag defines
the main heading in a web document?
a)
<h3>Product</h3>
b)
<h5>Product</h5>
c)
<h1>Product</h1>
d)
<h6>Product</h6>
35.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
36.

What is the correct HTML for adding a background color?

a)

<body style="background-color:yellow;">

b)

<background>yellow</background>

c)

<body bg="yellow">

37.

What tag do you use to make a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

38.
What is the proper function to call to print to the screen?
a)
write
b)
console.log
c)
print
d)
log
e)
console.print
39.

How do you create a function in JavaScript?

a)


function myFunction()

b)

function = myFunction()

c)

new function = myFunction()

d)

create function myFunction()

40.

Which of the following is the correct way to declare a variable in JavaScript?

a)

`var name = "John";`

b)

`variable name = "John";`

c)

`String name = "John";`

d)

`name := "John";`

41.

Which of these can be used to read input from the user?

a)

readInt();

b)

System.in.read();

c)

println();

d)

input();

42.

Which of the following is the correct way to output data in JavaScript?

a)

`print("Hello World");`

b)

`console.log("Hello World");`

c)

`System.out.println("Hello World");`

d)

`echo "Hello World";`

43.

Used to end a statement

a)

!

b)

"

c)

;

d)

\

44.

Which of these would move the sprite down on the stage?

a)

Change x by 10

b)

Change x by -10

c)

Change y by 10

d)

Change y by -10

45.
The conditional statement, in Javascript, begins with the word _______.
a)
Then
b)
Else
c)
If
d)
OK
46.
Comparison Operator
What is <= ?
a)
Greater than
b)
Less than
c)
Greater than or equal to
d)
Less than or equal to 
47.

What's the data type for the ageInput variable?

Quel est le type de données de la variable ageInput?

a)

String

b)

Number

48.
What keyword do you need to use to define a variable in JavaScript?
a)
variable
b)
let
c)
int
d)
x
e)

var

49.

These tags ... <title> </title> ... create a (a)   for a web page.

50.

Which HTML tag is used to define an internal style sheet?

a)

<style>

b)

<script>

c)

<css>

d)

<link>