0% found this document useful (0 votes)
10 views11 pages

11 Cs Term-1 Block Test-1

This document is a block test paper for Class XI in Computer Science, consisting of three sections: A, B, and C. Section A has 25 questions where students must attempt 20, Section B has 24 questions with 20 to attempt, and Section C contains 6 case study questions with 5 to attempt. Each question carries equal marks, and the total marks for the test are 35 with a time limit of 90 minutes.

Uploaded by

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

11 Cs Term-1 Block Test-1

This document is a block test paper for Class XI in Computer Science, consisting of three sections: A, B, and C. Section A has 25 questions where students must attempt 20, Section B has 24 questions with 20 to attempt, and Section C contains 6 case study questions with 5 to attempt. Each question carries equal marks, and the total marks for the test are 35 with a time limit of 90 minutes.

Uploaded by

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

BLOCK TEST 1 PAPER CODE-BT01

Class: XI Session: 2021-22


Computer Science (Code 083)
(Theory)
Maximum Marks: 35 Time Allowed: 90 Minutes

General Instructions:

 The question paper is divided into 3 Sections - A, B and C.


 Section A, consist of 25 Questions (1-25). Attempt any 20 questions.
 Section B, consist of 24 Questions (26-49). Attempt any 20 questions.
 Section C, consist of 6 case study based Questions (50-55). Attempt any 5 questions.
 All questions carry equal marks.
Q.N Section-A
.
This section consists of 25 Questions (1 to 25). Attempt any 20 questions from this section. Choose
the best possible option.
1 Find the invalid identifier from the following
a. true
b. 123_roll
c. House_no_123
d. Stu_name
2 ROM is an example of which of the following?
a. Virtual memory
b. Non-volatile memory
c. Cache memory
d. Volatile memory

3 What is the value of the expression?


- 22%3
a. -2
b. 2
c. 1
d. -1
4 What will the output of the following expression?
3**1**3
a. 27
b. 9
c. 3
d. 1
5 Consider the following variable initialization statements. Which one of the following is incorrect?
a. a,b=8,6
b. a=b=9
c. a=4;b=5
d. a=4,b=7
6 According to Boolean laws: A+1= ?
a. 1
b. A
c. 0
d. A’
7 UTF8 is a type of ........... encoding.

a. ASCII
b. Extended ASCII
c. Unicode
d. ISCII
8 Which of the following operator cannot be used with string data type?
a. +
b. in
c. *
d. /
9 Combination of 4 bits is called a
a. Byte
b. Nibble
c. Kilo Byte
d. None of the above

10 Which of the following symbol is used in Python for single line comment?
a. /
b. /*
c. //
d. #
11 Evaluate the following expression and identify the correct answer.
16 - (4 + 2) * 5 + 2**3 * 4
a. 54
b. 46
c. 18
d. 32
12 Which of the following is not a complex number in Python?
a. k = 2 + 3j
b. k = complex(2, 3)
c. k = 2 + 3I
d. k = 2 + 3J

13 Which of the following sequences would be generated in the given line of code?
range (5, 0, -2)
a. 5 4 3 2 1 0 -1
b. 5 4 3 2 1 0
c. 5 3 1
d. None of the above
14 The binary equivalent of (120)10 is
a. 1111000
b. 1110000
c. 11001010
d. 01011110
15 The expression of a NAND gate is
a. A.B
b. A’B+AB’
c. (A.B)’
d. (A+B)’

16 Which one of the following expression evaluates to True?


a. True and False
b. not not False
c. not -9
d. not 0

17 What will be the output of the following:


bool("1")
a. True
b. False
c. 0
d. 1
18 The logic gate that will have HIGH or “1” at its output when any one of its inputs is HIGH is a/an ……………
gate.
a. OR
b. NOT
c. AND
d. NAND
19 Complement of the expression A’B + CD’ is

a. (A’ + B)(C’ + D)
b. (A + B’)(C’ + D)
c. (A’ + B)(C’ + D)
d. (A + B’)(C + D’)
20 What will be the output of below Python code?
str1="Information"

print(str1[2:8])

a. format
b. Formation
c. Orma
d. ormat
21 If str1="Programming Language"
What does str1.find("m") return?

a. Number of occurrences of "m" in string str1.


b. Index positions of "m" in the string str1.
c. It returns the whole string str1 if it contains "m".
d. It returns the index position of first occurrence of "m" in the string str1.
22 Which of the following is/are the universal logic gates?
a. OR and NOR
b. AND
c. NAND and NOR
d. NOT

23 Which one of the following analyses and executes the source code in line-by-line manner, without
looking at the entire program?
a. Compiler
b. Interpreter
c. Assembler
d. None of these
24 What shape represents a decision in a flowchart?
a. A diamond
b. A rectangle
c. An oval
d. None of these

25 Which of the following is an invalid statement?


a. abc = 1,000,000
b. a b c = 1000 2000 3000
c. a,b,c = 1000, 2000, 3000
d. a_b_c = 1,000,000
Section-B
This section consists of 24 Questions (26 to 49). Attempt any 20 questions.

26 What is the output of following code:

a,b,c=11,22,33
a,b=c+2,a*3-b
print(a,b,c)
a. Syntax error
b. 35 11 33
c. 35 22 33
d. 11 22 33
27 What is the output of following code:
i=1
while True:
if i%3==0:
break
print(i)
i+=1

a. No output

b. 1
2
3

c. 0
1
2

d. 1
2

28 Identify the output of the following Python statements.


x=2
while x < 9:
print(x, end='')
x=x+1

a. 12345678

b. 123456789
c. 2345678
d. 23456789
29 Operating system is an example of
a. Application software
b. System software
c. Utility program
d. None of the above
30 What will be the output of the following code?
x = 12
for i in x:
print(i)

a. 12
b. 1 2
c. Error
d. None of the above
31 What is the output of the following?
>>>"abbabbabbabba".count("ab")

a. 3
b. 4
c. 5
d. 13
32 What will be the output of the following code?
a=0
for i in range(4,8):
if i%2==0:
a=a+i
print(a)

a. 4
b. 8
c. 10
d. 18
33 What is the output of following code:

c=0
for x in range(10):
for y in range(5):
c+=1
print(c)

a. 50
b. 51
c. 0
d. 49
34 Which component of a computer connects the processor to the other hardware?
a. System Bus
b. CPU
c. Memory
d. Input unit
35 What will be the output of the following :

>>> a = 'India'
>>> a *= 3
>>> a
a. ‘IndiaIndiaIndia’
b. ‘India3’
c. ‘3India’
d. None of the above

36 What will be the output of the following :

>>> txt="I love working in Python"


>>> txt.partition("working")

a. ('I’, ‘love ', 'working', ' in’, ‘Python')


b. ('I love ', 'working', ' in Python')
c. ('I love ', ' in Python')
d. ('I love working', ' in Python')
37 What will be the output of the following :

i=0
while i < 5:
print(i,end=" ")
i += 1
if i == 3:
break
else:
print(0,end=" ")

a. 00102
b. 01234
c. 0123
d. 001023
38 Predict the output of the following:
for i in range(3):
pass
print(i,end=" ")

a. No output
b. 0 1 2
c. 0 1 2 3
d. 1 2 3
39 What will be the output of the following :

a="Guido Van Rossum"


a=a.split()
b=a[0][0]+"."+a[1][0]+"."+a[2]
print(b)

a. Guido Van Rossum


b. G.V.Rossum
c. G.V.R.
d. [G.,V.,Rossum]

40 What will be the output of the following :

x=10
y=5
for i in range(x-y*2):
print("%",i)

a. No output
b. %0
c. 10
d. 0
41 What will be the output of the following :

x="one"
y="two"
c=0
while c<len(x):
print(x[c],y[c])
c=c+1

a. o t
nw
eo
b. one
two
c. one two
d. o t
42 What will be the output of the following :

num=20
sum=0
for i in range(10,num,3):
sum+=i
if i%2==0:
print(i*2)
else:
print(i*3)

a. 20
39
32
57
b. 20
30
c. 20
30
40
d. 20
33
46
43 What will be the output of the following Python code snippet?

print('abef'.replace('cd', '12'))
a. abef
b. 12
c. Error
d. none of the mentioned
44 What will be the output of the following Python code snippet?

x = "abcdef"
i = "a"
while i in x:
print(i, end = " ")

a. no output
b. iiiiii…
c. aaaaaa…
d. abcdef
45 What will be the output of the following Python code?
i=1
while False:
if i%2 == 0:
break
print(i)
i += 2

a. 1
b. 1 3 5 7 …
c. 1 2 3 4 …
d. No output
46 What will be the output of the following Python code?

>>>str1="helloworld"
>>>str1[::-1]
a. dlrowolleh
b. hello
c. world
d. helloworld

47 What will be the output of the following Python code snippet?

print('abcdefcdghcd'.split('cd', 2))

a. [‘ab’, ‘ef’, ‘ghcd’]


b. [‘ab’, ‘efcdghcd’]
c. [‘abcdef’, ‘ghcd’]
d. none of the mentioned
48 What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper(),end="")

a. abcd
b. ABCD
c. aBCD
d. error
49 What will be the output of the following Python code?

print("abc DEF".capitalize())

a. abc def
b. ABC DEF
c. Abc def
d. Abc Def

Section-C
Case Study based Questions
This section consists of 6 Questions (50 -55) Attempt any 5 questions.
Krrishnav is looking for his dream job but has some restrictions. He loves Delhi and would take a job
there if he is paid over Rs.40,000 a month. He hates Chennai and demands at least Rs. 1,00,000 to work
there. In any another location he is willing to work for Rs. 60,000 a month. The following code shows his
basic strategy for evaluating a job offer.

Code:

pay=
location=
if location == "Mumbai":
print ("I’ll take it!") #Statement 1
elif location == "Chennai":
if pay < 100000:
print ("No way") #Statement 2
else:
print("I am willing!") #Statement 3
elif location == "Delhi" and pay > 40000:
print("I am happy to join") #Statement 4
elif pay > 60000:
print("I accept the offer") #Statement 5
else:
print("No thanks, I can find something better")#Statement 6

On the basis of the above code, choose the right statement which will be executed when different inputs
for pay and location are given.

50 Input: location = "Chennai”, pay = 50000


a. Statement 1
b. Statement 2
c. Statement 3
d. Statement 4

51 Input: location = "Surat" ,pay = 50000


a. Statement 2
b. Statement 4
c. Statement 5
d. Statement 6

52 Input- location = "Any Other City", pay = 1


a Statement 1
b. Statement 2
c. Statement 4
d. Statement 6

53 Input location = "Delhi", pay = 500000


a. Statement 6
b. Statement 5
c. Statement 4
d. Statement 3
54 Input- location = "Lucknow", pay = 65000
a. Statement 2
b. Statement 3
c. Statement 4
d. Statement 5

55 Input- location = "Chennai", pay = 200000


a. Statement 2
b. Statement 3
c. Statement 4
d. Statement 5

You might also like