0% found this document useful (0 votes)
46 views4 pages

Class 11 CS QP HYA

Wo posts ek is seen if cs web ya QC baat is web best na Aaj Jai jazz vasu step pen BC steph

Uploaded by

Gracy amutharaj
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)
46 views4 pages

Class 11 CS QP HYA

Wo posts ek is seen if cs web ya QC baat is web best na Aaj Jai jazz vasu step pen BC steph

Uploaded by

Gracy amutharaj
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/ 4

SECTION - A

Answer all the given questions of 1 mark each: (18x1=18)


The physical components of computer system are known as __________
1 (1)
a) Software b) Hardware c) Humanware d) Drivers
What will be the output of the following code segment?
a,b=5,6

2 b,a=a,b (1)
print(a,”+”,b)
a) 5 + 6 b) 6 + 5 c) 11 d) None
Kriza wants to divide a number and store the result without decimal places into an integer
3 variable. Suggest her an appropriate operator from the following: (1)
a) / b) % c) // d) Both a) & b)
What will be the output of following code:
if True:
print(“true”)
4 (1)
else:
print(“false”)
a) True b) False c) true d) false
Which of the following is the result of A + 1, if input is A=0?
5 (1)
a) Always 0 b) Always 1 c) Vary from 0 or 1 d) None of these
Which of the following gate is an inverter gate?
6 (1)
a) AND b) OR c) NOT d) NOR
Which of the following is correct for NOR operation?
7 (1)
a) (AB)’ b) (A+B)’ c) AB d) A+B
Which of the following python mode allows to write python program with multiple lines?
8 a) Interactive Mode b) Script Mode (1)
c) Client Mode d) Debug Mode
Identify python keyword from the following:
9 (1)
a) if b) max c) min d) math
What will be the output of the following code segment?
a,b=2,3
10 a,b=b**3,a**2 (1)
print(a,”#”,b)
a) 8#9 b) 9#8 c) 27#4 d) 4#27
Which of the following symbol is not an operator?
11 (1)
a) / b) % c) // d) #
What will be the value of variable a when loop is terminated?
a=30
while a>0:
print(a)
12 (1)
a-=10
a) 0 b) 10 c) 30 d) -10

13 Observe the given code and select an appropriate output: (1)

1
a) 2023 b) 2023# c) 20#23 d) 2#0#2#3
Consider the list L=[2,4,3,5], which is correct to delete element 4?
14 (1)
a) L[2] b) L[-3] c) L[3] d) L[-2]
OMR stands for
a) Optical Mark Reader
15 b) Optical Mark Recognition (1)
c) Optical Mark Reviewer
d) Optical Mark Representation
. Priyansh wants to store the value 3.5 into a variable n. Which of the following statement
16 is correct for him? (1)
a) int n=3.5 b) n=3.5 c) 3.5=n d) n=’3.5’
Q17 and 18 are ASSERTION AND REASONING based questions. Mark
the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b)Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d)A is false but R is True

Assertion(A): Python lists allows to modify their elements by indexes easily.


17 (1)
Reasoning(R): Python lists are mutable.
Assertion(A): List elements can be also access via negative indexes.
18 (1)
Reasoning(R): Python lists follows positional indexes

SECTION - B
Answer any 7 questions of 2 marks each: (7x2=14)
(2)

19 What do you mean by tokens? List out python tokens


Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of:
a) print(mySubject[:3])
b) print(mySubject[-5:-1])
c) print(mySubject[::-1]) (2)
20 d) print(mySubject*2).

21 Convert the following numbers into binary: (2)


a) (CAB)16
b) (347)8
c) (1A2B)16

2
d) (135)8
(OR)
Write any 2 characteristics of algorithm
What do you mean by identifiers? List out any two rule of identifier naming convention
22 (2)
What will be the output of the following?
23 x, y = 4, 8
z=x/y*y
print (z)
(or)
What is a string slice? (2)
24
What are the advantages of Python? (2)
will be the output of the following code
25

(2)

SECTION – C
Answer any 5 questions of 3 marks each: (5x3=15)
26 (3)
What is the syntax of if-elif statement in Python?
27 (3)
WAP to print the following series – (i) 1 4 7 10 . . . . . . .40
Rewrite the following code fragment using for loop
28

(3)

WAP to check the given year is leap year or not.


(or) (3)
29 What is the Syntax of User defined function?

30 What are loops in Python? How many types of loop are there in Python? (3)

SECTION – D
Answer any 2 questions of 4 marks each: (2x4=08)
31 (4)
Write an algorithm and flow chart to find the square of given number
(OR)
Write a program to print the following pattern up to n terms
1
3
12
123
1234
What would following expression return?
(a) ”Hello World”.upper().lower()
(b) ”Hello World”.lower().upper()
(c) ”Hello World”.find(“Wor”,1,6)
(d) ”Hello World”.find(“Wor”)
(e) ”Hello World”.find(“wor”)
(f) ”Hello World”.isalpha()
(g) ”Hello World”.isalnum()
32 (h) ”Hello World”.isdigit() (4)
SECTION – E
Answer any 3 questions of 5 marks each: (3x5=15)

Explain the following string operations in detail with example


a) String Concatenation
b) String Replication:
33 c) Membership (5)
Draw the basic architecture of computer system. Explain memory unit in detail ? 2+3=
(OR) 5
34 WAP to input a digit and print it in words
1+4=
35 Write a program to print the Fibonacci series up to n terms 5

******

You might also like