
Foundations of AI: The Quiz That Makes You Think Like a Machine
Quiz by Kansal
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
What will the following Python code output?
print(""Hello"" + "" "" + ""World"")
What is the simple definition of Artificial Intelligence (AI)?
In Python, which of the following correctly creates a list of numbers?
Look at this sequence: 2, 4, 8, 16, ? What is the next number?
If you show a computer 1000 emails labeled ""spam"" or ""not spam"" so it can learn to filter new emails, what type of machine learning is this?
How many times will the word "AI" be printed in this code?
for i in range(3): print("AI")
In Natural Language Processing (NLP), breaking a sentence into individual words is called:
You have a list: fruits = ["apple", "banana", "cherry"]. What is the index number to access the element "banana"?
What is the name for when an AI model creates factually incorrect information that sounds convincing?
What will this code print?
age = 18
if age >= 18:
print("You can vote")
else:
print("You cannot vote")
How does a computer "see" an image?
In a simple perceptron (a single neuron), you have inputs: Weather is good (1), Friends are going (1). The weights are: Weather weight = 5, Friends weight = 3. What is the sum (before activation)?
What is the purpose of a function in Python?
In traditional programming, you provide the computer with Data and Rules to get Answers. In Machine Learning, you provide the computer with Data and Answers to get:
Which of the following is a valid variable name in Python?
A sentiment analysis model gives a score of -0.8 to a product review. What does this mean?
What is the name for the basic building block of a neural network?
What will this code output?
name = "Alex"
print(f"Hello, {name}!")
ChatGPT and Gemini are examples of:
You want to find the largest number in a list [5, 2, 9, 1, 7]. What is the first step in a simple algorithm to do this?