Who is known as the “Father of Computing”?
Charles Babbage
What is the primary function of a CPU in a computer?
What is to process instructions and perform calculations?
This programming language is known for its simplicity and is often used as a beginner's language for teaching programming.
What is Python?
Where are errors displayed in read text displayed after running a program with bugs in it?
What programming language, developed in the 1950s, is known as the first high-level programming language?
Fortran
Name the component responsible for rendering images and videos to the display.
What is the GPU (Graphics Processing Unit)?
What is the name of the language often used to build interactive websites and is commonly abbreviated as JS?
What is JavaScript?
What is there error in this code snippet?
message = "Hello, World!
print(message)
What is string declaration? (or similar answer, it's missing a quote)
Who invented the World Wide Web?
Tim Berners-Lee
This type of memory is volatile and loses its contents when the computer is turned off.
What is RAM (Random Access Memory)?
What language is known for its use in web development, particularly for building the structure of web pages?
What is HTML (Hypertext Markup Language)
Why is this code snippet outputting 1?
r = 7 % 3
print(r)
output: 1
What is a modulus operator?
Who was the first Computer Scientist?
Gottfried Wilhelm Leibniz
What does BIOS stand for?
What is Basic Input/Output System?
Which language, created by Microsoft, is commonly used for developing Windows applications and is known for its use in .NET framework?
What is C#?
Why is the below code snippet causing an error?
def square(num):
return num1 + num2
print(square(4))
What is an undeclared variable (num1 and num2)?
Who coined the term “bug”?
Grace Hopper
This type of storage device uses flash memory and has no moving parts, making it faster than a traditional hard drive.
What is an SSD (Solid State Drive)?
This language is named after a famous inventor and is used to create mobile applications for iOS devices.
What is Swift?
def fizz_buzz(n):
# Declare a list of strings to store the results
result = []
# Loop from 1 to n (inclusive)
for i in range(1, n + 1):
# Check if i is divisible by both 3 and 5
if i % 3 == 0 and i % 5 == 0:
# Add "FizzBuzz" to the result list
result.append("FizzBuzz")
# Check if i is divisible by 3
elif i % 3 == 0:
# Add "Fizz" to the result list
result.append("Fizz")
# Check if i is divisible by 5
elif i % 5 == 0:
# Add "Buzz" to the result list
result.append("Buzz")
else:
# Add the current number as a string to the
# result list
result.append(str(i))
# Return the result list
return result
# Driver code
n = 20
# Call the fizz_buzz function to get the result
result = fizz_buzz(n)
# Print the result
print(' '.join(result))
What is
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz