Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Programming Basics

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

What does programming involve?

a)

Creating sets of instructions for a computer

b)

Writing novels

c)

Painting pictures

d)

Composing music

2.

What is a code in programming?

a)

A secret message

b)

A set of instructions for a computer

c)

A programming language

d)

A mathematical equation

3.

What is coding?

a)

The process of fixing errors in a code

b)

Writing novels

c)

Creating sets of instructions for a computer

d)

Composing music

4.

Which of the following is an example of a programming language?

a)

English

b)

Python

c)

History

d)

Geography

5.

What is the purpose of programming?

a)

Building a safer technological environment

b)

Writing poetry

c)

Painting pictures

d)

Cooking recipes

6.

What is a bug in programming?

a)

An insect

b)

A feature in a program

c)

An error in a code or program

d)

A computer virus

7.

What is debugging?

a)

Finding insects in a program

b)

The process of fixing errors in a code or program

c)

Enhancing the features of a program

d)

Creating a new program

8.

What does "Execute a Program" mean?

a)

Deleting a program

b)

Running a set of instructions

c)

Creating a program

d)

Debugging a program

9.

What is a programming language?

a)

A language to communicate with humans

b)

A language to communicate with animals

c)

A language to communicate with computers

d)

A language to communicate with plants

10.

Who are programmers?

a)

Cooks

b)

Musicians

c)

Individuals who write codes or programs

d)

Artists

11.

What is a variable in programming?

a)

A constant value

b)

A placeholder for storing data with names

c)

An input device

d)

A programming language

12.

What do data types in programming define?

a)

The type of music in a program

b)

The type of variable data (integers, strings)

c)

The type of food in a program

d)

The type of language used in a program

13.

What do operators in programming do?

a)

Operate on numbers

b)

Operate on animals

c)

Operate on colors

d)

Perform actions on variables

14.

What is the purpose of control structures in programming?

a)

Control the traffic flow

b)

Control program flow with decisions and loops

c)

Control the weather

d)

Control the stock market

15.

What do functions/methods do in programming?

a)

Create art

b)

Encapsulate reusable sets of instructions

c)

Play music

d)

Control the lights in a room

16.

What does syntax in programming refer to?

a)

A type of dance

b)

Rules governing statement structure

c)

Rules governing cooking

d)

A type of language

17.

What do comments do in programming?

a)

Write novels

b)

Document and explain within the code

c)

Compose music

d)

Cook recipes

18.

What do arrays/collections do in programming?

a)

Store and manage multiple values

b)

Store and manage single values

c)

Play music

d)

Control the lights in a room

19.

What is the purpose of input/output in programming?

a)

Create art

b)

Interact with users for data exchange

c)

Control the weather

d)

Control the stock market

20.

What are libraries/modules in programming?

a)

A collection of books

b)

A collection of songs

c)

Reusable code for specific tasks

d)

A collection of recipes

21.

What do flowcharts represent in programming?

a)

Mathematical equations

b)

Program logic

c)

Poetry

d)

Painting techniques

22.

What do start/end symbols represent in a flowchart?

a)

The beginning or end of a mathematical equation

b)

The beginning or end of a process

c)

The start or finish of a painting

d)

The start or finish of a novel

23.

What is the role of process symbols in a flowchart?

a)

Representing decision points

b)

Representing input/output

c)

Representing specific operations or tasks

d)

Representing variables

24.

What do decision symbols represent in a flowchart?

a)

Decision points with branching paths

b)

Mathematical equations

c)

Poetry

d)

Painting techniques

25.

What is an algorithm in programming?

a)

A type of dance

b)

A sequence of detailed step-by-step instructions

c)

A cooking recipe

d)

A collection of books

26.

What is the first step in an algorithm?

a)

Planning

b)

Choosing a language

c)

Defining the problem

d)

Debugging

27.

What does "Plan Your Approach" involve in programming?

a)

Breaking down the problem, creating an algorithm, and planning the logic

b)

Debugging

c)

Writing code

d)

Seeking feedback

28.

What is the purpose of choosing a programming language?

a)

To write novels

b)

To create art

c)

To select a suitable language for the task

d)

To play music

29.

What does "Set Up Environment" mean in programming?

a)

Setting up a comfortable work environment

b)

Installing necessary tools and setting up the coding environment

c)

Setting up a painting studio

d)

Setting up a music studio

30.

What does "Write Code" involve in programming?

a)

Writing novels

b)

Writing clean, documented code following your plan

c)

Painting pictures

d)

Cooking recipes

31.

What is the purpose of testing code in programming?

a)

Finding bugs and fixing errors

b)

Debugging

c)

Writing novels

d)

Creating new programs

32.

What does "Review and Refactor" mean in programming?

a)

Checking for efficiency, readability, and adhering to best practices

b)

Seeking feedback

c)

Creating new programs

d)

Debugging

33.

What is the purpose of seeking feedback in programming?

a)

Finding bugs

b)

Gaining valuable insights and improving code

c)

Creating new programs

d)

Debugging

34.

What does "Documentation" involve in programming?

a)

Writing novels

b)

Adding comments for clarity and documenting code

c)

Painting pictures

d)

Cooking recipes

35.

What is version control in programming?

a)

Controlling versions of music

b)

Controlling versions of paintings

c)

Using Git or similar tools to track changes and manage versions

d)

Controlling versions of novels

36.

What does "Deployment" mean in programming?

a)

Deploying troops

b)

Deploying code if necessary, ensuring seamless real-world functionality

c)

Deploying artwork

d)

Deploying musical instruments

37.

What is the importance of continuous learning in programming?

a)

Creating art

b)

Staying curious, exploring new technologies, and keeping improving

c)

Writing novels

d)

Cooking recipes

38.

What is the primary purpose of a bug in programming?

a)

To create errors

b)

To add features to a program

c)

To fix errors in a program

d)

To enhance program efficiency

39.

What is the main purpose of debugging in programming?

a)

Creating new programs

b)

Fixing errors in a code or program

c)

Adding features to a program

d)

Enhancing program efficiency

40.

What does "Execute a Program" involve in programming?

a)

Creating a program

b)

Deleting a program

c)

Running a set of instructions

d)

Debugging a program

41.

What do libraries/modules provide in programming?

a)

A collection of books

b)

Reusable code for specific tasks

c)

A collection of paintings

d)

A collection of songs

42.

What is the primary role of control structures in programming?

a)

Controlling traffic flow

b)

Controlling program flow with decisions and loops

c)

Controlling weather conditions

d)

Controlling stock market fluctuations

43.

What is the primary function of flowcharts in programming?

a)

Creating artwork

b)

Aiding in planning, problem-solving, and communication

c)

Composing music

d)

Writing novels

44.

What does "Define the Problem" involve in programming?

a)

Defining mathematical equations

b)

Defining traffic problems

c)

Understanding the problem, identifying input/output, and noting constraints

d)

Defining painting techniques

45.

What is the role of data types in programming?

a)

Defining the type of music in a program

b)

Defining the type of variable data (integers, strings)

c)

Defining the type of food in a program

d)

Defining the type of language used in a program

46.

What is the primary function of operators in programming?

a)

Operating on numbers

b)

Operating on animals

c)

Operating on colors

d)

Performing actions on variables

47.

What is the primary purpose of input/output in programming?

a)

Creating artwork

b)

Interacting with users for data exchange

c)

Controlling weather conditions

d)

Controlling stock market fluctuations

48.

What is the primary purpose of functions/methods in programming?

a)

Creating art

b)

Encapsulating reusable sets of instructions

c)

Playing music

d)

Controlling the lights in a room

49.

What does "Continuous Learning" involve in programming?

a)

Creating art

b)

Staying curious, exploring new technologies, and keeping improving

c)

Writing novels

d)

Cooking recipes

50.

What is the primary purpose of version control in programming?

a)

Controlling versions of music

b)

Controlling versions of paintings

c)

Using Git or similar tools to track changes and manage versions

d)

Controlling versions of novels