NEW
Font size
WorksheetsIntroduction to Computer Science Quiz
Total questions: 30
Worksheet time: 15mins
What is an algorithm?
A machine that processes information
A step-by-step set of instructions for solving a problem
A type of data structure
A programming language
What is the primary purpose of a program?
To store data
To execute a sequence of instructions
To design hardware
To create graphics
What is Karel used for?
To introduce students to basic coding logic
To design computer hardware
To manage databases
To create complex algorithms
What is a function in programming?
A machine that processes information
A programming language
A type of data structure
A named group of instructions that performs a specific task
What is the purpose of a comment in code?
To create graphics
To provide notes for the programmer
To store data values
To execute a specific task
What is JavaScript primarily used for?
To create operating systems
To manage databases
To design computer hardware
To make interactive and dynamic web pages
What is a variable in programming?
A programming language
A machine that processes information
A type of data structure
A named container used to store data values
What does a control structure do?
Controls the flow of a program
Creates graphics
Designs hardware
Stores data values
What is the purpose of an if statement?
To run code only if a specified condition is true
To repeat a block of code
To create graphics
To store data values
What is a while loop used for?
To run code only if a specified condition is true
To create graphics
To repeat a block of code while a condition remains true
To store data values
What is a parameter in a function?
A type of data structure
A machine that processes information
A variable used to pass information into a function
A programming language
What is an array?
A list-like data structure that holds multiple values
A machine that processes information
A programming language
A type of control structure
What is the purpose of cybersecurity?
To design computer hardware
To create interactive web pages
To manage databases
To protect systems, networks, and data from digital attacks
What is the Software Development Life Cycle (SDLC)?
A machine that processes information
A type of data structure
The process of planning, creating, testing, and maintaining software
A programming language
What is debugging?
Creating interactive web pages
Finding and fixing errors in code
Designing computer hardware
Managing databases
What is a digital footprint?
A programming language
The record of a person’s online activity and presence
A type of data structure
A machine that processes information
What is data privacy?
The protection of personal data from unauthorized access
Designing computer hardware
Managing databases
Creating interactive web pages
What is a return value in a function?
A machine that processes information
The output a function gives back after it runs
A type of data structure
A programming language
What is modularity in programming?
Designing a program by breaking it into separate functions or modules
A type of data structure
A programming language
A machine that processes information
What is the purpose of a for loop?
To repeat code a specific number of times using a counter variable
To run code only if a specified condition is true
To store data values
To create graphics
What is decomposition in programming?
A programming language
A machine that processes information
A type of data structure
Breaking down a large problem into smaller, manageable parts
What is a coordinate system used for in graphics?
To create interactive web pages
To place objects on the canvas
To store data values
To design computer hardware
What is a boolean expression?
A type of data structure
A programming language
An expression that evaluates to either true or false
A machine that processes information
What is the purpose of a canvas in JavaScript graphics?
The drawing area on which graphics are drawn
To design computer hardware
To store data values
To create interactive web pages
What is digital citizenship?
A type of data structure
Responsible and appropriate behavior when using technology
A machine that processes information
A programming language
What is the purpose of testing in software development?
Checking if a program works as expected
Creating interactive web pages
Designing computer hardware
Managing databases
What is the role of documentation in programming?
A type of data structure
Written details explaining how code or a program works
A machine that processes information
A programming language
What is looping through an array?
Using a loop to access each element in an array
A type of data structure
A programming language
A machine that processes information
What is an index in an array?
A machine that processes information
A programming language
A type of data structure
The position of an element in an array
What is a command in programming?
A machine that processes information
An instruction you give to the computer to perform a specific task
A type of data structure
A programming language
