Class XI Comp Sci QP
Class XI Comp Sci QP
2 a)Identify the valid and invalid identifier(s) from the following. State
reason (2)
x,y=20,60
x,y,x=x+10,y+30,x+15
print(x,y,sep="*",end="&")
a=a+7
print(a)
b=10+9
print("b=" b)
b+10=c
a="hello"
print(a/2)
i) ii)|e3-x2|
c)Write a Python program to check whether the given three digit number
is armstrong number or not (2)
d)Identify the name of the modules where the following functions are
available (2)
i)exp() ii) stdev() iii)randrange() iii)degree()
e)What will be the output for the following code fragment (3)
a=5-4-3
b= 3**2**3
print(a,b)
d=3+5/8
e=int(3+5/8)
f=int(3+5/8.0)
g=3+float(5//8)
print(d,e,f,g)
4 a)Write a Python program to print a given character is an uppercase or
a lowercase character or a digit or any other character (3)
if n==0
print("Zero")
elif:n==1
print("one")
else n==3:
print("three"")
d)Write a Python program to accept three integers and print the largest of
three.(3)