wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

G9CS - Pseudocode Quiz1

Total questions: 25

Worksheet time: 40mins

Name
Class
Date
1.

Which are the lines that contains errors

a)

3,4,6,7

b)

5,6,7,9

c)

5,6,8,9

d)

2,3,4,9

e)

Honestly , I don't know

2.

State the data type of the variable MyName

MyName = "Dhoni"

a)

CHAR

b)

STRING

c)

INTEGER

d)

REAL

e)

Honestly , I don't know

3.

What will be the output of the following statement:

MyName = "Bill" + 23

a)

Bill23

b)

BillW

c)

Error

d)

None of the above

e)

Honestly , I don't know

4.

What is the following statement?


MyName = "Bill Gates"

a)

Sequence

b)

Selection

c)

Iteration

d)

Assignment

e)

Honestly , I don't know

5.

What data type can I use for telling the Gender variable like below?


Gender = 'F'

Gender = 'M'

a)

STRING

b)

ARRAY

c)

CHAR

d)

INTEGER

e)

Honestly , I don't know

6.

What will be the output of the following code?


A = 23

B = 12

C = 2

D = (A+B) * C

PRINT D

a)

47

b)

35

c)

70

d)

140

e)

Honestly , I don't know

7.

What will be the output for the following code?


A = 9

B = 1

C = 2

D = 3

E = A * C + B * D - A / D

PRINT E

a)

21

b)

17

c)

19

d)

18

e)

Honestly , I don't know

8.
a)

Outstanding, go and stand out ;-)

b)

I am Bahubali

c)

Excellent , how did you do this

d)

Thala Dhoni Fans

e)

Honestly , I don't know

9.
a)

Outstanding, go and stand out ;-)

b)

Excellent , how did you do this

c)

I am Bahubali

d)

Thala Dhoni Fans

e)

Honestly , I don't know

10.

IF statement is a ___________________________ statement?

a)

Assignment

b)

Sequence

c)

Selection

d)

Loop

e)

Honestly , I don't know

11.
a)

Age is equal to 18

b)

Age is not equal to 18

c)

Error

d)

None of the above

e)

Honestly, I don't know

12.
a)

The age is greater than 18 and less than 100

b)

The age is greater than 100

c)

Age is not equal to 18

d)

Error

e)

Honestly, I don't know

13.

What we call if we have an IF statement inside an IF statement?

a)

Loop

b)

Nested IF

c)

IF container

d)

Condition of Condition

e)

Honestly, I don't know

14.

What are these statements are called?

  1. FOR ... TO ... NEXT
  2. REPEAT ... UNTIL
  3. WHILE ... DO ... ENDWHILE
a)

Sequence

b)

Selection

c)

Conditional Select

d)

Loop / Repetition / Iteration

e)

Honestly, I don't know

15.
a)

30 times

b)

31 times

c)

29 times

d)

28 times

e)

Honestly, I don't know

16.
a)

*

*

*

*

b)

*

1

*

2

2

c)

*

*

2

d)

*

*

e)

Honestly, I don't know

17.
a)

*

*

*

*

b)

*

1

*

2

c)

*

*

2

d)

*

*

e)

Honestly, I don't know

18.
What is an algorithm?
a)
the series of steps to solve a problem or perform an action.
b)
a way in which a computer thinks
c)
a computer program
d)
a planning tool
19.
What is meant by pseudocode?
a)
simplified programming code that is not language specific, used to design algorithms.
b)
it's a type of programming language
c)
code that can be used on any type of computer
d)
a debugging tool to improve programming code
20.

If "Num1 = 3" and "Num2 = 5"


What is the output?

a)

PRINT Num2 is largest

b)

5 is largest

c)

ELSE PRINT 5 is largest

d)

PRINT 5 is largest

21.

What is a CHAR datatype?

a)

A datatype that can hold any single character.

b)

A datatype that can hold only numbers.

c)

A datatype that can be ignored.

d)

A datatype that can fit 7.

22.
What are the three main programming structures?
a)
Sequence, selection, loop
b)
Structured, object-oriented, procedural
c)
Java, Python, Visual Basic
d)
Machine, assembly, high-level
23.

Which of the following is correct Pseudocode?

a)

b)

c)

d)

24.

How in Pseudocode can we ask the user to enter a number which we save into a variable called Num1 ?

a)

b)

c)

d)

25.

Which of the following shows a correctly constructed comparision?

a)

IF temp < 15 AND raining <- True

b)

IF temp < 15 BUT raining <- True

c)

IF temp < 15 NOT raining <- True

d)

IF temp < 15 DO raining <- True