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

CS Cycle Test-1 (06 - 03 - 2025)

This document outlines the structure and content of a Computer Science examination for Class XII, detailing five sections with varying question formats and marks distribution. Each section includes questions on Python programming, such as data types, syntax errors, and string manipulations. The exam is designed to assess students' understanding of key concepts in computer science and programming.

Uploaded by

mage
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)
12 views3 pages

CS Cycle Test-1 (06 - 03 - 2025)

This document outlines the structure and content of a Computer Science examination for Class XII, detailing five sections with varying question formats and marks distribution. Each section includes questions on Python programming, such as data types, syntax errors, and string manipulations. The exam is designed to assess students' understanding of key concepts in computer science and programming.

Uploaded by

mage
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

CLASS: XII

SUB: COMPUTER SCIENCE(083) DURATION: 1 HR


GENERAL INSTRUCTIONS:
● The paper is divided into 5 Sections- A, B, C, D and E.
● Section A, consists of 11 questions (1 to 7). Each question carries 1 Mark.
● Section B, consists of 4 questions (8 to 11). Each question carries 2 Marks.
● Section C, consists of 1 questions (12 and 13). Each question carries 3 Marks.
● Section D, consists of 2 question (14). Each question carries 4 Marks.
● Section E, consists of 1 question (15). Each question carries 5 Marks.
Q.No SECTION-A (7 x 1 = 7 Marks) MARKS

1 Which of the following data type in Python supports concatenation? 1


(A) int (B) float (C) bool (D) str

2 Write the output of the following python expression: 1


print( (20 >25) and (5==5 ) or ( 18 < 12) )

3 Select the correct output of the code: 1


a='assistance'
a=a.partition('a')
b=a[0] + '-' + a[1] + '-' + a[2]
print(b)
A). -a-ssistance B) -a-ssist-nce C) a-ssist-nce D) -a-ssist-ance

4 State True or False: None is same as 0 or Empty String 1

5 Select the correct output of the code: 1


s = "Question paper 2024-25"
s= s.split('2')
print(s)
A) ['Question paper ', '0', '4', '-', '5'] B) ('Question paper ', '0', '', '-', '')
C) ['Question paper ', '0', '4-', '5'] D) ('Question paper ', '0', '4', '', '-', '5')

6 Which of the following is not a keyword? A) eval B) assert C) del D) pass 1

7 Consider the statements given below and then choose the 1


correct output from the given options:
event = "#G20 Presidency"
print(event[-2:2:-2])
A) ndsr B) ceieP0 C) ceieP D) ynsdr
Q.No SECTION-A (4 x 2 = 8 Marks) MARKS

8 Rewrite the following code in python after removing all syntax error(s). Underline each 2
correction done in the code.
Val = int("Value:")
Adder = 0
for C in the range(1,Val,4) :
Adder=+C
if C%3==0:
print (C*50)
Else:
print (C)
print (Adder)

9 (I) What is use of ** operator? 1


(II) What will be the output of the following expression? print (4+3*5/3-5%2) 1

10 If L1=[40,30,20,10 ], and
L2=[8,12,25,15,35] then 1
(I)A) Write a statement to insert element 25 in list L1 at index 2. 1
B) Write a statement to sort the elements of list L2 in descending order.
OR
(II) If s tr1 = “ Ken driy a V id ya la y a S a nga tha n ”
A) Write a statement to display the last four characters.
B) print(str1[1:-6])

11 How is a mutable object different from an immutable object in Python? 2


Identify one mutable object and one immutable object from the following: (1,2), [1,2],
{1:1,2:2}, ‘123’
Q.No SECTION-A (2 x 3 = 6 Marks) MARKS

12 i)Which of the following is not a valid identifier in Python? 1


a) csnip2 b) _main c) Cello_Dear1 d) 7 Sisters
1
ii)Suppose a tuple T1 is declared as T1 = (10, 20, 30, 40, 50) which of the following is
incorrect? a)print(T[1]) b) T[2] = -29 c) print(max(T)) d) print(len(T)) 1

iii)Which of the following is an invalid operator in Python?


(a)- (b) //= (c)in (d) =%

13 i) Given is a Python string declaration: 1


str1="!!Welcome to Python!!"
Write the output of: print(str1[::-2])

ii)Select the correct output of the following code: 1


>>>str1 = ‘India is a Great Country’
>>>str1.split(‘a’)
a) [‘India’,’is’,’a’,’Great’,’Country’] b) [‘India’, ’is’, ’Great’, ’Country’]
c) [‘Indi’, ’is’, ’Gre’, ’t Country’] d) [‘Indi’, ’is’, ’Gre’, ’t’, ‘Country’]
1
iii) Given a tuple tupl=(10,20,30,40,50,60,70,80,90)
What will be the output of print (tupl[3:7:2])?
(a) (40,50,60,70,80) (b) (40,50,60,70) (c) [40,60] (d) (40,60)
Q.No SECTION-A (1x 4 = 4 Marks) MARKS

14 If L1=[1,2,3,2,1,2,4,2, . . . ], and L2=[10,20,30, . . .], then


A) Write a statement to count the occurrences of 1 in L1 1
B) Write a statement to sort the elements of list L1 in descending order. 1
C) Write a statement to insert all the elements of L2 at the start of L1. 1
D) Write a statement to reverse the elements of list L1. 1

Q.No SECTION-A (1x 5 = 5 Marks) MARKS

15 i) Which of the following statement(s) would give an error after executing the 1
following code?
S="Welcome to class XII" #Statement 1
print(S) # Statement 2
S="Thank you" #Statement 3
S[0]= '@' #Statement 4
S=S+"Thank you" #Statement 5

ii) What is the output of the following code?


Text = 'Happy hour12-3' 2
L= " "
for i in range(len(Text)):
if Text[i].isupper():
L=L+Text[i].lower()
elif Text[i].islower():
L=L+Text[i].upper()
elif Text[i].isdigit():
L=L+(Text[i]*2)
else: 1
L=L+'#'
print(L)
iii)Consider the given expression: 17%5==2 and 4%2>0 or 15//2==7.5 1

iv)What will be the output of the following code snippet?


message= "Satyamev Jayate"
print(message[-2::-2])

You might also like