Support Material Term-I XI CS 2021
Support Material Term-I XI CS 2021
CHANDIGARH REGION
SUPPORT MATERIAL TERM-I
CLASS- XI COMPUTER SCIENCE
TOPIC: BASIC COMPUTER ORGANSIATION
Q.NO MARKS
Q.1 Data in computer terminology mean? 1
(a) Figure
(b) Raw facts
(c) Both a & b
(d) None of these
Q.2 What is information? 1
(a) Processed Data
(b) Collection of a Program
(c) Raw Data
(d) Collection of Instructions
Q.3 Full form of ALU 1
(a) Application Logic Unit
(b) Array Logic Unit
(c) Arithmetic Logic unit
(d) Auxilary Logic Unit
Q.4 Full form of CPU 1
(a) Central Processing Unit
(b) Central Program Unit
(c) Common Processing Unit
(d) Central Personal Unit
Q.5 Full form of IPO 1
(a) Input Process Output
(b) Input Print Output
(c) Internet Print Output
(d) Internet process Output
Q.6 MICR stands for? 1
(a) Maganetic Ink Character Reader
(b) Maganetic Ink Code Reader
(c) Maganetic Ink Caser Reader
(d) Maganetic Ink Computer Reader
Q.7 The Arithmatic Logic Unit performs which arithmetical operation? 1
(a) (+ , – , * , / )
(b) ( True. False )
(c) ( <, >, =,> =,< >)
(d) All of these
Q.8 Personal computers use no. of chips mounted on a main circuit board. 1
The main board is known as
(a) Fatherboard
Page 1 of 55
(b) Motherboard
(c) Masterboard
(d) Fastboard
Q.9 Which of the following are the sub units that make the CPU? 1
(a) ALU
(b) Control Unit
(c) Both a & b
(d) None of these
Q.10 Which units in computer are capabale of performimg arithmetic & 1
Logical operations?
(a) Memory
(b) ALU
(c) Control Unit
(d) None of these
Q.11 Which of the following is the part of CPU? 1
(a) Printer
(b) Keyboard
(c) Mouse
(d) Aritnatic Logic unit
Q.12 Which of the following is also known as brain of the computer? 1
(a) Input Unit
(b) Central Processing Unit
(c) Output Unit
(d) All of these
Q.13 What is the responsibility of the logical unit in the CPU of a computer? 1
(a) To produce result
(b) To compare numbers
(c) To store data
(d) All of these
Q.14 Which of the following is input pointing device? 1
(a) Keyboard
(b) Printer
(c) Mouse
(d) Scanner
Q.15 Which of the following is not an example of output device? 1
(a) Keyboard
(b) Printer
(c) Monitor
(d) Speaker
Q.16 Which of the following is not an example of Input device? 1
(a) Keyboard
(b) Mouse
(c) OMR
(d) Speaker
Page 2 of 55
Q.17 Which printer is known as impact printer? 1
(a) Laser printer
(b) Dot Matrix printer
(c) Ink jet printer
(d) All of these
Q.18 Which device is used to input the text and numerical data? 1
(a) Keyboard
(b) Scanner
(c) Printer
(d) Platter
Q.19 Which type of device is a computer printer? 1
(a) Input
(b) Output
(c) Storage
(d) Software
Q.20 An optical mouse used 1
(a) Infrared light
(b) Light emitting diode (LED)
(c) Sensor
(d) Microwave
Q.21 Which technology used in laser printer? 1
(a) Electrostatically charge
(b) Spraying fine drops
(c) Heat sensitive
(d) Ball Head
Q.22 What type of toner used in inkjet printer? 1
(a) Ribbon cartridge
(b) Powder cartridge
(c) Liquid Ink cartridge
(d) Drum cartridge
Q.23 Select the correct statement about Dot matrix printer: 1
(i) prints an entire line at time (ii) is a impact printer
(iii) is a non impact printer (iv) prints one character at a time
(a) i and ii
(b) i and iii
(c) ii and iv
(d) ii and iii
Q.24 When we work on any document on PC, it is stored temporarily 1
in______ memory
(a) RAM
(b) ROM
(c) CPU
(d) CD-ROM
Page 3 of 55
Q.25 Smallest measurement unit of computer memory is? 1
(a) Megabyte
(b) Bit
(c) Byte
(d) Killo Byte
Q.26 How many bits form a Byte? 1
(a) 4 Bit
(b) 32 Bits
(c) 8 Bits
(d) 1024 Bits
Q.27 Collection of 04 bits is known as 1
(a) Byte
(b) Nibble
(c) Killobyte
(d) Megabytes
Q.28 How many bytes are in 1 Kilobyte? 1
(a) 8 Bytes
(b) 128 Bytes
(c) 1024 Bytes
(d) 256 Bytes
Q.29 Storage of 1 Megabyte is equivalent of _____ Killobyte: 1
(a) 1024 KB
(b) 1064 KB
(c) 1000 KB
(d) 1028 KB
Q.30 1 TB is equivalent to – 1
(a) 210 byte
(b) 210 MB
(c) 210 KB
(d) 210 GB
Q.31 Which of the following device can store more than 100 GB data? 1
(a) Floppy Disk
(b) Compact Disk
(c) DVD
(d) Hard disk
Q.32 Which of the following memory is the fastest memory to access data? 1
(a) RAM
(b) ROM
(c) Register
(d) Hard disk
Page 4 of 55
Q.33 Full form of RAM 1
(a) Read Access Memory
(b) Read Only Memory
(c) Raw Access Memory
(d) Random Access Memory
Q.34 Full form of ROM 1
(a) Read Only Memory
(b) Random Only Memory
(c) Raw Only Memory
(d) None of these
Q.35 Full form of SRAM 1
(a) Special Random-Access Memory
(b) Supreme Random-Access
(c) Static Random-Access Memory
(d) Stable Random-Access Memory
Q.36 Full form of USB 1
(a) Uniform Service Bus
(b) Universal Serial Bus
(c) Universal Sector Buffer
(d) Universe Service Bus
Q.37 Read Only Memory (ROM) is a_______ memory. 1
(a) Non Volatile Memory
(b) Volatile Memory
(c) Both (a & b)
(d) None of these
Q.38 Which of the following is an example of Volatile memory? 1
(a) Floppy Disk
(b) ROM
(c) RAM
(d) Hard disk
Q.39 Arrange the following measurement units of memory in ascending 1
order as per their storage caapcity?
BYTE, MB, GB, KB
(a) 1,2,3,4
(b) 4,3,2,1
(c) 1,4,2,3
(d) 1,4,3,2
Q.40 Which of the following memories must be refreshed many times per 1
second?
(a) EPROM
(b) ROM
(c) Static RAM
(d) Dynamic RAM
Page 5 of 55
TYPES OF SOFTWARE, OPERATING SYSTEM
Q.NO MARKS
Page 6 of 55
Q.8 Word processing software is a type of application software. 1
a) True
b) False
Q.14 A software that lies between the OS and the applications running on it. 1
a) Firmware
b) Middleware
c) Utility Software
d) Application Software
Q.15 A type of middleware that allows for between the built-in applications and 1
the real-time OS?
a) Firmware
b) Database middleware
c) Portals
d) Embedded Middleware
Page 7 of 55
Q.16 Which of the following is not an operating system? 1
a) Windows
b) Linux
c) Oracle
d) DOS
Q.17 When was the first operating system developed? 1
a) 1948
b) 1949
c) 1950
d) 1951
Q.18 Which of the following is the extension of Notepad? 1
a) .txt
b) .xls
c) .ppt
d) .bmp
Q.22 When you delete a file in your computer, where does it go? 1
a) Recycle bin
b) Hard disk
c) Taskbar
d) None of these
Page 8 of 55
c) Demoralized system memory
d) Distributed shared memory
Q.30 Which of the following operating systems does not support more than one 1
program at a time?
a) Linux
b) Windows
c) MAC
Page 9 of 55
d) DOS
Q.31 Where are placed the list of processes that are prepared to be executed and 1
waiting?
a) Job queue
b) Ready queue
c) Execution queue
d) Process queue
Q.35 What type of commands are required to perform various tasks in DOS? 1
a) Internal commands
b) External commands
c) Valuable commands
d) Primary commands
Q.37 Which program runs first after booting the computer and loading the GUI? 1
a) Desktop Manager
b) File Manager
c) Windows Explorer
d) Authentication
Page 10 of 55
Q.38 Which of the following file systems is supported by the windows OS? 1
a) NTFS
b) FAT32
c) exFAT
d) All of the these
Page 11 of 55
c. (A.B)’
d. (A+B)’
Q.6 A __________ gate gives the output as 1 only if all the inputs signals are 1. 1
a. AND
b. OR
c. EXOR
d. NOR
Q.7 The gate which is used to reverse the output obtained is _____ 1
a. NOR
b. NAND
c. EXOR
d. NOT
Q.8 The symbol + in Boolean is also known as the ____________ operator. 1
a. AND
b. OR
c. EXOR
d. NOR
Q.9 Boolean algebra is define as a set of ______________ 1
a. One value
b. Two value
c. Three value
d. Four value
Q.10 Boolean algebra is an algebraic structure with two arithmetic operations. 1
a. a. Addition and subtraction
b. b. Subtraction and multiplication
c. c. Addition and multiplication
d. d. Addition and division
Q.11 In Boolean algebra 23 would have 1
a. a. Three value
b. b. Four value
c. c. Six value
d. d, eight value
Q.12 1
a.(P+Q’).(Q+R’)
b. (P’+Q).(Q+R’)
c. (P’+Q’).(Q’+R)
d.(P’+Q’).(Q’+R’)
Page 12 of 55
Q.13 1
a.(A+B)(A+B’)
b.(A’+B)(A+B’)
c.(A’+B’)(A+B)
d.(A+B)(A’+B’)
Q.14 1
a.(x+y’).(x’+y)
b.(x+y)+(x’y)
c.(x’+y).(x+y’)
d.(x’+y’)(x’+y’)
Q.15 NAND is a complement of 1
a. AND
b. OR
c. NOT
d. XOR
Q.16 When we convert 10010 binary numbers to decimals. Then the solution is : 1
a. 20
b.18
c.14
d.16
Q.17 Convert (22) from octal to its corresponding decimal equivalent. 1
a. 20
b.18
c.14
d. 81
Q.18 The base of hexadecimal number system is 1
a.6
b. 8
c. 16
d. 10
Q.19 The number of digit in binary number systems are 1
a.10
b. 2
c. 4
Page 13 of 55
d. 6
Q .20 Name the number system which uses alphabets as well as numerical. 1
a. Binary number system
b. octal number system
c. Decimal number system
d. Hexadecimal number system
Q.21 Which out of the following binary number is equivalent to decimal number 1
24
a.11011
b.11000
c.11111
d.11001
Q.22 How many number of digits are there in octal number system 1
a. 6
b. 9
c. 5
d. 8
Q.23 One nibble contains the number of bits equivalent to 1
a. 3
b. 4
c. 8
d. 16
Q.24 The octal equivalent of (13)10 is 1
a. 18
b. 14
c. 15
d. 16
Q.25 The result after converting the binary number (100011)2 to decimal will be 1
a.30
b.43
c. 35
d. None of the above
Q.26 Conversion of hexadecimal number (69)16 to octal equivalent will be 1
a.451
b. 351
c. 251
d. 151
Q.27 Convert the binary number (100110)2 to hexadecimal equivalent is give 1
a.46
b. 36
c. 26
d. 34
Q.28 When we convert 0010010100 binary to octal. Then the solution is :a.201 1
b. 226
c. 224
Page 14 of 55
d.161
Q.29 Convert hexadecimal (FACE)16 to its equivalent binary 1
a.1111101011001110
b. 0011101011010011
c. 1100111111100011
d. 101010101101111
Q.30 Convert hexadecimal (EB4A)16 to its equivalent octal 1
a.165512
b.156641
c.165511
d.165012
Q.31 Which of the following encoding scheme is commonly used for encoding 1
scheme?
a. ASCII
b. ANSI
c. ISCII
d. UNICODE
Q.32 ISCII can represent ______bit character 1
a.5
b. 6
c. 7
d. 8
Q.33 The __________ provides a unique number for every character for various 1
devices like servers, desktop, mobile and operating system linux, windows,
iOS or software application.
a. ASCII
b. ANSI
c. ISCII
d. UNICODE
Q.34 Every keyboard present on the key is mapped to a unique code. 1
a, True
b. False
Q.35 Which of the following is not a commonly used encoding scheme? 1
a.UTF-8
b. UTF-16
c. UTF-34
d. UTF-64
Q.36 The ASCII is capable to encode characters of any language. 1
a, True
b. False
Q.37 Each cell of the table contains a character along with its equivalent ________ 1
value in Unicode table for the Devanagari script.
a,decimal
b. binary
c. hexadecimal
Page 15 of 55
d. octal
Q.38 ASCII uses _______ bits to represent characters. 1
a.5
b. 6
c. 7
d. 8
Q.39 ISCII was developed in ________. 1
a.1950s
b. 1960s
c. 1970s
d. 1980s
Q.40 The ASCII was develolped in _________. 1
a.1950s
b. 1960s
c. 1970s
d. 1980s
a. 1995
b. 1972
c. 1981
d. 1989
a. 16
b. 32
c. 64
d. None of these above
Page 16 of 55
Q.4 Which one of the following is the correct extension of the Python file? 1
a. .py
b. .python
c. .p
d. None of these
a. /
b. //
c. #
d. !
a. Key
b. Brackets
c. Indentation
d. None of these
a. for
b. if
c. try
d. sum
Q.8 Which of the following operators is the correct option for calculating ab ? 1
a. a ^ b
b. a**b
c. a ^ ^ b
d.
a^*b
Q.9 Which one of the following has the same precedence level? 1
Page 17 of 55
Q.10 Which of the following functions is a built-in function in python language? 1
a. val()
b. print()
c. fact()
d. None of these
a. a+bc
b. abc
c. a bc
d. a
Q.12 Which of the following option is a core data type in the python language? 1
a. Dictionary
b. List
c. String
d. All of the above
Page 18 of 55
Q.16 Identify what is correct data type of x if x = True? 1
a. Dictionary
b. String
c. Boolean
d. None of the above
a. dictionary z is created
b. x and y are the keys of dictionary z
c. 0 and 1 are the values of dictionary z
d. All of the above
a. package
b. module
c. directory
d. None of the above
Page 19 of 55
Q.23 Is Python case sensitive when dealing with identifiers? 1
a. yes
b. no
c. machine dependent
d. none of the mentioned
Q.25 Operators with the same precedence (except power operator) are evaluated in 1
which manner?
a. Left to Right
b. Right to Left
c. Can’t say
d. None of the mentioned
Q.26 What is the output of this expression, 3*1**3? 1
a. 1
b. 27
c. 9
d. 3
Page 20 of 55
Q.28 Choose correct option : 1
S1=’python’
S1[0]=S1[0].upper()
Statement 1: Above code will generate error.
Statement 2: String is mutable by nature.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.29 Choose correct option : 1
X=2,3
Statement 1: X having two elements i.e. 2 and 3.
Statement 2: X is a tuple.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.30 Choose correct option : 1
Statement 1: We can’t modify tuple elements directly.
Statement 2: Tuple is immutable data type.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.31 Choose correct option : 1
X=True
Y=’true’
Statement 1: Data type of X is Boolean and Data Type of Y is String.
Statement 2: Keywords in Python must be in lowercase.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Page 21 of 55
Q.32 Choose correct option : 1
X=2**3**2
Statement 1: Order of execution of Multiple Power operators in an expression
is Left to Right.
Statement 2: Value of X will be 512.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.33 Choose correct option : 1
str1=”My”+”Work”
Statement 1: Value of str1 will be “MyWork”.
Statement 2: Operator ‘+’ concatenates the string if both operands are strings.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.34 Choose correct option : 1
str1=”A”*3
Statement 1: Value of str1 will be “AAA”.
Statement 2: Data type of str1 is String.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.35 Choose correct option : 1
L1=[ 1 , ‘Hello’, 3.5 ]
Statement 1: List1 is a valid List.
Statement 2: List supports Heterogeneous Data types.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Page 22 of 55
Q.36 Choose correct option : 1
1st_number=23
Statement 1: Above statement is correct.
Statement 2: Identifier can’t have any special characters other than _ , digits ,
uppercase or lowercase characters.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.37 Choose correct option : 1
27=x
Statement 1: Above python code will generate error.
Statement 2: Variable name can come on RHS of assignment operator.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.38 Choose correct option : 1
X=5
print(X==5)
Statement 1: Output of above python code is True.
Statement 2: ‘= =’ operator represents Assignment Operator.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.39 Choose correct option : 1
X=’Arya’
Y=’arya’
print(X==Y)
Statement 1: Output of above python code is False.
Statement 2: Python is a case-sensitive language.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Page 23 of 55
Q.40 Choose correct option : 1
Statement 1: Python is a 3rd most popular language
Statement 2: Python is an interpreted language.
a. Only Statement 1 is true.
b. Only Statement 2 is true.
c. Both Statement 1 and 2 are true, but Statement 2 is not correct
reasoning of Statement 1.
d. Both Statement 1 and 2 are true, but Statement 2 is correct reasoning
of Statement 1.
Q.4 Special meaning words of Pythons, fixed for specific functionality are called 1
_______.
a) Keywords
b) Identifier
c) Functions
d) Literals
Page 24 of 55
Q.5 The default separator character of print( ) is ______ 1
a) tab
b) space
c) newline
d) dot
Q.6 Following is the name given to fixed data value represented in a python 1
programme:
a) functions
b) identifiers
c) keywords
d) literals
Q.7 An Identifier (Name) in python can start with digit character in python : 1
A) True
B) False
Q.10 To convert the read value through input( ) into integer type, ____() function 1
is used :
a) floating
b) int
c) integer
d) float
Page 25 of 55
Q.11 Which of the following is/are correct ways to represent a string literal in 1
python :
a) \Monish\
b) “Monish”
c) ‘Monish’
d) “Monish’
Q.14 Variable once assigned a value can be given any other value : 1
a) True
b) False
Page 26 of 55
c) b-67
d) 515
Q.18 Which of the following symbols are not legal in an octal value ? 1
a) 7
b) 8
c) 9
d) 0
Q.19 Which of the following is not a legal integer type value in python ? 1
a) Decimal
b) Octal
c) Hexadecimal
d) Roman
Q.23 Which of the following function print the output to the console ? 1
a) output( )
b) display( )
c) echo( )
Page 27 of 55
d) print( )
Q.25 To print a line of text without ending it with a newline , ______ argument is 1
used with print( )
a) sep
b) newline
c) end
d) next
Q.28 The operator used to check if both the operads reference the same object 1
memory, is the ______ operator.
a) in
b) is
c) id
d) ==
Page 28 of 55
c) Only in function
d) Only in modules
Q.30 Which of the following function return you the data type of the variable in 1
python :
a) caste( )
b) type
c) int()
d) dtype( )
Q.35 The expression 8/4/2 will evaluate equivalent to which of the following 1
expression :
Page 29 of 55
a) 8/(4/2)
b) (8/4)/2
c) Wrong expression
Q.37 The expression str(int(x)) implies that the variable x which is a float datatype 1
initially is converted to integer data type after the evaluation of full
expression :
a) True
b) False
Page 30 of 55
OUTPUT,ERRORS,FLOW OF CONTROL,CONDITIONAL
STATEMENTS
Q.NO MARKS
Q.1 Which one of the following is a valid Python if statement : 1
list1 = [3 , 2 , 5 , 6 , 0 , 7, 9]
sum = 0
sum1 = 0
if (elem % 2 == 0):
continue
if (elem % 3 == 0):
print(sum1)
a. 8 9 b. 8 3 c. 2 3 d. 8 12
Page 31 of 55
Q.5 If 4+5==10: 1
print(“TRUE”)
else:
print(“false”)
print (“True”)
Q.7 2
What will be the output of the following Python code?
str1="learn python"
str2=""
str3=""
for x in str1:
str2+=x
pass
str3+=x
print(str2,end=" ")
print(str3)
a. rnpn ea
b. rnpn ear
c. rnp ea
d. rnp ear
Page 32 of 55
If x>2 or x<5 and x==6:
Print(“ok”)
else:
print(“no output”)
if(x+y= =10):
print(“true”)
else:
print(“false”)
x = float(input())
if(x==1):
print("Yes")
elif (x >= 2):
print("Maybe")
Page 33 of 55
else:
print ("No")
str1="hello"
c=0
for x in str1:
if(x!="l"):
c=c+1
else:
pass
print(c)
a. 2 b. 0 c. 4 d. 3
x=3
if x == 0:
print ("Am I here?", end = ' ')
elif x == 3:
print("Or here?", end = ' ')
else :
pass
print ("Or over here?")
Q.14 Which one of the following if statements will not execute successfully? 1
1. if (1, 2) ;
print('foo')
2. if (1, 2) :
print('foo')
3. if (1) :
print( 'foo' )
Page 34 of 55
4. if (1) ;
print( 'foo' )
a. 1 ,4 b.2 c. 2,4 d. 4
Q.15 if( a): 1
else:
Page 35 of 55
Q.24 The order of statement execution in the form of top to bottom is known as 1
construct.
Page 36 of 55
c. Python has switch statement but we can not use it.
d. None of the above
Q.33 What will be output of this expression: 1
'p' + 'q' if '12'.isdigit() else 'r' + 's'
a. pq b. rs c. pqrs d. pq12
Q.34 Which statement will check if a is equal to b? 1
a. if a = b: b. if a == b: c. if a === c: d. if a == b
Page 37 of 55
print (“Thursday”)
elif ch==5:
print (“Friday”)
elif ch==6:
print (“Saturday”)
else:
print (“Sunday”)
Q.40 Mala wants to make a fun program , if user enters any number a Good or 1
funny message will appear . She is confused that which is the most suitable
control to be used to make such program. Help her to choose correct option.
a. If b.if else c.if elif d.Nested if else
ITERATIVE STATEMENTS
Q.NO MARKS
Page 38 of 55
Q.5 Which of the following is not a valid keyword of Python associated with 1
loops?
a. continue
b. check
c. range
d. break
Q.6 Select which is true for for loop 1
a. Python’s for loop used to iterates over the items of list, tuple,
dictionary, set, or string
b. else clause of for loop is executed when the loop terminates naturally
c. else clause of for loop is executed when the loop terminates abruptly
d. We use for loop when we want to perform a task indefinitely until a
particular condition is met
Q.7 Which of the following is False regarding loops in Python? 1
a. Loops are used to perform certain tasks repeatedly.
b. while loop is used when multiple statements are to executed
repeatedly until the given condition becomes true.
c. while loop is used when multiple statements are to executed
repeatedly until the given condition becomes false
d. for loop can be used to iterate through the elements of lists.
Q.8 Which of the following is True regarding loops in Python? 1
a. Loops should be ended with keyword "end".
b. No loop can be used to iterate through the elements of strings.
c. continue is used to continue with the remaining statements inside the
loop.
d. break can be used to bring control out of the current loop.
Q.9 When does the else statement written after loop executes? 1
a. When loop condition becomes false
b. When break statement is executed in the loop
c. else statement is always executed
d. None of the above
Q.10 ________ in Python is a counter-controlled loop. 1
a. for
b. while
c. Both (a) and (b)
d. None of the above
Q.11 A count controlled loop will : 1
a. Repeat code until a condition is met
b. Repeat code a specific amount of times
c. Repeat code a random amount of times
d. None of the above
Page 39 of 55
Q.12 Upendra wants to continuously check for a correct answer each time user 1
enters a value, what loop would he use?
a. for loop
b. while loop
Q.13 What is another word for ‘iteration’ ? 1
a. Selection
b. Assignment
c. Sequencing
d. Repetition
Q.14 Upendra wants to allow the program to repeatedly ask the user to enter their 1
Choice if it does not equal the Answer. Which loop option should Upendra
use?
Q.15 Code repeated / looped until a condition has been met or a set number of 1
times.
a. Sequence
b. Iteration
c. Selection
d. Variable
Q.16 Why is iteration important? 1
a. It determines the order in which instructions are carried out
b. It allows multiple paths through a program
c. It allows code to be simplified by removing repeated steps
d. It ensures the code works correctly
Q.17 Which term describes a loop that continues repeating without a terminating 1
(ending) condition?
a. Infinite Loop
b. Conditional Loop
c. Unlimited Loop
d. Sequence Loop
Page 40 of 55
Q.18 To access a list which contains ten elements, which of the following uses of 1
range() would produce a list of the desired indexes?
a. range(1,10)
b. range(0,9)
c. range(10)
d. range(1,11)
Q.19 How would you create a loop to iterate over the contents of the list given as? 1
monthDays = [31,28,31,30,31,30,31,31,30,31,30,31]
and print out each element?
a. for days in range(monthDays):
print(days)
a. 2$
4$
6$
b. $$
$$$$
$$$$$$
c. 2$4$6$
Page 41 of 55
print(i, end = " ")
a. a
b. a a a a a a
c. a a a a a a … infinite times
d. Code will generate error
Q.22 Find the output of the following program segments: 1
a = 110
while a > 100:
print(a, end=’#’)
a –= 2
a. 110#108#106#104#102#100#
b. 110#108#106#104#102#
c. 110#108#106#104#102#
d. None of the above
Q.23 Find the output of the following program segments: 1
for i in range(20,30,2):
print(i)
a. 20 22 24 26 28
b. 20
22
24
26
28
c. 20 22 24 26 28 30
d. 20
22
24
26
28
30
Q.24 Find the output of the following program segments: 1
country = 'INDIA'
for i in country:
print (i, end='')
a. INDIA
Page 42 of 55
b. I N D I A
c. I
N
D
I
A
d. INDI
Q.25 Find the output of the following program segments: 1
i=0
sum = 0
while i < 9:
if i % 4 == 0:
sum = sum + i
i=i+2
print (sum)
a. Infinite Loop
b. 12
c. 14
d. 10
Q.26 Find the output of the following program segments: 1
for x in range(1,4):
for y in range(2,5):
if x * y > 6:
break
print (x * y)
a. b. c. d.
2 2 2 None of These
3 3 3
4 4 4
4 4 4
6 6 6
6 8 8
6 6
9 9
12
Page 43 of 55
Q.27 Iteration stands for ___________ 1
a. The order in which instructions are carried out
b. A decision point in a program
c. The repetition of steps within a program
d. Testing a program to make sure it works
Q.28 Which of the following is consider as an infinite loop? 1
a. while(infinte):
b. while(1):
c. while(not 1):
d. while(!1)
Q.29 How many times the message Hello will appear when this loop runs? 1
while(0):
print(‘Hello’)
a. Not at all
b. Only once
c. Two times
d. Infinite times
Q.30 How many times will this loop run? 1
while(1):
print(2)
a. 1 time
b. 2 times
c. 3 times
d. None of the above
Q.31 How many times will this loop run? 1
while(1==2):
pass
a. 0
b. 1
c. 3
d. Infinite
Q.32 Does Python support Exit – Controlled Loop? 1
a. Yes
b. No
c. May be
d. Don’t Know
Page 44 of 55
Q.33 Which of the following is not true for the for statement in Python? 1
a. The statements within the body of for loop are executed till the range
of values is exhausted
b. for loop iterates over the range or sequence.
c. for loop cannot be nested.
d. break statement is used to terminate a for loop without completing its
iteration.
Q.34 Which of the following call to range() in Python will not yield anything? 1
a. range(-5, -1)
b. range(-1, -5, -1)
c. range(-5)
d. All of the above
Q.35 What will be the final value of I after execution of the loop: 1
for I in range(10):
print(I)
a. 10
b. 9
c. None
d. Error
Q.36 range(3) in Python is equivalent to: 1
a. range(0,3,1)
b. range(1,4,1)
c. range(1,3)
d. range(1,3,0)
Q.37 What will be the output of the given program segment? 1
for I in range(10, 1, 1):
print(I)
print(I)
a. 10
b. 9
c. Error
d. None of the above
Q.38 Which is not correct for the repetition constructs in Python? 1
a. For a for loop, an equivalent while loop can always be written.
b. For a while loop, an equivalent for loop can be written.
c. continue cannot be used with for loops.
d. else can be used with for and while both.
Q.39 Which of the following is not a valid jump statement in Python? 1
a. break
Page 45 of 55
b. goto
c. call
d. continue
Q.40 What is the result of executing the following code? 1
count = 10
while count <= 10:
if count < 10:
count = count + 1
print(count)
a. The program will loop indefinitely
b. The value of number will be printed exactly 1 time
c. The while loop will never get executed
d. The value of number will be printed exactly 5 times
Q.NO MARKS
Q.1 What is the output of the following code ? 1
example = "snow world"
example[3] = 's'
print (example)
(a) snow (b) snow world (c) Error (d) snos world
Page 46 of 55
(a) Amazing and ZI
(b) aZing and Zin
(c) Zing and Am
(d) Azing and zin
Q.6 The__________ function returns the exact copy of the string with the first 1
letter in uppercase
(a) find()
(b) copy()
(c) upper()
(d) capitalize()
Q.7 How many times is the word “HELLO” printed in the following statement? 1
s=’python rocks’
for ch in s[3:8]:
print(‘Hello’ )
(a) 6
(b) 5
(c) infinite
(d) 8
Q.8 Find the output of the following 1
word=”green vegetables”
print(word.find(‘veg’,2)
(a) 8
(b) 6
(c) 10
(d) 12
Q.9 Given a string example=”hello” what is the output of example.count(‘l’) 1
(a) 2
(b) 1
(c) None
(d) 0
Q.10 What is the output of the following code 1
example = "helle"
example.find("e")
(a) Error
(b) -1
(c) 1
(d) 0
Q.11 What is the output of the following code 1
example = "helle"
example.rfind("e")
(a) -1
(b) 4
(c) 3
(d) 1
Page 47 of 55
Q.12 What is the output of the following code ? 1
example="helloworld"
example[::-1].startswith("d")
(a) dlrowolleh
(b) True
(c) -1
(d) None
Q.13 Suppose s is “\t\tWorld\n”, what is s.strip() ? 1
(a) \t\tWorld\n
(b) \t\tWorld\n
(c) \t\tWORLD\n
(d) World
Q.14 What is the output of the following? 1
print("xyyzxyzxzxyy".count('xyy', 2, 11))
(a) 2
(b) 0
(c) 1
(d) error
Q.15 What will be the output of the following code 1
Msg="CompuTer"
Msg1=''
for i in range(0, len(Msg)):
if Msg[i].isupper():
Msg1=Msg1+Msg[i].lower()
elif i%2==0:
Msg1=Msg1+'*'
else:
Msg1=Msg1+Msg[i].upper()
print(Msg1)
(a) cO*P*t*R
(b) Co*p*t*R
(c) co*p*t*r
(d) cOP*tR
Q.16 What is “Hello”.replace(“l”, “e”) 1
(a) Heeeo
(b) Heelo
(c) Heleo
(d) None
Q.17 What is the output of the following? 1
print("xyyzxyzxzxyy".endswith("xyy"))
(a) 1
(b) True
(c) 3
(d) 2
Page 48 of 55
Q.18 What is the output of the following? 1
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
(a) 0
(b) 1
(c) True
(d) False
Q.19 What is the output of the following? 1
print("abcdef".find("cd") == "cd" in "abcdef")
(a) True
(b) False
(c) Error
(d) None of the mentioned
Q.20 What is the output of the following? 1
print('ab12'.isalnum())
(a) True
(b) False
(c) None
(d) Error
Q.21 What is the output of the following? 1
print('ab,12'.isalnum())
(a) True
(b) False
(c) None
(d) Error
Q.22 What is the output of the following? 1
print('ab'.isalpha())
(a) True
(b) False
(c) None
(d) Error
Q.23 What is the output of the following? 1
print('a B'.isalpha())
(a) True
(b) False
(c) None
(d) Error
Q.24 What is the output of the following? 1
print(' '.isdigit())
(a) True
(b) False
(c) None
(d) Error
Q.25 What is the output of the following? 1
print('a@ 1,'.islower())
(a) True
Page 49 of 55
(b) False
(c) None
(d) Error
Q.26 What is the output of the following? 1
print(''' \tfoo'''.lstrip())
(a) \tfoo
(b) foo
(c) foo
(d) none of the mentioned
Q.27 What is the output of the following? 1
print('abcdef12'.replace('cd', '12'))
(a) ab12ef12
(b) abcdef12
(c) ab12efcd
(d) none of the mentioned
Q.28 What is the output of the following? 1
print('abcdefcdghcd'.split('cd'))
(a) [‘ab’, ‘ef’, ‘gh’].
(b) ['ab', 'ef', 'gh', '']
(c) (‘ab’, ‘ef’, ‘gh’)
(d) (‘ab’, ‘ef’, ‘gh’, ”)
Q.29 What is the output of the following? 1
print('abcdefcdghcd'.split('cd', 0))
(a) [‘abcdefcdghcd’]
(b) ‘abcdefcdghcd’
(c) error
(d) none of the mentioned
Q.30 myTuple = ("Joe", "Peter", "Vicky") 1
x = "#".join(myTuple)
print(x) will produce output
(a) Joe#Peter#Vicky
(b) #JoePeterVicky
(c) JoePeterVicky
(d) JohnPete#Vicky#
Q.31 What is the output of the following? 1
print('Ab!2'.swapcase())
(a) AB!@
(b) ab12
(c) aB!2
(d) aB1@
Q.32 What is the output of the following? 1
print('ab cd ef'.title())
(a) Ab cd ef
(b) Ab cd eF
(c) Ab Cd Ef
Page 50 of 55
(d) None of the mentioned
Q.33 Raju was solving a puzzle in which he wants to count the number of spaces. 1
Help him to complete
the following code
str1=input(“Enter the string”)
_________________________ // Statement 1
(a) print(str1.count(' ') + 1)
(b) print(str1.count(' ') )
(c) print(str1.cnt(‘’))
(d) print(str1.cnt(‘’)+1
Q.34 Consider the following case and write the code for the same 1
Given a string. Cut it into two "equal" parts (If the length of the string
is odd, place the center character in the first string, so that the first
string contains one more characther than the second). Now print a
new string on a single row with the first and second halfs
interchanged (second half first and the first half second)
s = input()
______________________ //Fill in the statement
(a) print(s[(len(s) + 1) // 2:] + s[:(len(s) + 1) // 2
(b) print(s[(len(s) + 1) // 2:]
(c) s[:(len(s) + 1) // 2
(d) None of the above
Q.35 (A) Assertion : b = "Hello, World!" print(b[:5]) will give output “Hello” 1
(R) Reason : This will give get the characters from start position(5 not
included)
Page 51 of 55
(b) A is true but R is not correct explanation of A
(c) A and B both are false
(d) A is false and R true
Q.38 (A) Assertion : You will get an error if you use double quotes inside a string 1
that is surrounded by double quotes: txt = "We are the so-called "Vikings"
from the north."
(R) Reason : To fix this problem, use the escape character \":
Page 52 of 55
ANSWER KEYS
BASIC COMPUTER ORGANSIATION
1. b 2. d 3. b 4. d 5. a
6. b 7. c 8. a 9. b 10. a
11. c 12. a 13. d 14. b 15. d
16. c 17. c 18. a 19. a 20. a
21. a 22. a 23. d 24. a 25. b
26. c 27. c 28. a 29. a 30. d
31. b 32. a 33. a 34. d 35. b
36. d 37. d 38. d 39. d 40. a
1. a 2. c 3. b 4. c 5. c
6. a 7. d 8. b 9. b 10. c
11. d 12. a 13. a 14. a 15. a
16. b 17. b 18. c 19. b 20. d
21. b 22. d 23. b 24. c 25. c
26. d 27. c 28. c 29. a 30. a
31. a 32. d 33. d 34. a 35. d
36. b 37. c 38. c 39. d 40. b
Page 53 of 55
INTRODUCTION TO PROBLEM SOLVING, INTRODUCTION TO
PYTHON, FEATURES OF PYTHON, SIMPLE PYTHON PROGRAM,
EXECUTION MODES
1.a 2.d 3.d 4.a 5.c 6.c 7.d 8.b 9.b 10.b
11.b 12.d 13.b 14.a 15.a 16.c 17.d 18.b 19.a 20.c
21.b 22.b 23.a 24.b 25.a 26.d 27.d 28.a 29.c 30.d
31.a 32.b 33.d 34.c 35.d 36.b 37.c 38.a 39.d 40.c
1. a 2. c 3. b 4. a 5. c
6. d 7. b 8. c 9. c 10. b
11. b, c 12. a 13. a 14. a 15. d
16. d 17. c 18. b, c 19. d 20. c
21. b 22. a 23. d 24. a 25. c
26. a 27. a 28. b 29. b 30. b
31. a 32. c 33. c 34. b,d 35. b
36. a 37. b 38. d 39. c 40. c
OUTPUT,ERRORS,FLOW OF CONTROL,CONDITIONAL
1. a 2. b 3. a 4. d 5. b
6. c 7. b 8. c 9. b 10. d
11. c 12. d 13. d 14. b 15. d
16. b 17. c 18. c 19. a 20. d
21. b 22. a 23. b 24. b 25. a
26. c 27. a 28. c 29. a 30. d
31. b 32. b 33. a 34. b 35. b
36. b 37. b 38. b 39. d 40. b
Page 54 of 55
ITERATIVE STATEMENTS
1. a 2. b 3. c 4. c 5. b
6. a 7. c 8. d 9. a 10. a
11. b 12. b 13. d 14. b 15. b
16. c 17. a 18. c 19. b 20. b
21. c 22. b 23. b 24. a 25. b
26. a 27. c 28. b 29. a 30. d
31. d 32. b 33. c 34. c 35. b
36. a 37. b 38. c 39. c 40. a
1. c 2. a 3. c 4. a 5. c
6. d 7. b 8. b 9. a 10. c
11. b 12. b 13. d 14. b 15. a
16. a 17. a 18. d 19. b 20. a
21. b 22. a 23. b 24. b 25. a
26. b 27. a 28. b 29. a 30. a
31. c 32. c 33. a 34. a 35. b
36. a 37. d 38. d 39. d 40. b
Page 55 of 55