wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ASDUJIQ@41323siJDOLP@!(OPS)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is a Command Line Interface (CLI)?

a)

Windows 11

b)

macOS

c)

MS-DOS

d)

Android

2.

What is an advantage of CLI?

a)

Very easy for beginners

b)

Requires no knowledge of commands

c)

Flexible combinations of commands

d)

Requires a powerful GPU

3.

What is a disadvantage of GUI?

a)

Harder to implement and uses more memory

b)

Requires knowledge of commands

c)

Not user-friendly

d)

Cannot use a mouse

4.

Which of the following is a Menu Driven Interface (MDI)?

a)

ATM machine

b)

Linux Terminal

c)

PowerShell

d)

macOS Desktop

5.

What is the purpose of a User Interface?

a)

It boosts CPU processing

b)

It allows interaction between user and computer

c)

It installs applications

d)

It increases RAM size

6.

OS virtualization allows…

a)

Only one OS to run at a time

b)

Multiple OS to run on one physical machine

c)

Only Windows OS to run

d)

Applications to run faster than hardware allows

7.

Which of the following is FREE virtualization software?

a)

VMware Workstation (paid)

b)

Oracle VirtualBox

c)

macOS

d)

Windows Sandbox

8.

Type I Hypervisor is also known as…

a)

Hosted hypervisor

b)

Bare-metal hypervisor

c)

Guest hypervisor

d)

CLI hypervisor

9.

Which advantage is related to virtualization?

a)

Requires many physical servers

b)

No resource sharing

c)

Live migration & snapshots

d)

Cannot run multiple OS

10.

Which is a disadvantage of virtualization?

a)

High hardware utilization

b)

Performance overhead

c)

Better security

d)

Energy savings

11.

What is the output of this pseudocode? x = 10 if x > 5: print("BIG") else: print("SMALL")

a)

Error

b)

SMALL

c)

BIG

d)

Nothing

12.

What is the output of the flowchart when input Num = 10? (From your slides: Category A)

a)

Print “Positive”

b)

Print “Negative”

c)

Print “Zero”

d)

Print “Odd number”

13.

Evaluate this condition: ( price > 100 ) AND ( tagcolor == "red" ) If the price is 120 and tagcolor is "red", the condition is:

a)

TRUE

b)

FALSE

c)

Cannot determine

d)

Syntax error

14.

Which of the following is a pre-test loop?

a)

do-while

b)

for

c)

while

d)

repeat-until

15.

How many times will the loop run? count = 0 while count < 5: count = count + 1

a)

4

b)

5

c)

6

d)

Infinite loop

16.

Calculate the output: sum = 0 inputs = 20, 30, 40 for each n in inputs: sum = sum + n print(sum)

a)

20

b)

30

c)

90

d)

110

17.

What is the lastNumber using: count = 20 lastNumber = 2 * count – 1

a)

19

b)

20

c)

39

d)

41

18.

In the sentinel loop, what is the sum for inputs: 10, 5, 15, 0

a)

25

b)

30

c)

15

d)

20

19.

Trace the loop: product = 1 number = 1 lastNumber = 9 while number <= 9: product = product * number number = number + 2 What is product? ( Calculation: 1 × 1 × 3 × 5 × 7 × 9 )

a)

945

b)

189

c)

9450

d)

315

20.

For loop calculation: sum = 0 for i in range(1, 6): sum = sum + i print(sum)

a)

10

b)

15

c)

30

d)

21