wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basic Programming Concepts

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Q1. You can plan an algorithm using step by step instructions and _________________ .

a)

diagrams

b)

pseudocode

c)

programming languages

d)

flowcharts

2.

Q2. Which variable data type would you use to store the value ‘Sultan?

a)

integer

b)

boolean

c)

string

d)

float

3.

Q3. Which programming construct is used to repeat programming instructions?

a)

Loop

b)

Function

c)

Variable

d)

Condition

4.

Q4. A _______________ is a small section of a program that performs a specific task and outputs a result.

a)

function

b)

loop

c)

array

d)

variable

5.

Q5. Repetition allows you to make programs simpler and more efficient.

a)

Repetition is not useful in programming.

b)

Repetition is only for advanced programmers.

c)

True

d)

Repetition makes programs more complex and slower.

6.

Q6. What is the main purpose of a variable in programming?

a)

To store and manage data values in a program.

b)

To display output to the user.

c)

To execute functions in a program.

d)

To define the structure of a program.

7.

Q7. Which of the following is a common programming language?

a)

Python

b)

CSS

c)

HTML

d)

JavaScript

8.

Q8. What does 'debugging' refer to in programming?

a)

The method of optimizing a program's performance.

b)

The process of compiling code into machine language.

c)

The act of writing code without errors.

d)

The process of identifying and fixing bugs in a program.

9.

Q9. In programming, what does 'syntax' mean?

a)

The method of debugging code errors.

b)

The set of rules governing the structure of code in a programming language.

c)

The style of writing comments in code.

d)

The process of compiling code into machine language.

10.

Q10. What is an array used for in programming?

a)

To store multiple values in a single variable.

b)

To perform mathematical calculations only.

c)

To create a single value variable.

d)

To define functions in programming.