Quiz Questions
1. What is meant by a Carbon Footprint?
Answer: Environmental impact of computing devices.
2. Which of the choices listed below are components of the Digital Divide? (Select all that apply)
Answer:
Internet speeds
Digital Proficiency
Affordability of broadband and equity of broadband access across income groups
Best practices of government use of technology for public services
3. What is Open Source Software?
Answer: Software that is created collaboratively, with programmers improving the code and sharing changes within the community.
4. For which reasons can cloud computing save a business money? (Select all that apply)
Answer:
Consolidate application needs into one cloud service
Reduce system hardware costs
Avoid purchasing software
Quickly scale business operations
5. The term [____] refers to how well a hardware or software system can adapt to increased demands.
Answer: Scalability
6. List the following from MOST abstract to LEAST abstract: Software Application, Microsoft Excel, Spreadsheet software
Answer: Software Application, Spreadsheet Software, Microsoft Excel
7. Which of the following is NOT an operating system? (Select all that apply)
Answer: Java, Scratch, Python
8. A computer's performance can be affected positively by:
Answer: Increasing amount of RAM
9. What acts as a translator between hardware and software?
Answer: Device driver
10. Which of the following are tasks of an operating system? (Select all that apply)
Answer:
Controls peripheral devices (e.g., printers)
Organizes and controls hardware and software
Manages the computer's memory
Recognizes input from the keyboard
11. What distinguishes low-level programming languages from high-level languages?
Answer: Low-level languages interact more closely with hardware.
12. What is an algorithm?
Answer: A step-by-step list of instructions that, if followed exactly, will solve the problem under consideration.
13. What is the main advantage of using high-level programming languages like Python?
Answer: Easier to read, write, and maintain.
. What is a variable?
Answer: A memory location that holds a value.
8. Which of the following statements is true about high-level programming languages? (Select all that apply)
Answer: They are easy for humans to read, write, and modify.
9. Evaluate: 1.5 * 3 > 10 and 4 + 6 == 11
Answer: False
10. What will be printed when the following code segment is executed?
x = 50
y = 50
if x > 0 and y < 0:
print("RED")
else:
if y < 0:
print("GREEN")
else:
print("BLUE")
Answer: BLUE
11. Consider the following code segment:
import random
rand = random.randrange(1, 10)
print(rand)
Answer: Possible outputs: 1, 2, 3, 4, 5, 6, 7, 8, 9.
What is the largest value that can be displayed by the following code?
import random
def loop(num):
total = 0
for x in range(num):
total = total + num
return total
rand = random.randrange(1, 5)
print(loop(rand))
Answer: 16
13. What is the correct way to reference the value of pi within the math module?
Answer: math.pi
14. What is the result of "Python".upper()?
Answer: PYTHON
15. What is printed by the following code segment?
str1 = "hello"
str2 = "world"
print(str1 + str2)
Answer: helloworld
16. What does the len() function return when used with a list?
Answer: The number of items in the list.
What will be the output of the following code?
list1 = [1, 2, 6]
list1.append(3)
print(list1)
Answer: [1, 2, 6, 3]
18. What is the result of the following operation?
list1 = [1, 2, 3, 4, 5]
list1.pop(2)
Answer: [1, 2, 4, 5]
19. Why can't "class" be used as a variable name in Python?
Answer: It is a reserved keyword.
20. Do these two expressions evaluate to the same result?
(2 3) 2
2 3 2
Answer: False
21. What will be printed when the following code segment executes? (Input: 2, 3)
sum = 0
num1 = int(input("Enter a number"))
num2 = int(input("Enter a number"))
num3 = num2
sum = num3
sum = sum + num2
sum = sum + (sum - 1)
print(sum)
Answer: 11
. What is printed when the following statements are executed?
course = "CS"
course = 110
course = "Python"
print(course)
Answer: Python
2. What will be the output of the following code?
a = 5
b = 2
c = a / b
print(c)
Answer: 2.5
3. What type of error is likely to occur if the user enters a non-numeric value (e.g., a string) when prompted?
user_input = input("Enter a number: ")
result = int(user_input) * 2
Answer: ValueError
. What is the result of the following code snippet?
import turtle
t = turtle.Turtle()
t.pensize(2)
t.setposition(0,100)
for i in range(9):
t.forward(100)
t.right(30)
turtle.done()
Answer: Complex pattern without a specific shape
2. Which of the following is NOT a turtle method in Python?
Answer: turnLeft()
3. How is the turtle's drawing speed changed?
Answer: turtle.speed(5)
4. What does the line "import turtle" in Python do?
Answer: It defines the module, turtle, which allows you to create a Turtle object and draw with it.
5. Which of the following binary numbers (base 2) are multiples of 4? (Choose two answers)
Answer: 11100, 10100
1. How can the base ten number 192 be represented in binary?
Answer: 11000000
2. In which scenarios is LOSSLESS compression more appropriate than LOSSY compression? (Select all that apply)
Answer:
An image used by a radiologist to diagnose injuries
A .zip file containing your assignments
3. What is a benefit of using hexadecimal numbers instead of binary numbers?
Answer: A hexadecimal representation generally requires fewer digits than a binary representation of the same value.
4. Which of the following binary values is twice the value of the binary number 1010?
Answer: 10100
5. What is packet switching?
Answer: A method where a message is broken down into multiple parts, each sent independently, and reassembled at the destination.
6. Which of the following are examples of Asynchronous Communication? (Select all that apply)
Answer:
Text messaging
Email
7. How does Public Key Encryption work?
Answer: The sender of the encrypted message uses the receiver’s public key to encrypt the message.
8. Who is the design of the Internet basically influenced by?
Answer: Paul Baran
9. Which tool allows you to extract significant information from a large, detailed data set?
Answer: Pivot Table