11 pt2 2023
11 pt2 2023
General Instructions:
1.This question paper contains five Sections A,B,C,D and E.
2.All questions are compulsory.
3.Section A, consists of 09questions .Each question carries 01 Mark.
4.Section B, consists of 04 questions. Each question carries 02 Mark.
5.Section C, consists of 03 questions. Each question carries 03 Mark.
6.Section D, consists 01 questions. Each question carries 04 Mark.
7.Section E, consists of 02 questions. Each question carries 05 Mark.
8.All programming questions are to be answered using Python Language only.
SECTION A
1. What is the value of the expression 100//25? 1
2 Negative index -1 belongs to ___________of string. 1
a)first character b)last character c)second last charcter
3 Which of the following functions will return the total number of characters in a string? 1
a)count() b)index() c)len()
4 Floor division of two integers results in an integer.(True or False) 1
5 What are datatypes? 1
6 The order of statement execution in the form of top to bottom,is known 1
as__________construct.
7 An empty/null statement in Python is___________. 1
8 What is a string slice? 1
9 Strings have both positive and negative indexes.(True/false) 1
SECTION B
10 What is the difference between partition() and split() functions()? 2
11 How is break statement different from continue? 2
12 What is a flowchart ?How is it useful? 2
13 What do you understand by term ‘immutable’? 2
SECTION C
14 Which data type will be used to represent the following data values? 3
a)mobile number
b)Name of the student
c)Address of the student
15 Write a program to find the sum of digits of an integer number,input by the user. 3
16 What is a statement ?What is the significance of an empty statement? 3
SECTION D
17 Find the output of the following program segments: 4
i)a=110
while a>100:
print(a)
a-=2
ii)for i in range(20,30,2):
print(i)
SECTION E
SNBP’s/2023-24/XI/PT2/Computer Science Page 1
18 Write a program to check if the year entered by the user is a leap year or not. 5