0% found this document useful (0 votes)
3 views1 page

C9Ch 5 (B) Python ClassAssignment

This document is a class assignment for Class 9 AI at Euro International School for the session 2025-26. It includes multiple choice questions, programming tasks in Python, and questions requiring explanations and code writing. Students are instructed to follow specific guidelines while answering the questions.

Uploaded by

poojaparisaxena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

C9Ch 5 (B) Python ClassAssignment

This document is a class assignment for Class 9 AI at Euro International School for the session 2025-26. It includes multiple choice questions, programming tasks in Python, and questions requiring explanations and code writing. Students are instructed to follow specific guidelines while answering the questions.

Uploaded by

poojaparisaxena
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

EURO INTERNATIONAL SCHOOL

SESSION – 2025 - 26
CLASS – 9 th
SUBJECT – AI
Date: 30.1.26 Class Assignment – Ch-5(B)
Name: Roll No.
General Instructions:
● All the question should be written in order and write programming code in the Python
only.
SECTION-A
1 Which of the following is not a decision making statements?
a. if b. if-else c. if-elif d. for
2 Write an output of the following python code:
for i in range(1,5):
print(i, end=" ")
a. 12345 b. 1 2 3 4 5 c. 1,2,3,4 d. 1 2 3 4
3 Mention the output of the following:
x=[‘A’, 11.0, 45, 12.0]
y=x[3]
print(y)
a. ‘A’ b. 11.0 c. 45 d. 12.0
Q4 is Assertion(A) and Reason(R) based questions. Mark the correct choice as:
(A) Both A and R are true and R is the correct explanation for A
(B) Both A and R are true and R is not the correct explanation for A
(C) A is True but R is False
(D) A is False but R is True
4 Assertion(A): Arithmetic operators are used to perform operations, like addition,
subtraction, multiplication, and division.
Reason(R): The output of an operators are used to perform operations, like addition,
subtraction, multiplication, and division.
SECTION-B
Answer the following questions:
6 Differentiate the following :
a. Keyword and Identifier b. Operand and Operator
c. An expression and a statement d. interactive and script mode
e. a tuple and a list f. input() and print() function
7 What is typecasting? Explain its types?
8 Write a program to check whether the number input by the user is a palindrome or not.
9 Create a list if any 5 children names and perform the following tasks on the list in
sequence:
a. print the created list. b. delete the 3rd position name from the list.
c. add the new name at the end. d. remove the item that is at the 2nd position.
10. Write the rules for naming variables.

You might also like