0% found this document useful (0 votes)
2 views12 pages

Quizzes Programming and Computing Review

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

Quizzes Programming and Computing Review

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

QUIZZES

A. 32
B. 5

COMPILATION;
C. 3 + 2
D. Error

PRORAMMING 7. What type of data is "Hello" in most


programming languages?
AND A. Integer
B. Boolean
COMPUTING C. String
D. Float

8. What does a loop do in programming?


Introduction to Programming: Basic Quiz
A. Stops the program
(20 Items)
B. Runs code repeatedly
1. What is programming? C. Deletes variables
A. Designing a website D. Encrypts data
B. Writing instructions for a computer
9. What is an algorithm?
C. Building hardware
A. A programming language
D. Watching tutorials
B. A social media tool
2. Which of the following is a C. A set of steps to solve a problem
programming language? D. A bug in the code
A. HTML
10. What does "compile" mean?
B. Python
A. To send an email
C. Excel
B. To format text
D. Google
C. To convert code into machine-readable
3. What does “syntax” refer to in format
programming? D. To repeat code
A. The meaning of code
11. Which of the following is used to
B. The rules for writing code
make decisions in code?
C. The color of code
A. Loop
D. The speed of code
B. Variable
4. What is a variable used for? C. If-else statement
A. To make code faster D. Print function
B. To display output
12. What is the correct way to declare a
C. To store data
variable in Python?
D. To compile the program
A. int x = 5;
5. Which symbol is used for single-line B. x : 5
comments in Python? C. x = 5
A. // D. var x = 5
B. <!-- -->
13. What does IDE stand for?
C. #
A. Internal Device Editor
D. /* */
B. Integrated Development Environment
6. What is the output of this Python C. Independent Debugging Engine
code: print(3 + 2)? D. Internet Data Encoder
14. Which of the following is NOT a data ✅ Answer Key
type?
A. String 1. B – Writing instructions for a
B. Boolean computer
C. Integer 2. B – Python
D. Syntax
3. B – The rules for writing code
15. What is debugging?
A. Writing comments 4. C – To store data
B. Adding more variables 5. C – #
C. Fixing errors in the code
D. Compressing files 6. B – 5

16. What does the print() function do? 7. C – String


A. Saves the file
8. B – Runs code repeatedly
B. Executes the loop
C. Displays output 9. C – A set of steps to solve a
D. Declares a variable problem

17. What is the value of len("Hello") in 10. C – To convert code into machine-
Python? readable format
A. 4
11. C – If-else statement
B. 5
C. 6 12. C – x = 5
D. Error
13. B – Integrated Development
18. What is an error in a program called? Environment
A. Hack
B. Loop 14. D – Syntax
C. Bug 15. C – Fixing errors in the code
D. Comment
16. C – Displays output
19. What keyword is used to start a loop
in Python? 17. B – 5
A. loop 18. C – Bug
B. while / for
C. start 19. B – while / for
D. run 20. C – To organize blocks of code
20. What is the purpose of indentation
in Python?
A. To make code colorful
B. To slow down execution
C. To organize blocks of code
D. To rename functions
Introduction to Programming: Quiz #2 A. The answer is 0
(Basics) B. The program crashes or gives an error
C. It becomes infinity
1. What does a computer program do?
D. It loops forever
A. Plays games
B. Tells the computer what to do 9. What does int() do in Python?
C. Draws pictures A. Converts text to uppercase
D. Writes its own code B. Converts a number to a string
C. Converts data to an integer
2. Which of the following is used to
D. Prints the output
repeat a block of code?
A. Variable 10. Which of the following is used to
B. Function group code in Python?
C. Loop A. Brackets {}
D. Input B. Indentation
C. Parentheses ()
3. What does input() do in Python?
D. Semicolon
A. Exits the program
B. Displays output 11. What is the result of 3 * 2 + 4?
C. Takes user input A. 10
D. Adds two numbers B. 14
C. 8
4. What does the term "function" mean
D. 6
in programming?
A. A storage space 12. What is a comment used for in code?
B. A loop A. To make code faster
C. A named block of reusable code B. To store user input
D. A comment C. To explain the code
D. To delete bugs
5. What is a constant?
A. A variable that changes 13. Which of the following is an
B. A loop that runs forever arithmetic operator?
C. A value that doesn’t change A. ==
D. An error message B. if
C. +
6. Which of these is an example of a
D. and
Boolean value?
A. "True" 14. What keyword is used to define a
B. True function in Python?
C. "Yes" A. define
D. 1.0 B. function
C. def
7. What is the extension of a Python file?
D. func
A. .txt
B. .exe 15. What is the correct syntax to write
C. .html an if-statement in Python?
D. .py A. if x > 10 then:
B. if (x > 10) {
8. What happens if you divide by zero in
C. if x > 10:
most programming languages?
D. if: x > 10
16. What does the term "debugging" ✅ Answer Key (Quiz #2)
involve?
A. Typing faster 1. B – Tells the computer what to do
B. Coloring code 2. C – Loop
C. Finding and fixing errors
D. Updating software 3. C – Takes user input

17. Which of the following is NOT a valid 4. C – A named block of reusable


variable name? code
A. age 5. C – A value that doesn’t change
B. 2value
C. name_1 6. B – True
D. totalScore
7. D – .py
18. What does str() do in Python?
8. B – The program crashes or gives
A. Makes a string lowercase
an error
B. Converts a value to string
C. Reverses a string 9. C – Converts data to an integer
D. Starts a loop
10. B – Indentation
19. What is a syntax error?
11. A – 10
A. A math error
B. A hardware issue 12. C – To explain the code
C. Mistake in code structure
D. Slow code execution 13. C – +

14. C – def
20. Why do we indent code inside an if
or loop in Python? 15. C – if x > 10:
A. To make the code colorful
B. Python requires it to know what 16. C – Finding and fixing errors
belongs to the block 17. B – 2value
C. To make it longer
D. To comment it out 18. B – Converts a value to string

19. C – Mistake in code structure

20. B – Python requires it to know


what belongs to the block
Intro prog; Level-Up Quiz (10 Items) A. catch
B. throw
1. What is the difference between a list
C. except
and a tuple in Python?
D. handle
A. Lists are immutable, tuples are
mutable 8. In object-oriented programming, what
B. Lists are mutable, tuples are is a class?
immutable A. A loop that never ends
C. Both are immutable B. A blueprint for creating objects
D. Both are mutable C. A type of variable
D. A comment in the code
2. What is recursion in programming?
A. A loop inside a loop 9. What will this code output?
B. A function calling itself
for i in range(3):
C. A syntax error
D. A way to exit a loop print(i)
3. What is the output of this code: A. 1 2 3
print(type(3.0)) B. 0 1 2
A. <class 'int'> C. 0 1 2 3
B. <class 'float'> D. 1 2
C. <class 'double'>
D. Error 10. What is the difference between =
and == in Python?
4. Which of the following is an example A. Both assign values
of a logical operator in Python? B. = compares, == assigns
A. + C. = assigns, == compares
B. = D. They are interchangeable
C. and
D. % ✅ Answer Key (Level-Up Quiz)

5. What is the purpose of the return 1. B – Lists are mutable, tuples are
statement in a function? immutable
A. To exit the program 2. B – A function calling itself
B. To print a value
C. To give a value back to the caller 3. B – <class 'float'>
D. To define a variable
4. C – and
6. What is the output of this code?
5. C – To give a value back to the
x = [1, 2, 3] caller

print(x[1]) 6. B – 2

A. 1 7. C – except
B. 2
8. B – A blueprint for creating
C. 3
objects
D. Error
9. B – 0 1 2
7. Which keyword is used to handle
exceptions in Python? 10. C – = assigns, == compares
Introduction to Programming: Level- A. 1 2 3
Up Quiz (Set 2) B. 0 1 2 3
C. 1 2 3 4
1. What will this code output? D. 0 1 2

python 6. What is a module in Python?


Copy code A. A comment block
x = 10 B. A type of loop
if x > 5 and x < 15:
print("Yes")
C. A file containing Python code
else: D. An error message
print("No")
7. Which function gets the number
A. Yes of items in a list?
B. No A. size()
C. x B. length()
D. Error C. len()
D. count()
2. What does this code return?
8. What does None mean in Python?
def add(a, b): A. Zero
B. False
return a + b C. No value / Null
print(add(2, 3))
D. An empty string

A. 2 9. What is string concatenation?


B. 3 A. Splitting a string
C. 5 B. Comparing two strings
D. a + b C. Joining two strings together
D. Repeating a string
3. Which of the following is a
correct way to create a dictionary in 10. Which of the following is used to
Python? define a class in Python?
A. dict = [1: "a", 2: "b"] A. create
B. dict = {1: "a", 2: "b"} B. define
C. dict = (1: "a", 2: "b") C. new
D. dict = <1: "a", 2: "b"> D. class

4. What does break do in a loop? Answer Key – Level-Up Quiz


A. Pauses the loop (Set 2)
B. Ends the program
C. Exits the loop early 1. A – Yes
D. Skips one loop cycle ➤ Condition is true: 10 is
greater than 5 and less than 15.
5. What is the output of this code? 2. C – 5
➤ The function add(2, 3)
for i in range(1, 4): returns 2 + 3.
3. B – dict = {1: "a", 2:
print(i, end=" ") "b"}
➤ This is the correct syntax 💻 Basics of Computing: 20-Item Quiz
for creating a dictionary.
1. What does CPU stand for?
4. C – Exits the loop early
A. Central Processing Unit
➤ break ends the loop
B. Computer Power Unit
immediately.
C. Control Panel Unit
5. A – 1 2 3
D. Core Processing Unit
➤ range(1, 4) gives: 1, 2, 3
(and end=" " prints them on
the same line).
6. C – A file containing Python 2. Which of the following is an example
code of hardware?
➤ A module is a Python file A. Microsoft Word
you can import. B. Operating System
7. C – len() C. Monitor
D. Google Chrome
➤ len() returns the number
of items in a list, string, etc.
8. C – No value / Null
➤ None means "nothing" or 3. What is the main function of RAM in a
"no value assigned." computer?
9. C – Joining two strings A. Store permanent files
together B. Run programs and store temporary
➤ Example: "Hello" + data
"World" becomes C. Improve screen resolution
"HelloWorld". D. Control internet access
10. D – class
➤ Python uses the class
keyword to define a class. 4. What type of software is an operating
system?
A. Application software
B. System software
C. Utility software
D. Browser software

5. Which of the following is an input


device?
A. Printer
B. Scanner
C. Speaker
D. Monitor

6. What is the function of a hard drive?


A. Increase internet speed
B. Print documents
C. Store data permanently C. Graphical User Interface
D. Run system updates D. Graphic Use Interface

7. Which of the following is an example 13. Which component allows the


of an operating system? computer to connect to a network?
A. Chrome A. Motherboard
B. Windows B. Graphics Card
C. Photoshop C. Network Interface Card (NIC)
D. Excel D. CPU

8. Which unit of measurement is the 14. What does software refer to?
smallest? A. Physical parts of the computer
A. Megabyte B. The screen
B. Gigabyte C. Programs and operating systems
C. Terabyte D. Cooling devices
D. Kilobyte

15. What is the purpose of antivirus


9. What does the term “bit” stand for? software?
A. Binary digit A. Speed up internet
B. Byte of information B. Protect from malware and viruses
C. Built-in technology C. Install hardware drivers
D. Bitrate transfer D. Create backups

10. What part of the computer connects 16. What is the main function of a
all components together? browser?
A. RAM A. Store files
B. CPU B. Write code
C. Motherboard C. Access websites on the internet
D. Keyboard D. Edit photos

11. Which of the following is not a type 17. Which of the following is volatile
of computer? memory?
A. Desktop A. Hard Drive
B. Tablet B. USB Flash Drive
C. Smartphone C. CD-ROM
D. Charger D. RAM

12. What does GUI stand for? 18. What does URL stand for?
A. General User Interface A. Unique Resource Log
B. Graphic Unit Integration B. Uniform Resource Locator
C. Universal Resource Loader Basics of Computing: Level-Up Quiz (10
D. Unified Retrieval Language Items)

1. Which of the following best describes


the role of an operating system?
19. Which of the following is used to
A. It stores all files on the hard drive
store data externally?
B. It runs games and other apps
A. CPU
C. It manages hardware and software
B. RAM
resources
C. SSD
D. It cleans the computer’s memory
D. Power Supply

2. What is cloud storage?


20. What is the binary number system
A. A device that floats
based on?
B. Online storage accessible via the
A. 0 to 9
internet
B. 1 to 10
C. A hidden part of your hard drive
C. 0 and 1
D. An advanced USB drive
D. 2 to 9

Answer Key – Basics of 3. Which of the following is NOT an


Computing (20 Items) example of application software?
A. Microsoft Excel
1. A – Central Processing Unit B. VLC Media Player
2. C – Monitor C. Android OS
3. B – Run programs and store D. Google Chrome
temporary data
4. B – System software
5. B – Scanner
6. C – Store data permanently 4. Which device translates digital signals
7. B – Windows into sounds we can hear?
8. D – Kilobyte A. Microphone
9. A – Binary digit B. Speaker
10. C – Motherboard C. Scanner
11. D – Charger D. Webcam
12. C – Graphical User Interface
13. C – Network Interface Card
(NIC) 5. What is phishing in cybersecurity?
14. C – Programs and operating A. Testing a computer's performance
systems B. A hacking method to steal information
15. B – Protect from malware and via fake emails or links
viruses C. Protecting data with a firewall
16. C – Access websites on the D. Scanning for viruses
internet
17. D – RAM
18. B – Uniform Resource Locator
19. C – SSD 6. What is a file extension used for?
20. C – 0 and 1 A. To decorate filenames
B. To sort files alphabetically
C. To identify a file’s type or format ✅ Answer Key – Basics of Computing
D. To compress file size (Level-Up Quiz)

1. C – It manages hardware and


software resources
7. What is the main advantage of using
an SSD over an HDD? 2. B – Online storage accessible via
A. SSDs are cheaper the internet
B. SSDs are slower
C. SSDs have moving parts 3. C – Android OS
D. SSDs are faster and more durable 4. B – Speaker

5. B – A hacking method to steal


8. What does multitasking mean in information via fake emails or
computing? links
A. Running a single program repeatedly 6. C – To identify a file’s type or
B. Installing software format
C. Running multiple programs at once
D. Typing and clicking only 7. D – SSDs are faster and more
durable

8. C – Running multiple programs at


9. Which part of a computer is once
responsible for displaying graphics and
images? 9. C – GPU
A. CPU 10. C – Starting up the computer
B. NIC
C. GPU
D. BIOS

Advanced Beginner Computing Quiz (10


10. What does “booting” a computer Items)
mean?
1. Which protocol is primarily used to
A. Deleting all files
transfer web pages over the internet?
B. Installing a new app
A. FTP
C. Starting up the computer
B. HTTP
D. Cleaning system memory
C. IP
D. SMTP

2. What is the purpose of a firewall in


computer networks?
A. To speed up downloads
B. To manage storage
C. To block unauthorized access
D. To cool down the CPU
3. Which of the following IP addresses is 8. Which storage type is non-volatile and
valid? has no moving parts?
A. [Link] A. RAM
B. [Link] B. SSD
C. [Link] C. CD-ROM
D. 192.168.-1.0 D. Cache

4. What is the function of the BIOS in a 9. What does "open-source software"


computer? mean?
A. Launching applications A. It's only available offline
B. Managing cloud storage B. It costs money to access
C. Starting up hardware before OS loads C. Anyone can view and modify its source
D. Connecting to Wi-Fi code
D. It runs on Windows only

5. Which type of malware locks a user's


files and demands payment? 10. Which of the following file types is
A. Worm commonly associated with spreadsheet
B. Adware software?
C. Spyware A. .docx
D. Ransomware B. .exe
C. .pptx
D. .xlsx
6. What does VPN stand for and what is
its main purpose?
A. Virtual Private Network – to protect ✅ Answer Key – Advanced Beginner
privacy and encrypt data Computing Quiz
B. Variable Port Node – to improve game
speed 1. B – HTTP
C. Verified Protocol Network – to block ➤ Used to transfer web pages
pop-ups over the internet.
D. Virtual Performance Net – for boosting 2. C – To block unauthorized access
CPU speed
➤ A firewall monitors and
controls network traffic.

7. What is the main purpose of the DNS 3. C – [Link]


(Domain Name System)? ➤ A valid IP address (values must
A. To translate IP addresses into human- be between 0–255).
readable website names
4. C – Starting up hardware before
B. To store web pages
OS loads
C. To connect Bluetooth devices
D. To block harmful websites ➤ BIOS initializes hardware
during the boot process.
5. D – Ransomware
➤ Locks files and demands
payment to restore access.

6. A – Virtual Private Network – to


protect privacy and encrypt data
➤ VPNs secure your internet
connection.

7. A – To translate IP addresses into


human-readable website names
➤ DNS lets you access websites
by name instead of IP.

8. B – SSD
➤ Non-volatile storage with no
moving parts (faster and more
durable).

9. C – Anyone can view and modify


its source code
➤ Open-source software
promotes collaboration and
transparency.

10. D – .xlsx
➤ File format used by Microsoft
Excel and other spreadsheet
software.

You might also like