wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 4 - Review

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

Fill in the blank: __________ is the process of writing clear, step-by-step instructions that tell a computer how to solve a problem or complete a task.

a)
Debugging
b)
Compiling
c)
Programming
d)

Deleting

2.

All programming languages — no matter how simple or advanced — are ultimately translated into _____ 1s and 0s

a)

binary

b)
high-level language
c)

hexidecimal

d)

gamma code

3.

A _________ is a classification that specifies what kind of value a piece of data can hold and what operations can be performed on it.

a)

packet

b)
data type
c)

syntax

d)

database

4.

The value presented here is an example of what data type in programming?
9.91

a)

Float

b)

String

c)

Boolean

d)

Logic Error

5.

Which of the following is an example of an Integer?

a)

1A130BSB

b)

8

c)

34.97

d)

ABC

6.

A boolean data type is represented by what?

a)

Math

b)

1 and 0

c)

True / False

d)

4 + 11 = 15

7.

Which of the following is a variable naming convention displayed as camel case?

a)

some_var

b)

myAge

c)

MYVARIABLE

d)

449-0198

8.

Which of the following is an example of the snake case variable naming convention?

a)

myDogName

b)

grand_total

c)

IsTheChoice

d)

my$name

9.

What is a named container that stores a value in programming?

a)
variable
b)

byte

c)
function
d)
array
10.

What are notes written by programmers within the code to document and explain parts of the program?

a)
Comments
b)
Headers
c)
Tags
d)
Annotations
11.

Fill in the blank: ________ are unchanging values that can be used throughout your program

a)

Words

b)
Functions
c)
Parameters
d)
Constants
12.

Fill in the blank. We ________ a variable when we give it a starting value.

a)

remark

b)

compile

c)

eleviate

d)
initialize
13.

Fill in the blank. A __________ is a reusable block of code that can take parameters.

a)
class
b)
variable
c)
function
d)

beveller

14.

Which variable is declared outside any function or block and is accessible anywhere in the code?

a)

Global Scope Variable

b)
Instance variable
c)

Marginal Variable

d)

Local Scope variable

15.
  • Which variables are declared inside a function or block and are only accessible within that function/block.

a)
Global variables
b)
Local variables
c)

Cyclic variables

d)

Dynamic Variables

16.

A ____________ is a programming element that executes specific blocks of code only if a given logical condition is met.

a)
conditional statement
b)

function

c)

variable

d)

dynasty statement

17.
  • A ______ is a programming structure that repeats a block of code.

It runs the same instructions multiple times until a condition is met.

a)
loop
b)
variable
c)
condition
d)
function
18.

Which loop will run at least one time regardless of the condition?

a)
for loop
b)

while

c)

carver loop

d)
do-while loop
19.

A _________ is a smaller block of code inside a larger program.

a)

boolean

b)

subprogram

c)

space

d)

rootkit

20.

What does DRY stand for in computer programming?

a)
Don't Repeat Yourself
b)

Delay, Re-Write, Yell

c)

Develop, Report, Yield

d)

Database, Repository, Yada

21.

A ________ is a function that belongs to an object.

a)
attribute
b)
property
c)
class
d)
method
22.

An _______ is a collection of related data (variables) and functions (methods) stored together.

a)
object
b)
array
c)

undecillion

d)
variable
23.

An _______ is a clear, step-by-step set of instructions to solve a specific problem.

a)
procedure
b)
formula
c)
method
d)
algorithm
24.

A ________ is a visual diagram that shows the flow of the program using shapes and arrows.

a)
algorithm
b)
data structure
c)

flow chart

d)
pseudocode
25.

Which shape represents the end of a program in a flowchart?

a)
Oval shape
b)
Parallelogram shape
c)
Diamond shape
d)
Rectangle shape
26.

Which of the following represents a decision (yes/no) on a flowchart?

a)
Rectangle shape
b)
Square shape
c)
Diamond shape
d)
Circle shape
27.

Fill in the blank. __________ is a way to describe what a program does using plain English mixed with code-like structure.

a)

Syntax

b)

Markup language

c)

Pseudocode

d)

Nonorithm

28.

FIll in the blank. _________ is the process of checking if your program works correctly, efficiently, and meets the goals of the problem.

a)

Marking

b)

Commenting

c)

Recovering

d)

Evaluation

29.

__________ is the process of identifying what went wrong, why it happened, and correcting it so the program runs properly.

a)

Pythoning

b)
Executing
c)
Debugging
d)
Compiling
30.

Which of the following are tyes of programming errors?

a)

Portion Error

Masking Error
PVR Error

b)

Bunson Error
Check Diode Error
MWT Error

c)

Syntax Error
Runtime Error
Logic Error

d)

Logic
Lorax
Mylon Error

31.

What are the two most common types of algorithms?

a)

Graph
Dynamic Programming

b)

Machine Learning
Data Mining

c)

Sorting
Searching

d)

Cryptographic Compression

32.

Which is considered an advantage of an algorithm?

a)

They make programs run slower

b)

They always eliminate the need for testing

c)

They help us solve problems efficiently

d)

They guarantee that programs will never have errors

33.

What does IDE stand for in programming?

a)

Interscope Dynamic Election

b)
Integrated Development Environment
c)

Intact Design Evaluation

d)

Intermediate Deletion Election

34.

Fill in the blank. ________ is a built-in tool that helps locate and fix problems in code.

a)
Debugger
b)
Syntax Checker
c)
Interpreter
d)
Compiler
35.

Which of the following involves keeping a written or digital record of your debugging and problem-solving process.


a)

Error detection

b)
Code Review
c)
Version Control
d)

Journaling