Annual Examination (Practical), 2020-21
Class IX
Subject: Artificial Intelligence Max. Marks: 50
SECTION A: PYTHON PROGRAMS
Q – 1 Write the following python programs on Python IDLE: 15
1. Write a program to calculate distance using this formula: distance = ut+1/2at2
2. Write a program to compute incentive for salesmen based on their sales amount given in
the following table:
Sales Amount Bonus
0-1000 3%
1001-3000 5%
3001-5000 8%
5001-8000 10%
8001-10000 15%
3. Write a program to print a series of odd numbers between a specific range. Ask use to
enter starting value and ending value.
Q – 2 Written Test: 10
1. Which of the following operator is relational operator?
a. // b. = c. == d. **
2. What is the output of following line:
a=5
print(a**3+5/5) ?
a. 125 b. 126 c. 127 d. 130
3. You can start a variable with a number and alphabet in python. (True/False)
4. Which of the following is not a valid python variable?
a. _mynum = 3 c. mynum = 3
b. my num =3 d. MyNum = 3
5. The reserved words from python in python program is called ____________.
6. What will the output of the following code fragment when the input is 7, 5, and 11?
if month>=6 and month<=9:
print("Term - I")
elif month>=10 and month<=3:
print("Term - II")
else:
print("Vacation")
7. Name the iterative statements available in python.
8. Divya is working on python program where she need to store number of days in a month
in a variable no_of_days. Suggest her python statement to do this.
9. Write python code to print “Annual Exam 2021” 10 times using while loop.
10. Write python code to print “Annual Exam 2021” 10 times using for loop.
Q – 3 Viva based on Practical 10
Q – 4 Practical File Submission 10
Q – 5 Viva based on Practical File 5