NEW
Font size
WorksheetsCompTIA Tech+ Review - 10.14.2025
Total questions: 24
Worksheet time: 1hrs 12mins
Grace is learning to code and her teacher tells her that she must follow certain rules when writing her programs, just like how sentences in English need correct grammar. What does “syntax” mean in programming?
The meaning of code
The rules that define how code must be written
The process of debugging
The software used to write code
William is running a school fair game where players earn points for every correct answer. He needs a way to keep track of each player's score as they play. What should William use to store this changing score?
A fixed number
A command
A named storage location for data
A loop
Oliver wants to keep track of his favorite fruits together in one place. Which of the following would allow him to store multiple items in a single variable?
List
Integer
Boolean
String
Grace wants to assemble a piece of furniture, but she needs instructions to follow. In a computer, what is the role of code?
Makes the computer sleep
Deletes files
Tells the computer what to do
Cleans memory
Kai is interested in developing a new tool to help organize his schoolwork. What can he use Python for?
Only video games
Writing and running programs
Playing music
Sending emailspyhpython
Michael is helping his friend Grace learn Python. He asks Grace to type the following code on her computer: print("Hi!"). What will appear on Grace's screen when she runs this code?
Nothing
The word print
Error
Hi!
David is designing a smart home system that checks if the front door is locked or unlocked. Which value type should he use to represent True or False?
Boolean
String
Integer
Float
Ava is working on a new software application for a local bakery. One day, she notices that the program is not behaving as expected when processing customer orders due to a mistake in the code. What is another name for this kind of program error?
Bug
Feature
Loop
Input
Ava is opening a bakery and wants to keep track of her customers' contact details, their orders, and the ingredients she has in stock. What tool should she use?
Editing photos
Sending emails
Storing and organizing data
Playing musicdad
Luna is fascinated by technology and wants to use her coding skills in real life. She wonders what kinds of things she could accomplish if she learns to code. Which of the following can Luna achieve by learning to code?
Program robots
create websites, games & apps
tell computers what to do
all of the above
Sophia is managing a customer database for a local bookstore. Each row in the table contains details about one customer, such as their name, contact information, and purchase history. What term is used to refer to a row in this table?
Record
Primary key
Foreign key
Field
Evelyn is helping to organize a library database. For each book, she enters details such as the title, author, and publication year into the system. What is each single row of information about a book called in this database?
record
cell
Jackson wants to automate some tasks on his computer and is looking for a tool that will allow him to write instructions for the computer to follow. He is considering the following options. Which one is a programming language?
Photoshop
Python
PowerPoint
Excel
Grace is creating a program to keep track of the number of books she has read. What is the main purpose of a variable in her program?
To play music
To print documents
To display images
To store data
Kai is organizing a garage sale and wants to keep track of the total number of items being sold. Which data type should Kai use to store the total number of items?
Boolean
String
List
Integer
Jackson wants to bake a cake and follows a recipe that lists each step he needs to take. What does this recipe represent in terms of problem-solving?
A hardware part
A step-by-step set of instructions to solve a problem
A software license
A variable name
Priya is creating a website and forgets to put a semicolon at the end of a CSS rule, causing the style to not apply. What type of error has Priya made?
Logic error
Syntax error
Runtime error
System error
Evelyn is setting up a new database for her business and needs to create a table to store customer information. Which SQL command should she use to create a new table?
CREATE TABLE
ADD TABLE
NEW TABLE
MAKE TABLE
In a company's employee database, James wants to connect the records in the 'Employees' table to the 'Departments' table so that each employee is linked to their department. What is the type of key James should use to link data between these two tables?
A primary ID
A database backup
A temporary password
A key that links data between two tables
Oliver is developing a calculator app. He writes a function that performs a calculation, and he wants the function to send the result back to the part of the app that requested it. What should Oliver use inside his function?
Prints text
Ends the loop
Sends a value back to the code that called it
Deletes variables
Arjun is working on a Python project for his school assignment. While coding, he accidentally types 'pritn' instead of 'print'. What kind of error will this cause?
Output error
Runtime error
Logic error
Syntax error
Sophia is creating a digital diary where she wants to remember her age for future entries. What should she use to keep this information?
A loop
A variable
A comment
A function
David is learning to use Scratch to create his own animations. He notices a section where he can arrange different commands to make his sprite move and interact. What do you call the list of commands in Scratch that David is working with?
Sprite
Script
Scratch
Help
Evelyn wants her computer to automatically organize her photos by date. She writes a set of instructions for the computer to follow. What is this set of instructions called?
Program
Compiler
Assembler
Translator
