wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Coding Fundamentals Midterm Review

Total questions: 50

Worksheet time: 1hrs 12mins

Name
Class
Date
1.

Mark has created a group of blocks that make a penguin dance. He wants the penguin to keep dancing in the background the entire time his program is running. Which of the following structures should Mark use to accomplish this?

a)

if statement

b)

for loop

c)

while loop

d)

forever loop

2.

Ricky suspects that he has a logic error in his program. What should he do to find the error?

a)

keep running his program over and over

b)

pinpoint the general location of the error and brainstorm ways to fix it

c)

ask a friend to find his error

d)

wait for the editor to show him where his error is

3.

Why is it important to recognize the proper boundaries or limits of algorithms?

a)

because otherwise the algorithm might contain logic errors or might not work properly

b)

because otherwise the algorithm might not be competitive enough in today's economy

c)

because algorithms are so complex that they need built-in boundaries to keep them understandable

d)

because algorithms are so powerful that they need built-in boundaries to keep them from taking over the world

4.

A user input occurs when the user interacts with the program by typing.

a)

True

b)

False

5.

Erin's classmate said that the program that they were working on is not running properly because they accidentally put in commas where semi-colons should be. What kinds of errors does Erin need to fix?

a)

logic errors

b)

database errors

c)

debugging errors

d)

syntax errors

6.

When should else be used in programming?

a)

if something should be repeated several times

b)

in a non-conditional statement

c)

to describe what should happen when the condition of an if statement isn't met

d)

to begin an infinite loop

7.

Shawn thought that the screen of the block-based program he was using was arranged in a logical way that was easy to use and understand. Shawn said, "The _____ is really nice on this program."

a)

editor

b)

code

c)

interface

d)

database

8.

Adrienne is creating a program that shows the user how to do yoga. There will be 10 poses shown in order when the user presses the start button. What kind of program is this?

a)

selection

b)

conditional

c)

iteration

d)

sequence

9.

Brandon realized that his program wasn't running properly because he used a colon instead of a semi-colon. What kind of error did Brandon make?

a)

syntax error

b)

logic error

c)

Boolean error

d)

iteration error

10.

Nathan has a 30-second clip of music that he wants to play over and over again when he runs a program. What does Nathan need to make this happen?

a)

a for loop

b)

a while loop

c)

an infinite loop

d)

a Boolean loop

11.

Rupert wants to write a program where an archer will shoot an arrow six times. Which of the following coding terms should be used?

a)

Boolean

b)

while

c)

for

d)

forever

12.

Vincente wants to write a program that lets the player move a unicorn around the screen. But Vincente wants a warning to appear on the screen if the unicorn is moved too close to the forest. Which of the following should Vincente add to the program to make this happen?

a)

a conditional statement

b)

an editor

c)

a database

d)

iteration

13.

Dr. Bloom is writing a test for a history class and wants to ask a question that will have a Boolean value for the answer. Which of these should Dr. Bloom use?

a)

essay questions

b)

short-answer questions

c)

multiple choice questions

d)

true-false questions

14.

Grace is creating a game about a cook in a kitchen. Grace wants the cook to flip a burger in the air. If it lands in the pan, the cook should earn points. If it falls on the floor, the cook should lose points. Which of these statements should Grace use?

a)

When the burger falls, lose points.

b)

If it lands in the pan, gain 100 points; else, lose 100 points.

c)

Give the cook 100 points for a good landing and take away 100 for a bad landing.

d)

Add points or take them away if the landing is good or bad.

15.

Which of these is an example of a conditional statement?

a)

I eat lunch at noon.

b)

If I am hungry, I will eat lunch.

c)

I eat a sandwich and an apple.

d)

After I got hungry, I ate lunch.

16.

Tynker has a particular layout, with the blocks on the left, editor in the middle, and output on the right. Which word best describes this screen layout?

a)

block-based

b)

interface

c)

editor

d)

player

17.

Which sentence best describes how block-based code works?

a)

Lines of code make physical blocks move.

b)

Each block creates printer output.

c)

Lines of code are used to print blocks.

d)

Each block connects to one (or more) instructions written in code.

18.

Every record in a database has a unique way to identify it called a table.

a)

True

b)

False

19.

You can always trust information that comes from websites ending in .com.

a)

True

b)

False

20.

Amaya is curious how her computer actually boots up. Which of the following should Amaya research to find out more?

a)

RAM

b)

hard drive

c)

CPU

d)

ROM

21.

Prashanthi creates advertisements for companies to air on television. Which format should be used to send an ad to clients?

a)

PDF

b)

MP4

c)

MP3

d)

DOCX

22.

Which of the following is a disadvantage of storing data in the cloud?

a)

You can access it from any device.

b)

You cannot access it from any device.

c)

You need an internet connection to access it.

d)

You don't need to use your own computer's memory.

23.

Ahmad created a poster for his favorite band. In which format should it be saved so that the graphics will be preserved?

a)

MP3

b)

MP4

c)

PDF

d)

EXT

24.

Tova manages a database for an art gallery. If a customer wants a list of all of the pieces of art created by artists from the Caribbean, what should Tova do?

a)

sort the data

b)

create a new table

c)

filter the data

d)

edit the data

25.

Iman manages a database for a website that reviews movies. If a new movie is going to be added to the database, what else will need to be added?

a)

a file

b)

a record

c)

a table

d)

a PDF

26.

Rupali is creating a database of all of the clients who request custom artwork. Each client will be considered one item in the database. What will Rupali need to create for each client?

a)

column

b)

table

c)

record

d)

file

27.

Jax earned 144 points on a research project. In this situation, what is the number 144?

a)

data

b)

information

c)

knowledge

d)

output

28.

Dax is an architect who wants to be able to let clients walk through a digital version of a house before the house is actually built. The digital version should allow the clients to see and feel the various textures of the house. Which of the following should be used to create that experience?

a)

augmented reality

b)

application software

c)

virtual reality

d)

mp4

29.

T.J. wants to send a friend a file with a funny dancing cat. Which file format will he be sending?

a)

PDF

b)

DOCX

c)

GIF

d)

MP3

30.

Ashley works for a company that helps hospitals hire new doctors. They have written a list of strategies that can be used to interview doctors. Ashley wants to give a digital copy of this list to her supervisor to review. Which of the following should be given to the supervisor?

a)

application software

b)

systems software

c)

a file

d)

hardware

31.

Corinne is taking a chemistry class in college. A lab assignment asks students to track the melting point of 10 different substances. For each one, they have to test it five different times. Which of the following kinds of software would be most useful for recording that data?

a)

a spreadsheet

b)

word processing software

c)

presentation software

d)

a messaging app

32.

Casey overhears two people talking about an amazing new app. What phrase has been abbreviated when they talk about an "app"?

a)

applied computer simulation

b)

application software

c)

appropriate usage format

d)

applied technology

33.

Which of the following is an example of application software?

a)

an anti-virus program

b)

the operating system

c)

the keyboard

d)

a messaging app

34.

Schuyler is making a list of the parts of a computer that are software. Which of the following will be on the list?

a)

the speakers

b)

a thumb drive

c)

the keyboard

d)

web browser

35.

If your teacher gives you five steps to follow when reducing a fraction, that is an algorithm.

a)

True

b)

False

36.

Marsha received an email saying that she won a free cruise to Alaska. What Marsha didn't realize is that the email was fake and contained a virus that infected her computer. She sent the email to several of her friends, and now their computers have viruses too. Has Marsha committed a computer crime?

a)

Yes, because she was the cause of other people's computers becoming infected

b)

Yes, because she illegally forwarded a private email

c)

No, but she has acted unethically

d)

No, because she did not knowingly spread or create the virus

37.

Oliver is being bullied online, but he is afraid that nothing will happen to the bully if he reports them. Which of the following will most likely happen to the bully if Oliver reports it to his school administrators?

a)

the bully will be arrested and get life in prison

b)

the bully will spend the rest of their life on the federal cyberbully list

c)

the bully will be subject to various school rules and could even be punished by state cyberbullying laws

d)

the bully will automatically be expelled from the school, no questions asked

38.

Which of the following scenarios falls into the category of computer manipulation crimes?

a)

cyberbullying

b)

stealing an office computer

c)

reading someone's private emails

d)

using a computer to steal someone's identity

39.

What is one of the advantages of using an algorithm to solve a puzzle like Kriss-Kross or Sudoku?

a)

It gives you an overall strategy.

b)

It makes the numbers easier to add.

c)

It reduces the size of the problem.

d)

It adds an element of surprise.

40.

The code repeat 3 [forward 50 right 120] creates which shape?

a)

a square

b)

a circle

c)

a pentagon

d)

a triangle

41.

Why is a repeat command helpful when programming a turtle?

a)

it gives input

b)

it engages memory

c)

it saves time when writing code

d)

it rotates objects

42.

How are units of distance measured on a computer screen?

a)

in centimeters

b)

in inches

c)

in pixels

d)

in bytes

43.

Shelly is designing a computer to play video games. It has a hard drive, a controller, a screen, and a processor. What is it lacking?

a)

a video game program

b)

input

c)

output

d)

memory

44.

What does it mean when a computer is processing?

a)

a computer is doing a task

b)

a user is thinking

c)

the computer is recharging

d)

software is engaging

45.

Which of the following is an output of an alarm clock?

a)

the button used to set an alarm

b)

the button used to change the time

c)

the time display

d)

the power cord

46.

Molly says she is learning how to code. Which of the following is the best description of what Molly is doing?

a)

learning how to be a hacker

b)

learning a mathematical language

c)

learning a language that computers use

d)

learning how to set up a computer

47.

Emma plans on building a dog house using an algorithm. What will be the final step of the process?

a)

creating a blueprint

b)

building the roof

c)

thinking about what went wrong

d)

applying her algorithm to building a deck

48.

Shondra is almost finished writing her algorithm. She is trying to change her algorithm so that it works for a more complex problem. Which of the following steps in the algorithm process is Shondra most likely working on?

a)

making a plan

b)

carrying out the plan

c)

extending the problem

d)

understanding the problem

49.

Which of the following texts from your family member would contain an algorithm?

a)

a list of steps for how to turn on the wi-fi

b)

an apology for being late to pick you up

c)

a request for you to make dinner

d)

a description of the cute dog they saw

50.

Why are computers better than humans at solving a problem like finding the shortest route between ten different cities?

a)

Computers use code instead of plain English.

b)

Computers are not distracted by social media.

c)

Computers can test thousands of possible routes in seconds.

d)

Computers have access to more precise maps.