Answer Key
Answer Key
1. b) Artificial Intelligence
2. d) main
3. c) for i in range(10):
4. b) Data Acquisition
5. a) .py
6. d) Sorting emails as spam or not spam
7. b) input()
8. b) Creating algorithms to solve problems
9. a) HelloWorld
10. b) Problem Scoping
Section C: Short Answer Questions (3 Marks each)
python
python
x = 10
y = 5
print(x + y)
print(x * y)
Output:
15
50
python
python
python
a = 5
b = 10
a, b = b, a
print("a =", a)
print("b =", b)
python
numbers = [int(x) for x in input("Enter numbers
separated by spaces: ").split()]
largest = max(numbers)
print(f"The largest number is {largest}")