0% found this document useful (0 votes)
52 views13 pages

PT 2paper Class 11

This document is an examination paper for Class XI Computer Science at Genius Public Inter College for the academic year 2024-25. It consists of four sections with various types of questions, including multiple-choice, short answer, and programming tasks, all requiring Python language for programming questions. The paper covers topics such as tuples, lists, built-in functions, and includes practical programming assignments related to data structures.

Uploaded by

Raman Shukla
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)
52 views13 pages

PT 2paper Class 11

This document is an examination paper for Class XI Computer Science at Genius Public Inter College for the academic year 2024-25. It consists of four sections with various types of questions, including multiple-choice, short answer, and programming tasks, all requiring Python language for programming questions. The paper covers topics such as tuples, lists, built-in functions, and includes practical programming assignments related to data structures.

Uploaded by

Raman Shukla
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

GENIUS PUBLIC INTER COLLEGE

PT-2 EXAMINATION 2024-25


CLASS-XI SUBJECT: COMPUTER SCIENCE
TIME: 1:30 HOURS M.M.: 30
General Instructions:
1. This question paper contains four sections, Section A to D.
2. All questions are compulsory.
3. Section A has 4 questions carrying 01 mark each.
4. Section B has 2 Very Short Answer type questions carrying 03 marks each.
5. Section C has 2 Short Answer type questions carrying 04 marks each.
6. Section D has 2 Long Answer type questions carrying 06 marks each.
7. All programming questions are to be answered using Python Language only.

SECTION-A
1 Which of the following is/are correctly declared tuple(s) 1
?
a) a = ("Hina", "Mina", "Tina", "Nina")
b) a = "Hina", "Mina", "Tina", "Nina")
c) a = ["Hina", "Mina", "Tina", "Nina"]
d) a = (["Hina", "Mina", "Tina", "Nina"])
2 Which of the following can add only one value to a list? 1

a) add( ) c) extend( )
b) append( ) d) none of these
3 Given a list L= [10, 20, 30, 40, 50, 60, 70], what would 1
L[1 : 4] return?
a) [10, 20, 30, 40] SECTION-B c) [20, 30, 40]
5. A triangle has three sides a,b,c as 17,23,30. Write a python program to 3
b) [20, 30, 40, 50] d) [30, 40, 50]a+ b+c
calculate and display its area using heron’s formula as s= 2
4. area= √ s (s−a)(s−b)(s−c
list can )
contain values of these types: 1
6. Explain any 4 built in functions which can be performed over any list. 3

a) integers c) lists
b) floats d) all of these
SECTION-C
7. 4
Write a program that interactively creates a nested tuple to store the
marks in three subjects for five students, i.e., tuple will look
somewhat like:

(i) marks( (45, 45, 40), (35, 40, 38), (36, 30, 38), (25,27, 20), (10, 15,
20))
8. 2+2
i)Define all three fuctions of random module.

ii) Define any three functions of math module

SECTION D
9. I) Create the following lists using a for loop:
2+2+
(a) A list consisting of the integers 0 through 49. 2

(b) A list containing the squares of the integers 1 through 50.

(c) The list ['a', 'b', 'ccc, dddd",...] that ends with 26 copies of the
letter z.
10. 3+3
I)Given a tuple pairs = ((2, 5), (4, 2), (9, 8), (12, 10)),
count the number of pairs (a, b) such that both a and
b are even.
II) Differentiate
a)lists and tuples
b)append and extend
13 Repeatedly ask the user to enter a team name and how many games the team 8
has won and how many they lost. Store this information in a dictionary
where the keys are the team names and the values are
lists of the form [wins, losses].

(a) Using the dictionary created above, allow the user to enter a team name
and print out the team's winning percentage.

(b) Using the dictionary, create a list whose entries are the number of wins of each
team.
(c) Using the dictionary, create a list of all those teams that have winning records.

You might also like