Aisv6 Xi Ut1 Cs
Aisv6 Xi Ut1 Cs
COMPUTER SCIENCE
CLASS XI
ASSESSMENT I
MM : 30 marks
Important instructions
Each part has its set of instructions. Please read them carefully
For the option mention the choice being attempted
Save your file by your name.pdf and then upload
Adhere to time deadlines
i) x**y//z
i) //
ii) **
iii) and
iv) not
13) Write a single line statement to assign value 100,200,400 to variables y,x and z
15) print(len(str(19.0//3)))
17) a=4+9j
print(_________ ) #Fill in the blank to print the real and imaginary part of a
separately
18) Type of variable is assigned at run time in Python…. This concept is known as
________________
20) Show type promotion and type casting through python examples
21) Write a Python program to calculate the compound interest. The principal, rate of
interest and time must be entered by the user.
(Formula: Compound Interest = Principal (1 + Rate/100)Time )
OR
21) Write a Python Program to find area and volume of a cylinder
Area = 2πr (h + r)
Volume = πr2 × h
22) Each statement in the below given code has an error. Mention the error and rewrite
the code after correction
4+2.9=a #Statement 1
print A #Statement 2
b=14%0 #Statement 3
c=”92”*2.0 #Statement 4
24) print(15==15.0)
print(15.0 is 15)
show different results
What are the results and give your reasons for the same
OR
25) Write a python code to find if a three digit number is a palindrome (No if statement
is to be used)
Palindromes are numbers which when reversed are the same Example 121
Answer should be True or False
OR