wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pascal Assessment

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What section of a Pascal program is used to declare variables and assign data types? ......

a)

BEGIN

b)

CONST

c)

VAR

d)

TYPE

2.

The actual instructions for the program to run can be found after _____________

a)

The 'WRITELN' statement

b)

The 'VAR' statement

c)

The 'BEGIN' statement

d)

The 'CONST' statement

3.

Which of the following is a valid Pascal output statement?

a)

print('Hello Class!');

b)

println('Hello Class!');

c)

write("Hello Class!');

d)

writeln('Hello Class!');

4.

What is this ( := )?

a)

The equal sign

b)

The assignment operator

c)

The assignment sign

d)

The equal operator

5.

In the programming language Pascal, which of the following is NOT a standard data type?

a)

floating point

b)

char

c)

boolean

d)

integer

6.

What would be the result of the following Pascal statement?

write( 'Total is', 20 );

a)

Total 20

b)

Total = 20

c)

20

d)

Total is 20

7.

Which statement is the correct one for input in Pascal?

a)

input(num);

b)

scanf(num)

c)

readln(num);

d)

inputln(num);

8.

Which is the correct variable declaration statement?

a)

name := string;

b)

string : name;

c)

name : string;

d)

string := name;

9.

Why do we use indentation in our program's code?

a)

We have nothing better to do

b)

It makes the program easier to understand

c)

It's exciting

d)

It makes the program more accurate

10.

A variable that stores a collection of characters such as word, phrase or sentence is a(n):

a)

integer

b)

string

c)

number

d)

character