NEW
Font size
WorksheetsCode.org Fall Semester Test
Total questions: 65
Worksheet time: 2hrs 38mins
A device or component that allows information to be given to a computer
algorithm
output
input
storage
Any device or component that receives information from a computer
output
input
algorithm
processing
Keyboard, buttons on the keyboard, mouse, camera, and microphone
algorithm
examples of inputs
processing
examples of outputs
Screen, speakers, and printer
examples of outputs
examples of inputs
storage
processing
The study of the principles and use of computers
processing
algorithm
computer science
input
A machine that works with information.
Computer
Car
Printer
TV
The thinking work computers do to turn input into output.
Input
Output
Processing
Storage
saving information to use in the future
Output
Input
Processing
Storage
If something is true, do something else.
If/Then
Counting
Comparing
Matching
Check whether things are the same, or one is bigger than the other.
Matching
If/Then
Counting
Comparing
Search a list or group of things for a match.
Counting
Comparing
Matching
If/Then
Keep track of how many of something there are.
If/Then
Counting
Matching
Comparing
A computer is a machine that works with information
True
False
Input is the information computers give to users, devices, or other computers
True
False
Output is the information computers get from users, devices, or computers
True
False
In centuries past, machines were invented to help with ___________ work. Computers were designed to help with __________ work.
physical / thinking
output / input
routine / nonroutine
boring / interesting
A traditional desktop computer's display (such as the one on your teacher's desk) can be an example of _______________.
an input
an output
either an input or an output
neither an input nor an output
The earliest computers were designed to ______________.
manipulate numbers
play games
process text
control robots
A computer's memory is used to _____________ information.
input
output
store
process
When information is manipulated or changed by the computer, it is being ______________.
input
output
processed
stored
Which of the following is not a common type of processing that is used in computing?
if/then
matching
counting
transposing
What type of list will these tags create: <ul></ul>
Bulleted List
Numbered List
List Item
Underline
Which tags will create a numbered list?
<ul> </ul>
<ol> </ol>
<li> </li>
<nl> </nl>
What do these tags do: <p></p>
Create paragraph sections
Inserts periods
Contains all HTML elements except <!DOCTYPE>
Contains all the content of the HTML document.
Finding and fixing problems in an computer program is called:
Bugging
Commenting
Which heading tag creates the largest size text?
<h6> </h6>
<h1> </h1>
<h10> </h10>
<h0> </h0>
Which of the following will correctly display the words above?
<h3> Eggs </h3>
<h1> Bacon </h1>
<h6> Waffles </h6>
B<h1> Eggs </h1>
<h2> Bacon </h2>
<h3> Waffles </h3>
<h6> Eggs </h6>
<h1> Bacon </h1>
<h3> Waffles </h3>
<h3> Eggs </h3>
<h1> Bacon </h1>
<h7> Waffles </h7>
What needs to be fixed?
<h1>Cat Supplies</h1>
Cat Toys
Keep your cat entertained!
<li>Lasers, Catnip Toys</li>
<li>Kitty Chew Toys</li>
Missing a heading tag.
Missing ordered list tag.
Missing list item tag.
All answer choices are correct.
Which dog image tag is correct?
<img src=”” alt=”My dog”>
<img scr=”dog.jpg”>
<img scr=”dog.jpg” alt=”My dog”>
<img src=”dog.jpg” alt=”My dog”>
Which code tells the computer that this is a document written in HTML
<!DOCTYPE html>
<html>
<head>
<p>
Which of the following sets the color of text in a paragraph?
h1 {
color: pink;
}
img {
color: pink;
}
body {
color: pink;
}
p {
color: pink;
}
Which selector will change the font of the text?
font-size
text-type
font-famiy
text-family
Which rule set would change the font size to 24?
text-size: 24
size: 24;
font-size: 24;
font size: 24;
This is a picture of a ____.
CSS Rule
HTML Rule
TRUE OR FALSE: All tags require a closing tag.
True
False
How are shapes plotted on the screen?
with alphabet letters
with X and Y coordinates
using a touch screen
with width and height values
What is the origin of a square or rectangle?
The bottom right corner
The bottom left corner
The top right corner
The top left corner
What is the origin of a circle or ellipse?
The bottom left corner
The center
The bottom right corner
The top
In this line of code:
rect(250, 100);
which number is the y value?
rect
250
100
In this line of code: rect(250, 250, 100, 50); what do 100 and 50 represent?
The x and y values
The w and h values
Given rect(x, y, w, h); what are w and h?
width and heavy
width and tallness
width and length
width and height
The line of code: background("red"); will change what red?
Any shapes on the screen
The background
The foreground
Nothing
What line of code will change the color of any shapes coded below it?
color
rect
weight
fill
What does the randomNumber line of code do?
picks the same number every time
picks any number from zero to infinity
picks any number from the minimum and maximum that you set
it doesn't do anything
Can you use the randomNumber line of code to replace a single value, such as a y value?
Yes!
No!
This line of code does what?
var hello = 100
creates a variable
names or labels the variable "hello"
sets the value of the variable hello to 100
All three are correct
Which command matches this block of code?
Creates a new sprite and assigns it to the variable specified.
Declares and assigns an initial value to a variable
Draws an ellipse onto the display centered at x and y and inscribed in a rectangle with sides length w(idth) and h(eight).
Which command matches this block of code?
Declares and assigns an initial value to a variable.
The number of times per second the screen is refreshed.
Returns a random number in the closed range from min to max.
Which command matches this block of code?
Draws an ellipse keeping the height to width ratio the same.
Shrink or grow a sprite keeping the height to width ratio the same.
Draws a rectangle keeping the height to width ratio the same.
Which command matches this block of code?
Displays a group of sprites. If no parameter is specified, draws all sprites in the sketch.
Shrink or grow a sprite keeping the height to width ratio the same.
The lines of code contained inside its block are continuously executed until the program is stopped.
Finding and fixing problems in an algorithm or program.
Bug
Variable
Property
Debugging
A graphic character on the screen with properties that describe its location,
Sprite
Property
Animation
Variable
A series of images that create the illusion of motion by being shown rapidly one after the other
Frame
Animation
Bug
What is x value in the following code?
rect(250, 200, 75, 225);
250
200
75
225
In which direction will the sprite move?
bee.y = bee.y + 2
left
right
up
down
Which sprite property would you change to move the sprite from left to right?
sprite.x
sprite.y
sprite.scale
sprite.rotation
Which sprite property would you change to make the sprite turn in a circle?
sprite.x
sprite.y
sprite.scale
sprite.rotation
