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

CLASS 11 pt2

fhbgch fghfhfh

Uploaded by

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

CLASS 11 pt2

fhbgch fghfhfh

Uploaded by

Priya Darshini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ACADEMIC YEAR 2024-25

CLASS : XI PERIODIC TEST 2 MARKS : 40


DATE :28 -08-24 SUBJECT: COMPUTER SCIENCE DURATION : 90mts
Section A
1 Which of the following is/are character set? [1]
a) White spaces b) Alphabets
c) Digits d) All of these
2 The extension of Python files is [1]
a) .py b) .p
c) .python d) .pyth
3 Choose the correct syntax for printing values in the same line. [1]
a) print(a)print(b) b) print(a,b)
c) print(a, end=" ",b) d) print (a,end="$",b)
4 Python was initially designed by [1]
a) Charles Babbage b) Guido Van Rossum
c) Dennis Ritchie d) Grace Hopper
5 Which comments start with # symbol? [1]
a) Double line b) Multi - line
c) Single line d) Triple line
6 What is the output of following code? [1]
a = 10
print("Value of a is:", a + 10 * 2)
7 How many keywords are there in Python programming? [1]
8 Can keywords be used as identifier? [1]
9 Which of the following are sequenceof character data? [1]
a) Lists b) Dictionaries
c) Tuples d) Strings
10 Which of the following operators is the correct option for power(ab)? [1]
a) a**b b) a ^ ^ b
c) a ^ b d) a ^ * b
11 What are the different number datatypes in Python? [1]
12 Name some immutable data types. [1]
13 These operators are used to make a decision on two conditions. [1]
a) Relational b) Logical
c) Assignment d) Arithmetic
14 In complex number, a + ib, where b represents as [1]
a) special part b) real part
c) imaginary part d) Extraordinary part
15 Assertion (A): The % operator is used for modulo arithmetic in Python. [1]
Reason (R): The / operator is used for integer division in Python.
a) Both A and R are true and R is the correct explanation of A.
b) Both A and R are true but R is not the correct explanation of A.
c) A is true but R is false.
d) A is false but R is true.
Section B
16 Determine which of the following identifiers are valid. If invalid, explain with [4]
reason.
1. name_1
2. _SUM
3. $sum
4. num ^ 2
5. Name
17 Write a program to input a value in miles and convert it into kilometers. [4]
(1 km=0.621271 miles)
18 Write a program to swap two numbers using a third variable. [4]
19 Explain various operators in Python. [4]
20 Predict the output: [4]
1. a = 3
b = a *2
print (a * 3+6+b)
2. a, b = 12, 10
c = a // b + 4 * 2
d = c - 10
print(d)
3. a = 5
b=6
((a and b)
or (a > b))
4. a = 4
b=6
c = 10
(a > = b)
or ((c = = b)
and (not (c < a)))
5. a = 4
b=6
c = 10
(a < = b) and
((c == a) and
(not (c < b )))

6. a = 60
b = 10
c = 85/b + a
print (c)
7. a=3
b=4
c = a ** b + 5
print (c)
8. b = 89
a = 78
c = (a < = b)
print (c)
Section C
Question No. 21 to 25 are based on the given text. Read the text carefully and [5]
answer the questions:
Data Type The data that needs to be processed by a computer can be in various
form. It can be numbers with or without decimal places or it can be just a single
character or a sequence of characters. The data to be handled by the computer can
also be in group. All computer programming languages support wide variety of data
that can be stored, processed and manipulated in a computer system. Data type is a
term that is used to show the kind of data values or the type of data that is expected to
be handled.
Python has five standard data types:
Number, strings Lists, tuples and Dictionaries.
21 Which data type contains only numeric value in Python?
22 Which term is used to show the kind of data values?
23 Tuples are defined by which type of bracket?
24 In Python, what are the use of data types?
25 Integer data type can be represented by which term(s)?

You might also like