wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Introduction to Computer Science Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

What is an algorithm?

a)

A machine that processes information

b)

A step-by-step set of instructions for solving a problem

c)

A type of data structure

d)

A programming language

2.

What is the primary purpose of a program?

a)

To store data

b)

To execute a sequence of instructions

c)

To design hardware

d)

To create graphics

3.

What is Karel used for?

a)

To introduce students to basic coding logic

b)

To design computer hardware

c)

To manage databases

d)

To create complex algorithms

4.

What is a function in programming?

a)

A machine that processes information

b)

A programming language

c)

A type of data structure

d)

A named group of instructions that performs a specific task

5.

What is the purpose of a comment in code?

a)

To create graphics

b)

To provide notes for the programmer

c)

To store data values

d)

To execute a specific task

6.

What is JavaScript primarily used for?

a)

To create operating systems

b)

To manage databases

c)

To design computer hardware

d)

To make interactive and dynamic web pages

7.

What is a variable in programming?

a)

A programming language

b)

A machine that processes information

c)

A type of data structure

d)

A named container used to store data values

8.

What does a control structure do?

a)

Controls the flow of a program

b)

Creates graphics

c)

Designs hardware

d)

Stores data values

9.

What is the purpose of an if statement?

a)

To run code only if a specified condition is true

b)

To repeat a block of code

c)

To create graphics

d)

To store data values

10.

What is a while loop used for?

a)

To run code only if a specified condition is true

b)

To create graphics

c)

To repeat a block of code while a condition remains true

d)

To store data values

11.

What is a parameter in a function?

a)

A type of data structure

b)

A machine that processes information

c)

A variable used to pass information into a function

d)

A programming language

12.

What is an array?

a)

A list-like data structure that holds multiple values

b)

A machine that processes information

c)

A programming language

d)

A type of control structure

13.

What is the purpose of cybersecurity?

a)

To design computer hardware

b)

To create interactive web pages

c)

To manage databases

d)

To protect systems, networks, and data from digital attacks

14.

What is the Software Development Life Cycle (SDLC)?

a)

A machine that processes information

b)

A type of data structure

c)

The process of planning, creating, testing, and maintaining software

d)

A programming language

15.

What is debugging?

a)

Creating interactive web pages

b)

Finding and fixing errors in code

c)

Designing computer hardware

d)

Managing databases

16.

What is a digital footprint?

a)

A programming language

b)

The record of a person’s online activity and presence

c)

A type of data structure

d)

A machine that processes information

17.

What is data privacy?

a)

The protection of personal data from unauthorized access

b)

Designing computer hardware

c)

Managing databases

d)

Creating interactive web pages

18.

What is a return value in a function?

a)

A machine that processes information

b)

The output a function gives back after it runs

c)

A type of data structure

d)

A programming language

19.

What is modularity in programming?

a)

Designing a program by breaking it into separate functions or modules

b)

A type of data structure

c)

A programming language

d)

A machine that processes information

20.

What is the purpose of a for loop?

a)

To repeat code a specific number of times using a counter variable

b)

To run code only if a specified condition is true

c)

To store data values

d)

To create graphics

21.

What is decomposition in programming?

a)

A programming language

b)

A machine that processes information

c)

A type of data structure

d)

Breaking down a large problem into smaller, manageable parts

22.

What is a coordinate system used for in graphics?

a)

To create interactive web pages

b)

To place objects on the canvas

c)

To store data values

d)

To design computer hardware

23.

What is a boolean expression?

a)

A type of data structure

b)

A programming language

c)

An expression that evaluates to either true or false

d)

A machine that processes information

24.

What is the purpose of a canvas in JavaScript graphics?

a)

The drawing area on which graphics are drawn

b)

To design computer hardware

c)

To store data values

d)

To create interactive web pages

25.

What is digital citizenship?

a)

A type of data structure

b)

Responsible and appropriate behavior when using technology

c)

A machine that processes information

d)

A programming language

26.

What is the purpose of testing in software development?

a)

Checking if a program works as expected

b)

Creating interactive web pages

c)

Designing computer hardware

d)

Managing databases

27.

What is the role of documentation in programming?

a)

A type of data structure

b)

Written details explaining how code or a program works

c)

A machine that processes information

d)

A programming language

28.

What is looping through an array?

a)

Using a loop to access each element in an array

b)

A type of data structure

c)

A programming language

d)

A machine that processes information

29.

What is an index in an array?

a)

A machine that processes information

b)

A programming language

c)

A type of data structure

d)

The position of an element in an array

30.

What is a command in programming?

a)

A machine that processes information

b)

An instruction you give to the computer to perform a specific task

c)

A type of data structure

d)

A programming language