0% found this document useful (0 votes)
47 views2 pages

XI CS PT-1 Sample Paper-II

The document is a sample exam paper for class 11 computer science. It contains 5 questions with multiple parts about Python programming concepts like data types, operators, comments, variables, conditionals, loops, functions and input/output. The questions test knowledge of syntax, writing programs to solve problems, and evaluating expressions.

Uploaded by

manisha.e08
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)
47 views2 pages

XI CS PT-1 Sample Paper-II

The document is a sample exam paper for class 11 computer science. It contains 5 questions with multiple parts about Python programming concepts like data types, operators, comments, variables, conditionals, loops, functions and input/output. The questions test knowledge of syntax, writing programs to solve problems, and evaluating expressions.

Uploaded by

manisha.e08
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/ 2

Sample Paper-II

PERIODIC TEST - 1

CLASS – XI

SUBJECT - COMPUTER SCIENCE

Time : 1 Hrs 30 Mins Max marks : 50

Q1. (a) Write any four features of Python. 2

(b) What are the two ways to use Python interpreter? 2

(c) Write any four basic numeric data types used in Python. 2

(d) Write a program that asks two people for their names; stores the names in variables called 2

Name1 and Name2; says hello to both of them

(e) What are the rules for naming an identifier. 2

Q2. (a) What is comment? Which operator is used to write comment in Python? Give example. 2

(b) Write any two-assignment statement to assign float and string value. 2

(c) What are different arithmetic operators used in Python? 2

(d) Write the precedence of operators used in Python. 4

Q3. (a) Write following arithmetic expressions using operators in Python: 4

(i)
(ii) x = a3 + b3 + c3

(iii) (iv)

(b) Evaluate the following expression with precedence of operator: 2

X = 2* 3/ 5 + 10 //3 - 1

(c) Explain if…else statement with the help of an example. 3

(d) Write statement in Python to find absolute value of -100. 1

Q4. (a) Write a program to find maximum of 3 numbers using nested if..else statement. 3

(b) Write a program to input values for Principle, rate and Time and calculate compound interest. 3

(c) Write a program to input age of a person and print message “Eligible to Vote” if age is more

than 18 otherwise print message “not eligible to Vote”. 2

(d) Write a program to check whether the entered number by user is even or odd. 2

Q5. (a) Find the output : 2


x, y =10, 15

if (x >= y):

z=x+y

else:

z = x -y

z = z ** 2

print “result =“, z

(b) Rewrite the following program after finding and correcting syntactical errors and underlining it. 2

a,b = 0

if (a = b)

a +b = c

print z

(c) What will be the output of the following code: 2

A = 3 – 4 + 10

B=5*6

C = 7.0/2.0

D = “Hello” * 3

print “Value are :“, A. B, C, D

(d) Write a program that takes name of student, marks (out of 100) of 3 subjects from user and

calculate total marks, percentage and grade as per the following criteria: 4

percentage Grade

>=75 A

>=60 and <75 B

<60 C

You might also like