Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Introduction to Computer Programming

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a computer program?

a)

A computer program is a type of hardware.

b)

A computer program is a physical device.

c)

A computer program is a set of instructions for a computer to execute.

d)

A computer program is a collection of random data.

2.

What does 'coding' mean?

a)

The method of compiling code into executable files.

b)

The process of writing instructions for computers using programming languages.

c)

The process of designing user interfaces.

d)

The act of debugging software errors.

3.

What is a programming language?

a)

A programming language is a formal language comprising a set of instructions that can be used to produce various kinds of output.

b)

A programming language is a style of painting.

c)

A programming language is a method of cooking.

d)

A programming language is a type of computer hardware.

4.

What is an algorithm?

a)

An algorithm is a step-by-step procedure for solving a problem.

b)

A type of computer hardware.

c)

A programming language used for coding.

d)

A random guess for a solution.

5.

What is a variable in programming?

a)

A variable is a fixed value that cannot change.

b)

A variable is a command that executes a program.

c)

A variable is a type of function in programming.

d)

A variable is a named storage location in memory that holds a value.

6.

the computer can decide the instruction like humans being, is that true?

a)

sure

b)

No, it can't

c)

very true

d)

not sure

7.

What is a loop in programming?

a)

A loop is a type of variable used in programming.

b)

A loop is a data structure that stores multiple values.

c)

A loop is a function that executes only once.

d)

A loop is a control structure that repeats a block of code as long as a specified condition is true.

8.

What is the purpose of a function?

a)

To display output to the user without any input.

b)

The purpose of a function is to encapsulate code for reuse and organization.

c)

To execute code only once during a program's lifecycle.

d)

To store data in a database permanently.

9.

What does 'syntax' mean in programming?

a)

Syntax is the meaning of the code in a programming language.

b)

Syntax is a type of programming language used for web development.

c)

Syntax is the set of rules that defines the structure of code in a programming language.

d)

Syntax refers to the speed of code execution.

10.

what is the meaning of flowchart?

a)

A compiler is used for scripting languages, while an interpreter is used for compiled languages.

b)

A compiler translates code into machine language, while an interpreter translates it into assembly language.

c)

it is a diagram that represents an algorithm and shows its steps.

d)

it executes the program directly, while an interpreter does not.