NEW
Font size
WorksheetsASDUJIQ@41323siJDOLP@!(OPS)
Total questions: 20
Worksheet time: 10mins
Which of the following is a Command Line Interface (CLI)?
Windows 11
macOS
MS-DOS
Android
What is an advantage of CLI?
Very easy for beginners
Requires no knowledge of commands
Flexible combinations of commands
Requires a powerful GPU
What is a disadvantage of GUI?
Harder to implement and uses more memory
Requires knowledge of commands
Not user-friendly
Cannot use a mouse
Which of the following is a Menu Driven Interface (MDI)?
ATM machine
Linux Terminal
PowerShell
macOS Desktop
What is the purpose of a User Interface?
It boosts CPU processing
It allows interaction between user and computer
It installs applications
It increases RAM size
OS virtualization allows…
Only one OS to run at a time
Multiple OS to run on one physical machine
Only Windows OS to run
Applications to run faster than hardware allows
Which of the following is FREE virtualization software?
VMware Workstation (paid)
Oracle VirtualBox
macOS
Windows Sandbox
Type I Hypervisor is also known as…
Hosted hypervisor
Bare-metal hypervisor
Guest hypervisor
CLI hypervisor
Which advantage is related to virtualization?
Requires many physical servers
No resource sharing
Live migration & snapshots
Cannot run multiple OS
Which is a disadvantage of virtualization?
High hardware utilization
Performance overhead
Better security
Energy savings
What is the output of this pseudocode? x = 10 if x > 5: print("BIG") else: print("SMALL")
Error
SMALL
BIG
Nothing
What is the output of the flowchart when input Num = 10? (From your slides: Category A)
Print “Positive”
Print “Negative”
Print “Zero”
Print “Odd number”
Evaluate this condition: ( price > 100 ) AND ( tagcolor == "red" ) If the price is 120 and tagcolor is "red", the condition is:
TRUE
FALSE
Cannot determine
Syntax error
Which of the following is a pre-test loop?
do-while
for
while
repeat-until
How many times will the loop run? count = 0 while count < 5: count = count + 1
4
5
6
Infinite loop
Calculate the output: sum = 0 inputs = 20, 30, 40 for each n in inputs: sum = sum + n print(sum)
20
30
90
110
What is the lastNumber using: count = 20 lastNumber = 2 * count – 1
19
20
39
41
In the sentinel loop, what is the sum for inputs: 10, 5, 15, 0
25
30
15
20
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 )
945
189
9450
315
For loop calculation: sum = 0 for i in range(1, 6): sum = sum + i print(sum)
10
15
30
21
