0% found this document useful (0 votes)
14 views6 pages

Quiz

Uploaded by

vanilla020901
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views6 pages

Quiz

Uploaded by

vanilla020901
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Quiz: Binary Numbers, System Software, and Utility Programs

Section 1: Binary Numbers (20 Minutes)


1. Denary to Binary Conversion (5 questions)
Convert the following denary numbers to 8-bit binary:
a) 13 0000 1101
b) 45 0010 1101
c) 128 10000000
d) 255 11111111
e) 7 0000 0111
2. Binary to Denary Conversion (5 questions)
Convert the following binary numbers to denary:
a) 1101: 13 (base 10)
b) 101010: 42 (base 10)
c) 10000000: 128 (base 10)
d) 11111111: 255 (base 10)
e) 00001111: 15 (base 10)
3. Place Value in Binary (4 questions)
For each binary number below, break it down into its place values:
a) 1101
b) 1010
c) 1001
d) 0110
Fill in the table:
2^7 2^6 2^5 2^4 2^3 2^2 2^1 2^0
1101 0 0 0 0 1 1 0 1
1010 0 0 0 0 1 0 1 0
1001 0 0 0 0 1 0 0 1
0110 0 0 0 0 0 1 1 0
010111 0 1 0 1 1 1 1 1
11
101101 0 0 1 0 1 1 0 1

4. Write the following denary numbers as place values (denary system):


a) Nine thousand
b) Nine hundred and nine
c) Seven thousand nine hundred and nine
d) Seventy-four

10 ^ 3 10 ^ 2 10^1 10^0
9000 9 0 0 0
999 0 9 9 9
7999 7 9 9 9
74

9000 = 9000 + 000 + 00 + 0 = 9 * 10^3 + 0 * 10^2 + 0 * 10^1 + 0 * 10^0


74 = 70 + 4 = 7 x 10^1 + 4 x 10^0
For each, show the place values for Thousands, Hundreds, Tens, and Ones:
Section 2: System Software and Utility Programs (20 Minutes)
1. Write definitions for these keywords:
 Operating system:
 Utility program:
 System software:
 Interface:
2. Name three utility programs that help PC users manage their
devices:
Antivirus, compression software, defragmentation, firewall, disk manager, task
manager.

3. List four tasks that the operating system carries out:


Security, Input/Outpur, Memory management, Process management
Process management describes the role of OS to assign different
tasks/programs to CPU to ensure many programs can run at the same time
4. Give two examples of each of the following:
a) Application software you have used in school
Chrome (Browser), Word, Excel, PowerPoint, Discord, Genshin Impact
b) An operating system you have used on a digital device at home or in school

Microsoft Windows, iOS (phones), macOS (pc, laptops), Android, Linux

Section 3: Binary additions


1. Binary Addition (3 questions)
Add the following binary numbers:

a) 1011 + 1101 (1+1 = 10) 10 + 1 =11


111
1011
1101
11000
b) 1001 + 0110
c) 1111 + 0001

Section 3: Pseudocode (20 Minutes)


1. Write pseudocode for a program that:
a) Asks the user to input two numbers and prints the larger of the two.
2. Write pseudocode to calculate the area of a triangle.
The program should ask for the length and height of the rectangle and then output
the area.
3. Write pseudocode to simulate a simple ATM withdrawal process.
 The program should ask the user for the amount they want to withdraw.
 Check if the amount is available in their balance (assume a balance of $500).
 If enough balance exists, deduct the amount and print the new balance.
 Otherwise, print a message saying "Insufficient funds."
4. Write pseudocode for a program that prints "Even" if a number entered
by the user is even, and "Odd" if the number is odd.
5. Write pseudocode for a simple password-checking program.
 The program should ask the user to enter a password.
 If the password is "password123", display "Access Granted".
 If the password is incorrect, display "Access Denied".
6. Create a pseudocode program that calculates the total cost of items in a
shopping cart.
 The user enters the price of each item (assume the user can enter up to 5
items).
 The program calculates the total and prints it.

Base 10
0 1 2 3 4 5 6 7 8 9 10 19 20 99 100 999 100
10 numbers before increasing number of digits

Base 2
0 1 10 11 100 101 110 111 1000
2 numbers before increasing number of digits

Base 8
0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 20 …. 67 70 71 72 73 74 75 77 100 … 777
1000
8 numbers before increasing number of digits

7 |_ 2
1 | 3 |_ 2
1 | 1 |_ 2
1|0

0000 0111

2 |_ 2
0 | 1 |_ 2
1|0
10

11 |_ 2
1 | 5 |_ 2
1| 2 |_ 2
0| 1 |_ 2
1|_0
1011
128 |_ 2
0 | 64 |_2
0 | 32 |_ 2
0 | 16 |_ 2
0 | 8 |_ 2
0 | 4 |_ 2
0 | 2 |_ 2
0 | 1 |_ 2
1|0
10000000

START
INPUT number1
INPUT number2
IF number1 > number2:
OUTPUT number1
ELSE
OUTPUT number2
ENDIF
END

You might also like