0% found this document useful (0 votes)
296 views3 pages

Class XI Comp Sci QP

The document is a quarterly examination paper for Class 11 Computer Science. It contains 4 questions assessing Python programming concepts and skills. The questions cover topics like Python identifiers, data types, operators, conditional statements, functions and modules. Students are asked to write Python code, identify errors, evaluate expressions, find outputs, and more. The exam aims to evaluate students' understanding of core Python programming concepts.
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)
296 views3 pages

Class XI Comp Sci QP

The document is a quarterly examination paper for Class 11 Computer Science. It contains 4 questions assessing Python programming concepts and skills. The questions cover topics like Python identifiers, data types, operators, conditional statements, functions and modules. Students are asked to write Python code, identify errors, evaluate expressions, find outputs, and more. The exam aims to evaluate students' understanding of core Python programming concepts.
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
You are on page 1/ 3

JAI GURUDEV

MAHARISHI VIDYA MANDIR SR.SEC.SCHOOL,CHETPET,CH-31


QUARTERLY EXAMINATION -2020
CLASS:XI MARKS:35
SUB:COMPUTER SCIENCE TIME: 1 1/2 HRS
DATE:21.9.2020

I Answer the following:


1 a)Why Python is called an Expressive Language? (1)

b)Write any two disadvantages of Python.(2)

c)Write any two difference between compilation and interpretation.(2)

2 a)Identify the valid and invalid identifier(s) from the following. State
reason (2)

i)try ii)false iii)14rec iv)py_thon

b) What will be the size of following constants (2)

i)'Exam \k\n' ii)'com==\r\f' iii)"God is\ iv)"""God is(pressed enter)


great" great"""
c)Find the output of the following code: (2)

x,y=20,60
x,y,x=x+10,y+30,x+15
print(x,y,sep="*",end="&")

d)Find the error(s) in the following code fragment (2)

a=a+7
print(a)
b=10+9
print("b=" b)
b+10=c
a="hello"
print(a/2)

3a)Evaluate the following expressions: (1)


i) 5<10 and 10<5 or 3<18 and not 8<18
ii)True and 1==1 or not True or 1==5 and False or 0==0
b)Convert the following mathematical expression into Python
expression:(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)

b)What will be the output for the following code fragment(3)


x=10
if x>15:
if x>20:
print(len(str(18//3)))
else:
print(len(str(18/4)))
elif x<12:
if x!=0:
print(100 or len(100))
print(print(bool(None)))

c)Find the error(s) in the following code:(2)

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)

e)What is meant by empty statement.(1)

You might also like