Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz on Programming Concepts

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What are the main components of problem-solving?

a)

Input, Process, Feedback

b)

Input, Process, Output

c)

Analysis, Programming, Debugging

d)

Sequence, Selection, Repetition

2.

What is the correct order of steps for making tea?

a)

Add sugar → Pour water → Add tea leaves → Stir

b)

Pour water → Add sugar → Add tea leaves → Taste

c)

Add tea leaves → Pour water → Add sugar → Stir

d)

Stir → Add tea leaves → Pour water → Add sugar

3.

What is the purpose of an algorithm?

a)

To create diagrams for a program

b)

To represent decision-making conditions

c)

To provide a step-by-step solution to a problem

d)

To convert high-level code to machine language

4.

Which symbol in a flowchart represents a decision?

a)

Rectangle

b)

Diamond

c)

Oval

d)

Parallelogram

5.

What keyword is used to indicate the start of a pseudo code?

a)

STOP

b)

BEGIN

c)

PROCESS

d)

OPEN

6.

Which of the following is a valid identifier in Pascal?

a)

123Marks

b)

First-Name

c)

Student_Name

d)

@Average

7.

Which data type in Pascal can store a sequence of characters?

a)

Integer

b)

Char

c)

Boolean

d)

String

8.

What is the output of the expression 10 MOD 3 in Pascal?

a)

1

b)

3

c)

0

d)

7

9.

What is the result of the logical expression (True AND False)?

a)

True

b)

False

c)

1

d)

Undefined

10.

Which structure repeats steps until a condition is satisfied?

a)

Sequence

b)

Selection

c)

Repetition

d)

Decision

11.

What is the primary difference between an interpreter and a compiler?

a)

Interpreters are faster than compilers.

b)

Compilers translate code line-by-line.

c)

Interpreters execute code line-by-line, while compilers translate the entire program first.

d)

Compilers detect no errors during translation.

12.

Which programming paradigm focuses on what to solve, not how to solve?

a)

Procedural

b)

Declarative

c)

Object-Oriented

d)

Structured

13.

What does an array allow you to do?

a)

Store multiple values of the same type using a single identifier.

b)

Execute repetitive tasks in a program.

c)

Store characters only.

d)

Perform arithmetic operations.

14.

Which Pascal structure simplifies handling multiple conditions?

a)

IF...THEN...ELSE

b)

WHILE Loop

c)

CASE Statement

d)

FOR Loop

15.

What are low-level programming languages?

a)

Machine and Assembly languages

b)

Python and Java

c)

Pascal and BASIC

d)

FORTRAN and SQL

16.

Which keyword is used in Pascal to declare variables?

a)

const

b)

var

c)

input

d)

declare

17.

Which operator is used in Pascal for integer division?

a)

MOD

b)

/

c)

DIV

d)

*

18.

What is the starting index of an array in Pascal by default?

a)

1

b)

0

c)

-1

d)

Undefined

19.

What does the term "function" refer to in Pascal programming?

a)

A block of code that performs a task without returning a value.

b)

A block of code that performs a task and returns a value.

c)

A predefined variable.

d)

A loop structure.

20.

What is a characteristic of object-oriented programming?

a)

Uses step-by-step instructions.

b)

Divides tasks into sub-systems.

c)

Combines data and methods into objects.

d)

Relies only on loops and conditions.