wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Pascal Coding

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What is Pascal used for?

a)

Web development

b)

Designing graphics

c)

Hardware control

d)

Teaching programming

2.

What keyword starts a Pascal program?

a)

Start

b)

Main

c)

Program

d)

Begin

3.

What does the following code do?
WriteLn('Hello');

a)

Ends the program

b)

Declares a variable

c)

Displays output

d)

Takes input

4.

 What symbol is used to end a Pascal program?

a)

End.

b)

}

c)

End

d)

;

5.

Which data type is best for storing someone’s name?

a)


Boolean

b)

Real

c)

String

d)

Integer

6.

Which command allows you to get input from a user?

a)

Input()

b)

PrintLn

c)

Write

d)

ReadLn

7.

What is the purpose of an If statement in Pascal?

a)

Loop through values

b)

Print text

c)

Define variables

d)

Make decisions

8.

Which loop runs a fixed number of times?

a)

While loop

b)

If loop

c)

For loop

d)

Repeat Until

9.

What is the output of this code?
Var a := 10;
WriteLn(a);

a)

10

b)

a

c)

0

d)

Nothing

10.

What is a Procedure used for in Pascal?

a)

Inputting data

b)

Repeating code

c)

Making decisions

d)

Organizing code