wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Fall 2022 CS Review

Total questions: 135

Worksheet time: 1hrs 11mins

Name
Class
Date
1.
Convert 37 to binary
a)

00100101

b)

00100011

c)

00100111

d)

01000101

2.
Convert 00010001 to decimal
a)

17

b)

27

c)

37

d)

47

3.
What are the only two numbers you can use in binary?
a)
0 and 1
b)
1 and 2
c)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
d)
1, 2, 4, 8, 16
4.
What is 12 in binary?
HINT: It has an 8 and a 4 in it!
a)
12
b)
11
c)
1100
d)
1011
5.

What is a binary digit referred to as?

a)

Bit

b)

Bits

c)

Byte

d)

Bytes

6.
How would you write the number two in binary?
a)
1001
b)
0001
c)
0000
d)
0010
7.
Computers can only understand 0s and 1s.
a)
True
b)
False
8.
A group of 8 bits is known as a gigabyte.
a)
True
b)
False
9.
8 bytes = 1 bit
a)
TRUE
b)
FALSE
10.
What is a pixel?
a)

Tiny squares of color on a screen.

b)

A fairy like creature that lives in a forest.

c)

A whole picture.

d)

A binary code.

11.
Which of the following is the correct way to declare a variable?
a)
variable myName
b)
var myName
c)
MY_NAME
d)
VAR myName
12.
Arithmetic Operators - 
What is + ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Division
13.
Arithmetic Operator
What is a - ?
a)
Addition
b)
Subtraction
c)
Multiplication
Multiplication
d)
Modulo
14.
Arithmetic Operator
What is a * ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Modulo
15.
Arithmetic Operators
What is a / ? 
a)
Addition
b)
Subtraction
c)
Division
d)
Modulo
16.
The conditional statement, in Javascript, begins with the word _______.
a)
Then
b)
Else
c)
If
d)
OK
17.
What syntax follows after an if statement?
a)
parenthesis
b)
curly braces
c)
a colon
d)
square brackets
18.
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)
19.
Which command colors the background of your canvas?
a)
background 
b)
endShape
c)
var = color
d)
fill
20.
What command removes the outlines from shapes?
a)
noOutline ();
b)
noColor();
c)
noBorder();
d)
noStroke ();
21.
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);
22.
What command colors a shape?
a)
color (43, 255, 0);
b)
bucket (43, 255, 0);
c)
fill (43, 255, 0);
d)
bucket (43, 255, 0);
23.
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);
24.
What is at the end of a line of code?
a)
#
b)
;
c)
)
d)
>
25.

The "stroke" command means

a)

color inside shape

b)

color outside shape

c)

color of blocks

d)

border

26.

What does the "fill" command do

a)

put letters in the shape

b)

put pictures in the shape

c)

put color in the shape

d)

put code in the shape

27.
Any code that is within the following draw function:
draw = function(){
......
}
a)
Will be performed twice
b)
Will not be performed
c)
Will be performed once
d)
Will be repeated over and over again
28.
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
29.
In a programming language, __________ are used to store data values.
a)
tags
b)
codes
c)
files
d)
variables
30.
JavaScript uses the _______ keyword to define variables.
a)
vrb
b)
var
c)
vari
d)
va
31.

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

a)

Parameter

b)

Function

c)

Variable

32.

Which of these is correct camel case set up?

a)

Camel Case

b)

CAMELCASE

c)

camel Case

d)

camelCase

33.

___ is a placeholder for a piece of information that can change

a)

Value

b)

Label

c)

Variable

d)

Sprite

34.

___ is known as an assignment operator.

a)

=

b)

;

c)

x=5;

d)

x begets 5

35.

Select the example of only creating (declaring) a variable.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

36.

Select the example of only assigning a value to variable.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

37.

Select the example of initializing a variable, which does two things in one command.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

38.

Select the example of using a variable.

a)

ellipse(200,200,size, size);

b)

size=100;

c)

var size=100;

d)

var size;

39.

The vertical position of the center of the sprite.

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

40.

The horizontal position of the center of the sprite.

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

41.

Clockwise spinning or turning in degrees of the sprite

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

42.

Shrink or grow a sprite keeping the height to width ratio the same.

a)

sprite.x

b)

sprite.y

c)

sprite.rotation

d)

sprite.scale

43.

spritelabel.spriteproperty

a)

This structure is called dot notation.

b)

This structure is called camel case.

c)

This structure is called javascript.

d)

This structure is called a tag.

44.

Select ALL that break camel case rules used in javascript.

a)

1camelCase

b)

camelCase

c)

camel-Case

d)

camel Case

e)

CamelCase

45.

_____are attributes that describe an object's characteristics

a)

Properties

b)

Sprites

c)

Parameters

d)

Animations

46.

_____ is a graphic character on the screen with properties that describe its location, movement, and look.

a)

A property

b)

A sprite

c)

A parameter

d)

An animation

47.

_____ sets an image for the sprite instead of the default gray square appearing.

a)

sprite.tint

b)

sprite.rotation

c)

sprite.setAnimation

d)

sprite.w

48.

_____ can be changed to stretch or distort the image instead of staying in aspect ratio proportion.

a)

sprite.tint

b)

sprite.rotation

c)

sprite.setAnimation

d)

sprite.w

49.

How are sprites similar to variables?

a)

both store information to use throughout the program

b)

both have particular properties that can be used in certain ways

c)

both are graphic characters on the screen

50.

How are sprites DIFFERENT from variables?

CHOOSE 2 ANSWERS

a)

both store information to use throughout the program

b)

sprites have particular properties that can be used in certain ways

c)

both can keep track of numbers

d)

variables can be anything

51.

What is the solution to the following code? (the current value of x the console log will display)

a)

50

b)

60

c)

70

d)

Error

52.

This program has some errors in variable names. Select the correct option for line 6:

a)

ellipse(dimension1, yLocation, size of circle, size of circle);

b)

ellipse(dimension, yLocation, sizeofcircle, sizeofcircle);

c)

ellipse(1dimension, YLocation, size of circle, size of circle);

d)

ellipse(dimension, YLocation, sizeofcircle, sizeofcircle) ;

53.

What is the default size of the sprite.scale?

a)

1

b)

10

c)

100

d)

0

54.

Following the commands top to bottom, what are the final outputs of x,y,z?

a)

20,30,10

b)

10,20,30

c)

0,30,20

d)

20,30,0

55.
The collected information about an individual across multiple websites on the Internet.
a)
Digital Footprint
b)
HTML
c)
Cascading Style Sheet
d)
Header
56.
What are those things that we shouldn't post on Social Media?
a)
Phone Number
b)
Address
c)
Email Address
d)
All of the Above
57.
Where can we find the link for the css file?
a)
On the selector of the css file itself
b)
On Social Media Pages
c)
On the header tag in our html file
d)
On the Digital Footprint
58.
A language used to describe how HTML elements should be styled
a)
HTML
b)
JavaScript
c)
DBMS or Database Management System
d)
CSS or Cascading Style Sheets
59.
The part of a CSS rule-set that defines which HTML elements the style should be applied to.
a)
CSS Value
b)
CSS Property
c)
CSS Selector
d)
Cascading Style Sheet
60.
What are the easiest colors we can use in CSS?
a)
most common color names
b)
metallic colors only
c)
new colors like periwinkle
d)
html coded colors
61.
In this code: h1 { color: red; font-size; 24px } What is font-size and color called in CSS?
a)
Value
b)
Selector
c)
Link
d)
Property
62.
Which is true?
a)
We do not need to link the css to the html because code.org does it for us automatically.
b)
The html tags should have a closing and opening tag when we write them in the stylesheet.
c)
The punctuation, such as the curly braces {}, the colon :, and the semicolon ;, help the computer to understand the rules in the style sheet.
d)
The stylesheet is written in javascript.
63.
A document that controls how a web page will appear.
a)
paragraph tag
b)
heading
c)
list tag
d)
style sheet
64.
Which code is correct?
a)
<img src="style.css">
b)
<link rel="stylesheet" href="style.css">
c)
<a href="style.css">style sheet</a>
d)
none is correct
65.
We can define the font style in CSS?
a)
true
b)
false
66.
What can we not find in a css file?
a)
a closing tag
b)
a curly brace
c)
a semicolon
d)
a colon
67.
The correct way of placing our html tags like the paragraph and the list is inside the html body <body> </body>
a)
true
b)
false
68.
The special set of characters that indicates the start and end of an HTML element and that element's type
a)
Cascading Style Sheets
b)
HTML Tag
c)
header
d)
document type
69.
What is not an example of a bug?
a)
putting code in the wrong place
b)
putting an opening tag and a closing tag
c)
using the wrong tag
d)
forgetting to close a tag
70.
What is a good way to maintain a positive digital footprint?
a)
Don't overshare
b)
Use privacy settings
c)
Only post things that you would want everyone to see
d)
All of the above
71.
What is your digital footprint?
a)
The shape of your foot
b)
Taking a selfie of your shoes
c)
A trail of everything you do on the Internet
d)
Having a blog and a Facebook page
72.
Everything that is posted online is saved for how long?
a)
Until I remove it
b)
Forever
c)
Two weeks
d)
One year
73.
What is something you CAN share to a stranger on the computer?
a)
Your first name
b)
Your email address
c)
Your cellphone number
d)
None of the above.  Never give out personal information to someone you do not know.
74.
What information should you NOT share online?
a)
Your first and last name
b)
Your photograph
c)
The name of your school or city
d)
All of the above
75.
True or False?  
It is safe to tell people about your hobbies online (eg it is safe to tell people that you like playing Minecraft)
a)
True
b)
False
76.
True or False?  
If you post something mean about someone, you can just delete it and everything will be OK
a)
True
b)
False
77.
True or False?  
Private information can be copied and sent to anyone.
a)
True
b)
False
78.
True or False?  
Anything you do online leaves a permanent record.
a)
True
b)
False
79.
Many universities are searching Digital Footprints as part of the application process.
a)
True
b)
False
80.
Social media is the ONLY part of our Digital Footprints?
a)
True
b)
False
81.
What can you do if you are tagged in something inappropriate?
a)
Un-tag yourself
b)
Report it
c)
Ask them to take it down
d)
All of the above
82.

When content that reflects you in a negative light is easily visible in search your online reputation is at risk.

a)

True

b)

False

83.
True or False?  
When you become an adult, you get a new digital footprint, and the one you had when you were a teenager is erased.
a)
True
b)
False
84.
True or False?  
Clearing your browsing history removes your digital footprint
a)
True
b)
False
85.
What kinds of information would make a POSITIVE digital footprint? 
a)
A. Photos of you doing work in the community
b)
A and B, but not C
c)
 C. A mean comment that you made on a friend’s website
d)
B. A blog you created to showcase your artwork
86.
Gretchen found an embarrassing picture of Susie in her room on her dresser, They both laugh about it. Is it OK for Gretchen to take a picture with her phone and post on Snapchat?
a)
Yes!
b)
No Way!
87.
Which of the following pieces of information is appropriate to include in your digital footprint?
a)
Your first and last name
b)
Your hobbies and interests
c)
Your school's name
d)
Your address
88.
Why is it important to think before you post information online?
a)
The information you post can be found  and can affect your future college and career goals.
b)
The information you post is permanent.
c)
People that search for you online create an opinion about who you are based on what you post.
d)
All of these answers are correct.
89.

Digital footprints can be which of the following?

a)

good

b)

bad

c)

both

90.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
91.
</p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
92.

Which is the proper way to write an h1 tag

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

93.

What should a HTML web page start with?

a)

<b>

b)

<li>

c)

<html>

d)

<start>

94.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
95.
HTML Language uses
a)
Tabs
b)
Tags
c)
Punctuation
d)
Quotations
96.
<body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
97.
</body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
98.

Does <ul> tag go on the HTML page or the CSS page?

a)

HTML

b)

CSS

99.

Does the following code go on the HTML page or the CSS page?


body {

background: brown;

}

a)

HTML

b)

CSS

100.

sets the element to one side of the page

a)

margin

b)

width

c)

float

d)

height

101.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

102.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

103.

TRUE OR FALSE: CSS is used to style web pages

a)

True

b)

False

104.

TRUE OR FALSE: HTML is used to add content to web pages.

a)

True

b)

False

105.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
106.

What symbols go around the properties for each HTML tag?

a)

< >

b)

[ ]

c)

{ }

d)

( )

107.

Which one is the smallest heading?

a)

h1

b)

h2

c)

h4

d)

h6

108.

What color does the code change to when it detects a bug on your page?

a)

Blue

b)

Pink

c)

Orange

d)

Purple

109.

A __________ is a protection for any published work that helps to prevent that work from being used without prior authorization.

a)

Firewall

b)

HTML

c)

Copyright

d)

CSS Declaration

110.

A team of friends is creating a game together. They want to make sure that everyone can understand the code that the others write. Which of the following will make it easier for them to read each other's code? (Choose TWO)

a)

Use the counter pattern to increase the score

b)

Include descriptive comments in the program

c)

Use watchers to keep track of variable and sprite property values

d)

Give variables and functions names that make sense

e)

Declare variables outside of the draw loop, but update them inside the draw loop

111.

Why do programmers like to use functions? (Choose TWO)

a)

They keep the code organized and easy to understand.

b)

They are a good way to store user input to use later in the program.

c)

They make the program run faster.

d)

They are necessary for any program to run.

e)

They let you use the same code in different places in the program without having to rewrite it.

112.

Consider the following program (blocks and text)...What is the apple's x position at the end of this program?

a)

20

b)

90

c)

110

d)

There will be two apples in two different positions.

e)

None, because the program will have an error.

113.

Which of the following is NOT best to decide before beginning to write code for a program?

a)

The general purpose and design of the program.

b)

What kinds of variables and functions you will need to make it work.

c)

How the user will interact with the program.

d)

How many lines of code you want to write.

e)

What types of media, such as pictures or sounds, you will need

114.

A team is making a platform jumper game. The background and platforms are working, but the main character won't appear. What might be the problem?


  1. They forgot to call `drawSprites` in the draw loop.
  2. The character sprite is drawn behind the background sprite.
  3. The character sprite is drawn off the screen.
a)

3 only

b)

1 and 2

c)

1 and 3

d)

2 and 3

e)

1, 2 and 3

115.

Look at the following code. Which line should the following comment go? "Bubble floats up"

a)

Line 5

b)

Line 11

c)

Line 14

d)

Line 17

e)

Line 19

116.

Look at the following code. Which line should the following comment go? "Give the bubble an outline"

a)

Line 5

b)

Line 11

c)

Line 14

d)

Line 17

e)

Line 19

117.

Sets the color used to fill a variety of shapes like arc(), ellipse(), rect(), regularPolygon(), shape().

a)

fill(color),

b)

fill(color)

c)

fill(color);

d)

fill(color):

118.

Draws an ellipse (circle). Centered at the x=200, y=200 and no bigger than width of 100 pixels and height of 100 pixels.

a)

ellipse(200, 200, 100, 100);

b)

ellipse(100, 100, 200, 200);

c)

ellipse(200, 100, 100, 200);

d)

ellipse(100, 200, 200, 100);

119.

Draws text onto the display positioned at x and y

a)

Text("Hello world.", 10, 10);

b)

text("Hello world.", 10, 10)

c)

text("Hello world.", 10, 10),

d)

text("Hello world.", 10, 10);

120.

Where does the screen start (point of origin) when placing objects on the screen.

a)

0, 400

b)

400, 400

c)

0, 0

d)

400, 0

121.

Which of these green ellipses could NOT be created based on the code block.

a)

Run 1

b)

Run 2

c)

Run 3

d)

None of them could be created by the code given.

122.

A variable...

a)

can not have a label with spaces.

b)

is a placeholder for a piece of information that can change.

c)

can not have label that begins with a number.

d)

can store numbers, strings, arrays or objects.

123.

The label 2...

a)

sets the variable my_bunny to be an image called "bunny"

b)

places the variable in the center of the screen

c)

is the sprite as it appears on the screen

d)

tells the computer to draw the sprite that has been created onto the screen.

124.

How will this draw loop animate the alien?

a)

Move up and down 200 times

b)

Move diagonally forever

c)

Move left to right forever

d)

Nothing

125.

What is the ending state for each variable after step 4?

a)

xPosition = 100, yPosition = 100

b)

xPosition = 130, yPosition = 100

c)

xPosition = 130, yPosition = 150

d)

xPosition = 130, yPosition = 50

126.

Which is the correct counter pattern for this animation?

a)

sprite.x = 1

sprite.y = -1

b)

sprite.rotation = sprite.rotation - 1;

c)

sprite.scale = sprite.scale + 0.1;

d)

width = width + 1;

height = height - 1;

ellipse(200, 200, width, height);

127.

In programming, a Boolean expression is...

a)

an expression that evaluates to True or False.

b)

an expression with hundreds of options.

c)

an expression that evaluates to True, False, or Maybe

128.

This flowchart is an example of...

a)

abstraction

b)

a function

c)

an If/conditional Statement

d)

an algorithm

129.

Which two will create the same animation?

a)
b)
c)
130.

Which of the following animations was created by this code?


???.velocityX = 1;


function draw() {

background("black");

???.velocityX = ???.velocityX + 1;

drawSprites();

}

a)
b)
c)
d)
131.

What color will be displayed by the following code?

rgb(255,0,0)

a)

blue

b)

green

c)

yellow

d)

red

132.

What color will be displayed by the following code?

rgb(0,0,0)

a)

blue

b)

green

c)

black

d)

red

133.

What color will be displayed by the following code?

rgb(0,0,255)

a)

blue

b)

green

c)

black

d)

red

134.

What color will be displayed by the following code?

rgb(255,255,255)

a)

black

b)

blue

c)

red

d)

white

135.

What color will be displayed by the following code?

rgb(0,255,0)

a)

blue

b)

green

c)

black

d)

red