Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Programming Quiz

Total questions: 30

Worksheet time: 15mins

Name
Class
Date
1.

Which of the following is considered software?

a)

Keyboard

b)

Calculator app

c)

Monitor

d)

Mouse

2.

What do we call the physical parts of a computer system?

a)

Software

b)

Hardware

c)

Programs

d)

Code

3.

A person who writes program code is called a:

a)

Developer

b)

Programmer

c)

Engineer

d)

Designer

4.

Software is important because:

a)

It is visible and tangible

b)

It decorates your computer

c)

It allows hardware to work and perform tasks

d)

It powers the electricity

5.

Which of the following is NOT a type of Application Programmer?

a)

Game Developer

b)

Web App Programmer

c)

Network Administrator

d)

Database Programmer

6.

An example of an output device is:

a)

Keyboard

b)

Scanner

c)

Printer

d)

Microphone

7.

The step-by-step method to solve a problem in programming is called:

a)

Debugging

b)

Logical Flow

c)

Problem Solving

d)

Compilation

8.

Which is the first step in the programming process?

a)

Testing

b)

Analysis

c)

Planning

d)

Design

9.

What does the Testing & Debugging phase focus on?

a)

Planning the program layout

b)

Creating errors

c)

Fixing bugs and verifying program behavior

d)

Writing documentation

10.

Which of the following is an example of input?

a)

Clicking a mouse

b)

Printed report

c)

Graph output

d)

Monitor display

11.

Which element of programming stores user input or values?

a)

Input

b)

Data

c)

Output

d)

Loop

12.

A loop in programming:

a)

Stops the program immediately

b)

Executes code only once

c)

Repeats a set of instructions based on a condition

d)

Skips instructions

13.

Conditional execution in programming is mainly used to:

a)

Turn the computer off

b)

Print results

c)

Make decisions based on conditions

d)

Display the UI

14.

Breaking a large program into smaller, reusable parts is called:

a)

Debugging

b)

Looping

c)

Subroutine

d)

Compilation

15.

Which of the following is NOT part of the programming process?

a)

Analysis

b)

Painting

c)

Testing

d)

Development

16.

Which programming paradigm uses functions and reusable code?

a)

Procedural

b)

Object-Oriented

c)

Declarative

d)

All of the above

17.

Which programming paradigm uses real-world objects like 'Car' or 'Person'?

a)

Logical

b)

Object-Oriented

c)

Imperative

d)

Functional

18.

The operating system is an example of:

a)

Application software

b)

Entertainment software

c)

System software

d)

Hardware

19.

A database application programmer typically works with:

a)

Games

b)

Web animations

c)

Tables, records, queries

d)

Microcontrollers

20.

What kind of programmers work on devices like smartwatches and appliances?

a)

Web Developers

b)

Game Developers

c)

Micro Devices Programmers

d)

AI Programmers

21.

You want to create a program that calculates a student's average grade. Which element of programming will store the scores input by the user?

a)

Output

b)

Loop

c)

Data

d)

Operation

22.

In building a simple calculator app, which programming element checks if the operation is 'Add' or 'Multiply'?

a)

Subroutine

b)

Loop

c)

Conditional Execution

d)

Output

23.

Your program has repeated blocks of code that need to run several times. What should you use?

a)

Loop

b)

Subroutine

c)

Data

d)

Debugger

24.

You are in the design phase of a program. What should you be doing?

a)

Typing the final code

b)

Planning logic structures and interface

c)

Collecting user feedback

d)

Fixing bugs

25.

A game developer is likely to use which programming paradigm?

a)

Declarative

b)

Object-Oriented

c)

Functional

d)

Logical

26.

A web app programmer is working on a login page. What programming concept helps ensure only correct passwords allow access?

a)

Input

b)

Loop

c)

Conditional Execution

d)

Output

27.

During testing, your program crashes when entering letters instead of numbers. What process do you need to improve?

a)

Hardware

b)

Debugging

c)

Planning

d)

Subroutine

28.

You're building a report generator that processes hundreds of entries. What helps you repeat a task for each entry?

a)

Input

b)

Loop

c)

Subroutine

d)

Design

29.

A micro device programmer writes code for a washing machine. What is their main limitation?

a)

Data structure

b)

Memory and hardware constraints

c)

Software complexity

d)

Internet speed

30.

Your instructor asks you to modularize your code. Which programming element should you use?

a)

Loop

b)

Subroutine

c)

Input

d)

Output