wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CS 1: Big Idea #3 Practice

Total questions: 32

Worksheet time: 16mins

Name
Class
Date
1.

Which concept involves assigning a value to a variable in programming?

a)

Data Abstraction

b)

Variable Assignment

c)

Binary Searches

d)

Iteration - loop

2.

Which of the following is used to perform calculations in programming?

a)

Boolean Expressions

b)

Mathematical Expressions

c)

Developing Algorithms

d)

Conditionals - selection

3.

What is a sequence of characters used in programming known as?

a)

Lists

b)

Strings

c)

Iteration - loop

d)

Binary Searches

4.

Which concept involves making decisions based on conditions in programming?

a)

Iteration - loop

b)

Boolean Expressions

c)

Conditionals - selection

d)

Calling Procedures

5.

What is the process of finding a specific item in a sorted list by repeatedly dividing the search interval in half?

a)

Linear Search

b)

Binary Search

c)

Modulus

d)

Traverse

6.

Which term refers to a sequence of instructions that solve a problem or perform a task?

a)

Abstraction

b)

Debugging

c)

Algorithm

d)

Index

7.

What is the term for a data type that can hold one of two possible values, typically true or false?

a)

String

b)

Boolean values

c)

List

d)

Variable

8.

What is the process of combining two or more strings into one?

a)

Concatenation

b)

Modulus

c)

Sequence

d)

Procedure Call

9.

Which term describes something that repeats a set of instructions until a specific condition is met?

a)

Index

b)

Loop (iteration)

c)

Traverse

d)

Pseudocode

10.

What are variables in a program?

a)

Fixed values that never change

b)

Placeholders for values that a program needs

c)

Only used for textual expressions

d)

Only used for mathematical expressions

11.

What is a Boolean value?

a)

A value that can be any number

b)

A value that is either true or false

c)

A value that is always true

d)

A value that is always false

12.

What operators are used in Boolean logic?

a)

ADD, SUBTRACT, MULTIPLY

b)

AND, OR, NOT

c)

PLUS, MINUS, DIVIDE

d)

IF, ELSE, WHILE

13.

What should be considered when reading mathematical expressions in pseudocode?

a)

Order of operations

b)

Variable names

c)

Data types

d)

Loop structures

14.

What is pseudocode?

a)

A combination of programming syntax and natural language

b)

A compiled programming language

c)

A type of database

d)

A web development framework

15.

What does the modulus operator (MOD) do in programming?

a)

Adds two numbers

b)

Subtracts two numbers

c)

Divides two numbers and returns the remainder

d)

Multiplies two numbers

16.

In Boolean expressions, what does the AND operator require?

a)

Both conditions must be false

b)

One condition must be true

c)

Both conditions must be true

d)

One condition must be false

17.

What is the effect of the NOT operator in Boolean expressions?

a)

It makes a true condition false

b)

It makes a false condition true

c)

It adds two conditions

d)

It multiplies two conditions

18.

Which of the following is a series of characters that can also be numbers?

a)

Integers

b)

Strings

c)

Boolean values

d)

Fractional Numbers

19.

What is the process of putting strings together in a sequence called?

a)

Addition

b)

Multiplication

c)

Concatenation

d)

Division

20.

Which data type is used for whole numbers in mathematical operations?

a)

Strings

b)

Integers

c)

Boolean values

d)

Fractional Numbers

21.

What type of numbers have a decimal point and are used for mathematical operations?

a)

Strings

b)

Integers

c)

Fractional Numbers

d)

Boolean values

22.

What is a sequence in programming statements?

a)

Statements executed in the order they are written

b)

IF/ELSE statements that evaluate to true or false

c)

Repeats a sequence of statements until a condition is met

d)

A type of loop that runs indefinitely

23.

Which of the following is a type of loop in programming?

a)

Sequence loop

b)

Conditional loop

c)

Infinite loop

d)

Single-use loop

24.

What is a list considered in programming?

a)

A collection of strings or numbers

b)

A single value

c)

A type of loop

d)

A function

25.

What does it mean to traverse a list in programming?

a)

To delete all items

b)

To evaluate each list item starting with the first

c)

To sort the list alphabetically

d)

To reverse the list order

26.

What is an algorithm in computer science?

a)

A set of programming statements in a sequence

b)

A random collection of code snippets

c)

A single line of code

d)

A type of hardware component

27.

In what forms can algorithms be written?

a)

Only in natural languages

b)

Only in programming languages

c)

In natural languages, programming languages, or pseudocode

d)

Only in pseudocode

28.

Why is planning algorithms before programming important?

a)

It increases the complexity of the code

b)

It helps reduce debugging time

c)

It makes the code run slower

d)

It is not important at all

29.

What is the process of finding and fixing errors in code called?

a)

Compiling

b)

Debugging

c)

Encrypting

d)

Formatting

30.

What is a linear search?

a)

A search that eliminates half the list at each pass

b)

A search that traverses a list from beginning to end

c)

A search that requires the list to be sorted

d)

A search that uses a binary tree structure

31.

Which search method requires the list to be sorted?

a)

Linear search

b)

Binary search

c)

Both linear and binary search

d)

Neither linear nor binary search

32.

What is a key advantage of using a binary search?

a)

It works on unsorted lists

b)

It is only practical for small lists

c)

It saves processing power by eliminating half the list at each pass

d)

It requires less memory