CLASS 8 - ROBOTICS AND AI (Revised) - 1st Term Paper 2024-25
CLASS 8 - ROBOTICS AND AI (Revised) - 1st Term Paper 2024-25
CLASS 8 - ROBOTICS AND AI (Revised) - 1st Term Paper 2024-25
ST
1 TERM EXAMINATION –SEPTEMBER 2024-25
ROBITICS AND AI
CLASS: 8
TIME: 2 hrs. MARKS:
100
(III) Assertion (A): In Python, variables written in lower case letter and
upper-case letter are treated as same
a) Both Assertion (A) and Reason (R) are true and Reason (R) is a
correct
b) Both Assertion (A) and Reason (R) are true and Reason (R) is not
a correct
explanation of Assertion (A)
(VI) The ____________ function is used to find the data type of the
objects.
a) != b) and c) + d) +=
a) / b) // c) # d)!
a) x = y = z = 89 b) x = 6, y = 8 c) x, y, z = 1, 2, 3
d)None of these
QUESTION NO 2:-
[10x2=20]
(IV) What will be the output from the code given below:
[Analysis]
p, q, r = 10, 20, 25
q, p, r =q-3, p-5, r-2
print(p, q, r)
print(x)
print(type(x))
A=9
S='Universe'
SI=S + A
print(SI)
(IX) Predict the output of the following code:
[Analysis]
a) x= True
y= False
if not x or y:
print("Hi")
else
print("Bye")
b) a = [5, 8, 9]
print(a[2])
[Understanding]
Attempt any four questions from this Section. Each question carries 15
marks. The answers in this section should consist
QUESTION NO 3:-
Price Discount
Discount (D) based on the above criteria and print the payable
amount(P-D) after
availing discount.
[Understanding/Application]
(II) Write any 3 rules for naming an identifier. [3
marks]
[Recall ]
QUESTION NO 4:-
[Understanding/Application]
[Understanding/Application]
QUESTION NO 5: -
(I) Write a program to accept a number and print the corresponding
day of the week using if-elif-else. [9
marks]
[Understanding/Application]
(II) Input two numbers and display the bigger of the two numbers.
[3 marks]
if(var==1):
[Understanding/Application]
print(“good”)
elif(var==2):
print(“better”)
elif(var==3):
print(“best”)
else :
print(“Invalid”)
QUESTION NO 6:-
(I) a) Write a program to accept the three sides of a triangle and print
the type
of the triangle[Scalene/Isosceles/Equilateral]
[6 marks]
(An equilateral triangle has sides that are all equal. An isosceles
triangle has two
sides that are identical. In a scalene triangle, all the sides are equal)
Input: Enter the first side: 5
Enter the second side: 8
Enter the third side: 5
Output: Isosceles triangle
[Understanding/Application]
b) Write a program to accept an angle of a triangle and check if it is
an obtuse angle or acute angle or right angle.
[Understanding/Application] [3 marks]
QUESTION NO 7:-
(I) Write a menu driven program to find the volume of a sphere and
cylinder based on user’s choice.
[9 marks]
4 3
Volume of Sphere = 3 π r
Volume of Cylinder = π r 2 h
a) Input radius of sphere and find the volume.
[Understanding/Application]
[Understanding/Application]
QUESTION NO 8:-
GrossSalary= basicsalary+DA+HRA
Annualsalary=12*GrossSalary
[Understanding/Application]
(Celsius *1.8) + 32
[3 marks]
Input: 24m
[Understanding/Application]