NEW
Font size
WorksheetsCS 1: Big Idea #3 Practice
Total questions: 32
Worksheet time: 16mins
Which concept involves assigning a value to a variable in programming?
Data Abstraction
Variable Assignment
Binary Searches
Iteration - loop
Which of the following is used to perform calculations in programming?
Boolean Expressions
Mathematical Expressions
Developing Algorithms
Conditionals - selection
What is a sequence of characters used in programming known as?
Lists
Strings
Iteration - loop
Binary Searches
Which concept involves making decisions based on conditions in programming?
Iteration - loop
Boolean Expressions
Conditionals - selection
Calling Procedures
What is the process of finding a specific item in a sorted list by repeatedly dividing the search interval in half?
Linear Search
Binary Search
Modulus
Traverse
Which term refers to a sequence of instructions that solve a problem or perform a task?
Abstraction
Debugging
Algorithm
Index
What is the term for a data type that can hold one of two possible values, typically true or false?
String
Boolean values
List
Variable
What is the process of combining two or more strings into one?
Concatenation
Modulus
Sequence
Procedure Call
Which term describes something that repeats a set of instructions until a specific condition is met?
Index
Loop (iteration)
Traverse
Pseudocode
What are variables in a program?
Fixed values that never change
Placeholders for values that a program needs
Only used for textual expressions
Only used for mathematical expressions
What is a Boolean value?
A value that can be any number
A value that is either true or false
A value that is always true
A value that is always false
What operators are used in Boolean logic?
ADD, SUBTRACT, MULTIPLY
AND, OR, NOT
PLUS, MINUS, DIVIDE
IF, ELSE, WHILE
What should be considered when reading mathematical expressions in pseudocode?
Order of operations
Variable names
Data types
Loop structures
What is pseudocode?
A combination of programming syntax and natural language
A compiled programming language
A type of database
A web development framework
What does the modulus operator (MOD) do in programming?
Adds two numbers
Subtracts two numbers
Divides two numbers and returns the remainder
Multiplies two numbers
In Boolean expressions, what does the AND operator require?
Both conditions must be false
One condition must be true
Both conditions must be true
One condition must be false
What is the effect of the NOT operator in Boolean expressions?
It makes a true condition false
It makes a false condition true
It adds two conditions
It multiplies two conditions
Which of the following is a series of characters that can also be numbers?
Integers
Strings
Boolean values
Fractional Numbers
What is the process of putting strings together in a sequence called?
Addition
Multiplication
Concatenation
Division
Which data type is used for whole numbers in mathematical operations?
Strings
Integers
Boolean values
Fractional Numbers
What type of numbers have a decimal point and are used for mathematical operations?
Strings
Integers
Fractional Numbers
Boolean values
What is a sequence in programming statements?
Statements executed in the order they are written
IF/ELSE statements that evaluate to true or false
Repeats a sequence of statements until a condition is met
A type of loop that runs indefinitely
Which of the following is a type of loop in programming?
Sequence loop
Conditional loop
Infinite loop
Single-use loop
What is a list considered in programming?
A collection of strings or numbers
A single value
A type of loop
A function
What does it mean to traverse a list in programming?
To delete all items
To evaluate each list item starting with the first
To sort the list alphabetically
To reverse the list order
What is an algorithm in computer science?
A set of programming statements in a sequence
A random collection of code snippets
A single line of code
A type of hardware component
In what forms can algorithms be written?
Only in natural languages
Only in programming languages
In natural languages, programming languages, or pseudocode
Only in pseudocode
Why is planning algorithms before programming important?
It increases the complexity of the code
It helps reduce debugging time
It makes the code run slower
It is not important at all
What is the process of finding and fixing errors in code called?
Compiling
Debugging
Encrypting
Formatting
What is a linear search?
A search that eliminates half the list at each pass
A search that traverses a list from beginning to end
A search that requires the list to be sorted
A search that uses a binary tree structure
Which search method requires the list to be sorted?
Linear search
Binary search
Both linear and binary search
Neither linear nor binary search
What is a key advantage of using a binary search?
It works on unsorted lists
It is only practical for small lists
It saves processing power by eliminating half the list at each pass
It requires less memory
