Introduction to Programming
- 49Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
49 questions
- 1The process of_____involves preparing an instructional program for a device to perform a specific task.
Hint
Think of giving instructions to a computer to complete a task.
Answer
programming
- 2Computers only understand machine code, which is a numerical language known as_____.
Hint
This language consists of only two digits: 0 and 1.
Answer
binary
- 3Programming languages act as a_____between human instructions and machine code.
Hint
They translate what you write into something the computer understands.
Answer
middle man
- 4A low-level programming language is_____to binary than a high-level language.
Hint
Compare how similar the code is to machine code.
Answer
closer
- 5An integrated development environment (IDE) provides a_____interface for writing, running, and debugging code.
Hint
It's visual, not just text-based.
Answer
graphic
- 6The set of rules that defines how code must be written in a programming language is called its_____.
Hint
Similar to grammar in human languages.
Answer
syntax
- 7The_____is a text interface within the IDE used to output information from a program.
Hint
It's where print statements show their results.
Answer
console
- 8A command that prints text to the console is called a_____statement.
Hint
It outputs information for the developer to see.
Answer
print
- 9The arithmetic operator that returns the remainder of a division is called_____.
Hint
It's not one of the four basic operations; think of getting the remainder.
Answer
modulus
- 10A sequence of characters enclosed in quotation marks is called a_____in programming.
Hint
It represents text data.
Answer
string
- 11Combining multiple strings together using the plus sign is known as_____.
Hint
Think of 'adding' strings to form a longer string.
Answer
concatenation
- 12A variable that can store an integer value without decimals is called an_____.
Hint
Whole numbers, both positive and negative.
Answer
integer
- 13A boolean variable can only hold one of two values: true or_____.
Hint
It's a binary state.
Answer
false
- 14A variable that can store numbers with decimal places is called a floating-point number; two common types are float and_____.
Hint
This type typically has more precision than float.
Answer
double
- 15A variable that can hold a single character is called a_____.
Hint
Short for character.
Answer
char
- 16The naming convention where the first word is lowercase and subsequent words are capitalized (e.g., playerScore) is called_____.
Hint
Think of the humps of a camel.
Answer
camelCase
- 17An if statement evaluates a condition and executes code inside its_____only if the condition is true.
Hint
These symbols enclose the block of code to run.
Answer
brackets
- 18The_____statement is used after an if statement to test another condition if the first one was false.
Hint
It chains conditions together.
Answer
else if
- 19A_____statement is used to select one of many blocks of code to be executed, based on the value of a variable.
Hint
It's an alternative to many else if statements.
Answer
switch
- 20In an array, the position of an element is called its_____.
Hint
It starts at 0, not 1.
Answer
index
- 21When an array is initialized, its size is_____and cannot be changed.
Hint
It's not flexible like an ArrayList.
Answer
fixed
- 22A two-dimensional array can be thought of as an array of arrays, similar to a_____.
Hint
Think rows and columns.
Answer
matrix
- 23A for loop typically consists of three parts: an initial value, a condition, and an_____to modify the value each iteration.
Hint
It changes the loop variable (e.g., increment by 1).
Answer
operation
- 24An infinite loop occurs when the condition to exit the loop is_____.
Hint
The loop runs forever.
Answer
never met
- 25A_____loop is used to iterate through each element in an array or list.
Hint
It simplifies traversal without using an index.
Answer
for each
- 26A while loop continues executing as long as its_____is true.
Hint
It checks before each iteration.
Answer
condition
- 27A do-while loop will execute its code block at least_____before checking the condition.
Hint
It's a variant of while that guarantees one execution.
Answer
once
- 28An error caused by breaking the grammar rules of a programming language is called a_____error.
Hint
Think misspelling or missing punctuation.
Answer
syntax
- 29An error that occurs while a program is running, such as an infinite loop, is called a_____error.
Hint
It happens after the program starts executing.
Answer
runtime
- 30When a program runs without errors but produces incorrect results, it is due to a_____error.
Hint
The code is syntactically correct but does not do what you intended.
Answer
logic
- 31Using_____statements in the console is a common way to debug logic errors by printing variable values at key points.
Hint
You output information to see what's happening.
Answer
print
- 32A_____pauses program execution when a specified line is reached, allowing inspection of variable states.
Hint
It's a marker set in the code.
Answer
breakpoint
- 33Commenting out code by placing special symbols before it makes the computer_____the code.
Hint
It becomes non-executable text.
Answer
ignore
- 34A function that does not return a value is called a_____function.
Hint
It performs an action but gives nothing back.
Answer
void
- 35Values passed into a function are called_____.
Hint
They are inputs to the function.
Answer
arguments
- 36The_____statement is used to send a value back from a function to the caller.
Hint
It exits the function and optionally provides a result.
Answer
return
- 37An_____statement is used to bring external libraries or packages into a program for use.
Hint
It gives access to pre-written code.
Answer
import
- 38An_____is like a growing array that automatically increases its size when elements are added.
Hint
It's a dynamic list structure.
Answer
ArrayList
- 39In a dictionary, each element is stored as a key/value pair, where each key must be_____.
Hint
No two keys can be the same.
Answer
unique
- 40A linear search checks each element in sequence from the_____of the list to the end.
Hint
It begins at the first element.
Answer
start
- 41A binary search requires the list to be_____before it can be applied.
Hint
Elements must be in order.
Answer
sorted
- 42In recursion, a function calls_____.
Hint
It repeats the same function within its own definition.
Answer
itself
- 43A_____case is a condition in a recursive function that stops the recursion.
Hint
It provides a simple, non-recursive solution.
Answer
base
- 44The data structure that follows the Last In, First Out (LIFO) principle is called a_____.
Hint
Think of a stack of plates.
Answer
stack
- 45Writing informal, human-readable steps to plan a program before coding is known as writing_____.
Hint
It's not actual code but a plan.
Answer
pseudocode
- 46A_____is a graphical representation of a program's flow using boxes and arrows.
Hint
It visually maps out decisions and processes.
Answer
flowchart
- 47A_____language like Python or Java can be used for a wide variety of applications.
Hint
It's not specialized for one task.
Answer
general purpose
- 48HTML and CSS are specialized languages for designing_____.
Hint
They structure and style web pages.
Answer
websites
- 49A_____language, like JavaScript, can be run without being compiled and is often used for web scripting.
Hint
It is interpreted rather than compiled.
Answer
scripting

Ask anything
We've read this whole study set, so questions about it get the best answers.