Class 11th CS Objective Question
OBEJECTIVE
Computer Science – MCQs (With Answers)
1. State True or False. “Python is case-sensitive language”.
Answer: True
Answer: True
2. Which is not an input device?
a) Keyboard
b) Printer
c) Scanner
d) Mouse
a) Keyboard
b) Printer
c) Scanner
d) Mouse
3. Which of the following is a valid variable name?
a) if
b) pass
c) roll no
d) age
a) if
b) pass
c) roll no
d) age
4. Which gate outputs 1 only if both inputs are 1?
a) AND
b) XOR
c) NOR
d) NOT
a) AND
b) XOR
c) NOR
d) NOT
5. The output of
a) True
b) False
c) 0
d) 1
1 or 0 and 1 is: a) True
b) False
c) 0
d) 1
6. ALU is part of ?
a) Input Unit
b) Output Unit
c) Central Processing Unit
d) Control Unit
a) Input Unit
b) Output Unit
c) Central Processing Unit
d) Control Unit
7. What type of error is caused by misspelled keyword?
a) Logical
b) Runtime
c) Syntax
d) Compilation
a) Logical
b) Runtime
c) Syntax
d) Compilation
8. “Hello” <= “hello” gives output as:
a) True
b) False
c) Hello
d) “hello”
a) True
b) False
c) Hello
d) “hello”
9. “Hello” <= “hello” gives output as:
a) True
b) False
c) Hello
d) “hello”
a) True
b) False
c) Hello
d) “hello”
10. Which loop is best if iterations are known?
a) while loop
b) for loop
c) do while loop
d) infinite
a) while loop
b) for loop
c) do while loop
d) infinite
Computer Science – MCQs (Questions 11–21)
11. What will be the output of the following code?
b) "hello python"
c) "pythonhello"
d) "hellopython"
x = "python"
y = "hello"
print(y + x)
a) "python hello" b) "hello python"
c) "pythonhello"
d) "hellopython"
12. Run Time error occurs due to
a) Wrong Syntax
b) Misspelled Keyword
c) Logical Mistake
d) Illegal operations during execution
a) Wrong Syntax
b) Misspelled Keyword
c) Logical Mistake
d) Illegal operations during execution
13. UTF-8 is an encoding scheme of ______.
a) Images
b) Audio
c) Characters (Text)
d) Videos
a) Images
b) Audio
c) Characters (Text)
d) Videos
14. Which function will convert string “100” into integer?
a) int()
b) str()
c) float()
d) id()
a) int()
b) str()
c) float()
d) id()
15. What is the output of the following python code?
b) Empty
c) 1
d) Error
if 1:
print("Not Empty")
else:
print("Empty")
a) Not Empty b) Empty
c) 1
d) Error
16. Which of these is a logical operator?
a) ==
b) >=
c) or
d) !=
a) ==
b) >=
c) or
d) !=
17. What is the output of the following python code?
b) 2 4 6 7
c) 2 7
d) Infinite loop
n = 2
while n < 7:
print(n, end=" ")
n += 2
a) 2 4 6 b) 2 4 6 7
c) 2 7
d) Infinite loop
18. Which of these will give a runtime error?
a) print(1+3)
b) print(1/0)
c) print("Hi")
d) a = 8
a) print(1+3)
b) print(1/0)
c) print("Hi")
d) a = 8
19. Which statement is used to skip the current iteration in a loop?
a) break
b) continue
c) pass
d) exit
a) break
b) continue
c) pass
d) exit
20. Assertion (A): Interpreter works line by line
Reason (R): Hence slower than compiler.
A) Both A and R are true and R is correct explanation of A
B) Both A and R are true but R is not correct explanation of A
C) A is true but R is false
D) A is false but R is true
Reason (R): Hence slower than compiler.
A) Both A and R are true and R is correct explanation of A
B) Both A and R are true but R is not correct explanation of A
C) A is true but R is false
D) A is false but R is true
Computer Science – MCQs (Questions 21–30)
21. Assertion (A): NOR is a universal gate.
Reason (R): Any circuit can be designed using it.
A) Both A and R are true and R is correct explanation of A
B) Both A and R are true but R is not correct explanation of A
C) A is true but R is false
D) A is false but R is true
Reason (R): Any circuit can be designed using it.
A) Both A and R are true and R is correct explanation of A
B) Both A and R are true but R is not correct explanation of A
C) A is true but R is false
D) A is false but R is true
22. Which of the following is not a valid identifier name in Python? Justify reason for it not being a valid name.
a) 5Total
b) _Radius
c) pie
d) While
Reason: Identifier cannot start with a digit.
a) 5Total
b) _Radius
c) pie
d) While
Reason: Identifier cannot start with a digit.
23. Write the full form of RAM & ROM.
RAM – Random Access Memory
ROM – Read Only Memory
RAM – Random Access Memory
ROM – Read Only Memory
24. Which of the following is a relational operator in Python?
a) ?
b) <
c) =
d) and
e) //
a) ?
b) <
c) =
d) and
e) //
25. Which of the following statement create a dictionary?
a) X = { }
b) X = {"Sohan":40, "Mohan":45}
c) X = dict()
d) All of the above
a) X = { }
b) X = {"Sohan":40, "Mohan":45}
c) X = dict()
d) All of the above
26. These are the small text files for storing a small piece of information related to someone’s online habits.
i. Spyware
ii. Virus
iii. Cookies
iv. Spam
i. Spyware
ii. Virus
iii. Cookies
iv. Spam
27. Which function out of the following will return the data type of the object?
type()
id()
ord()
str()
type()
id()
ord()
str()
28. Which of the following falls under utilities?
i. Text Editor
ii. Backup
iii. Disk Defragmenter
iv. All of these
i. Text Editor
ii. Backup
iii. Disk Defragmenter
iv. All of these
29. This term refers to a person who purposely posts opposing, sarcastic, demeaning or insulting comments about something or someone.
a) Cyber Criminal
b) Cyber Thief
c) Cyber troll
d) Cyber stalker
a) Cyber Criminal
b) Cyber Thief
c) Cyber troll
d) Cyber stalker
30. This term refers to a person who purposely posts opposing, sarcastic, demeaning or insulting comments about something or someone.
a) Cyber Criminal
b) Cyber Thief
c) Cyber troll
d) Cyber stalker
a) Cyber Criminal
b) Cyber Thief
c) Cyber troll
d) Cyber stalker
Computer Science – MCQs (Questions 31–40)
31. Unauthorized monitoring of other people’s communication is called:
a) Spamming
b) Malware
c) Adware
d) Eavesdropping
a) Spamming
b) Malware
c) Adware
d) Eavesdropping
32. Which of the following are the example of system software:
a) Operating system
b) MS Office
c) Aarogya Setu app
d) Games
a) Operating system
b) MS Office
c) Aarogya Setu app
d) Games
33. Ramesh wants to print all the key values of the dictionary (D). Which command should he use?
a) print(d.key())
b) print(D.keys())
c) print(D.keys)
d) print(d.key_values())
a) print(d.key())
b) print(D.keys())
c) print(D.keys)
d) print(d.key_values())
34. Identify the valid declaration of L:
L = ['JAN', '12', 'NEW YEAR', '365']
a) dictionary
b) string
c) tuple
d) list
L = ['JAN', '12', 'NEW YEAR', '365']
a) dictionary
b) string
c) tuple
d) list
35. Suppose list = [0,1,2,3]. The statement
a) [0,1,2,3,0,1,2,3]
b) [0,1,2,3,1,2,3]
c) [0,2,4,6]
d) [0,1,2,3]
print(list * 2) will print: a) [0,1,2,3,0,1,2,3]
b) [0,1,2,3,1,2,3]
c) [0,2,4,6]
d) [0,1,2,3]
36. The physical components of computer system are known as __________
a) Software
b) Hardware
c) Humanware
d) Drivers
a) Software
b) Hardware
c) Humanware
d) Drivers
37. 8 bits makes __________
a) 1 Byte
b) 1 KB
c) 1 MB
d) 1 Nibble
a) 1 Byte
b) 1 KB
c) 1 MB
d) 1 Nibble
38. Which of the following is not a logical gate?
a) AND
b) OR
c) NOT
d) NONE
a) AND
b) OR
c) NOT
d) NONE
39. When Python was developed?
a) 1990
b) 1991
c) 1992
d) 1993
a) 1990
b) 1991
c) 1992
d) 1993
40. To run Python program which of the following key is used?
a) Ctrl + F5
b) Alt + F5
c) Ctrl + F9
d) F5
a) Ctrl + F5
b) Alt + F5
c) Ctrl + F9
d) F5
Computer Science – MCQs (Questions 41–50)
41. Which of the following is not a Python token?
a) Keyword
b) Literals
c) List
d) Operators
a) Keyword
b) Literals
c) List
d) Operators
42. What will be the output of the following code segment?
b) 6 + 5
c) 11
d) None
a, b = 5, 6
b, a = a, b
print(a, "+", b)
a) 5 + 6 b) 6 + 5
c) 11
d) None
43. Riza wants to divide a number and store the result without decimal places into an integer variable. Suggest an appropriate operator:
a) /
b) %
c) //
d) Both a) & b)
a) /
b) %
c) //
d) Both a) & b)
44. Dhyana wants to terminate the while loop at the end of program. Suggest a suitable keyword:
a) terminate
b) break
c) continue
d) stop
a) terminate
b) break
c) continue
d) stop
45. Rudra wants to access the second last element of list L. Which option is correct?
a) L[2]
b) L[-2]
c) L[len(l)-2]
d) L-2
a) L[2]
b) L[-2]
c) L[len(l)-2]
d) L-2
46. Consider the statements:
a) <class 'int'>
b) <class 'tuple'>
c) <class 'list'>
d) <class 'str'>
a = 56, 78, 32, 12
print(type(a))
What will be the output? a) <class 'int'>
b) <class 'tuple'>
c) <class 'list'>
d) <class 'str'>
47. Observe the given declarations:
a) i and ii
b) i, ii and iv
c) i, iii and iv
d) i and iii
i. d = {}
ii. d = dict()
iii. d = Dict()
iv. d = dict.fromkeys()
Which of the following are correct ways to create an empty dictionary? a) i and ii
b) i, ii and iv
c) i, iii and iv
d) i and iii
48. Jay forgot to sign off from his email account. Rishi uses Jay’s email to send inflammatory messages. This is an example of:
a) Hacking
b) Identity theft
c) Cyber bullying
d) Plagiarism
a) Hacking
b) Identity theft
c) Cyber bullying
d) Plagiarism
49. Which act protects against cybercrime in India?
a) Indian IT Act
b) India Computer Security Act
c) Indian Cyber Law
d) Indian Data Security Law
a) Indian IT Act
b) India Computer Security Act
c) Indian Cyber Law
d) Indian Data Security Law
50. Assertion (A): Python lists allow modification of elements using indexes easily.
Reason (R): Python lists are mutable.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
Reason (R): Python lists are mutable.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
Computer Science – MCQs (Questions 51–60)
51. Assertion (A): Data submitted online intentionally known as active digital footprint.
Reasoning (R): Active digital footprints includes emails, replies, comments or posts made on different websites or apps.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
Reasoning (R): Active digital footprints includes emails, replies, comments or posts made on different websites or apps.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
52. Which of the following is a valid data type in Python?
a) Real
b) Float
c) Decimal
d) Letter
a) Real
b) Float
c) Decimal
d) Letter
53. What will the following expression be evaluated to in Python?
b) 16
c) 64
d) 8
2**2**2
a) 16 b) 16
c) 64
d) 8
54. State True or False: “Python is a low-level language”.
False
False
55. 1 KB of data is equivalent to
a) 1024 bits
b) 2²⁰ bytes
c) 2⁻¹⁰ Mb
d) 2¹³ bits
a) 1024 bits
b) 2²⁰ bytes
c) 2⁻¹⁰ Mb
d) 2¹³ bits
56. 1 KB of data is equivalent to
a) 1024 bits
b) 2²⁰ bytes
c) 2⁻¹⁰ Mb
d) 2¹³ bits
a) 1024 bits
b) 2²⁰ bytes
c) 2⁻¹⁰ Mb
d) 2¹³ bits
57. IDLE stands for
a) Information Development Logic Environment
b) Interaction Development Logic Environment
c) Integrated Development and Learning Environment
d) Interaction Developer and Logic Environment
a) Information Development Logic Environment
b) Interaction Development Logic Environment
c) Integrated Development and Learning Environment
d) Interaction Developer and Logic Environment
58. Write the full form of ASCII.
American Standard Code for Information Interchange
American Standard Code for Information Interchange
59. Which of the following is a wrong pair of application and category?
a) WhatsApp: General Purpose software
b) Gmail: Customised software
c) Python: Free and Open-Source software
d) MS Word: Proprietary software
a) WhatsApp: General Purpose software
b) Gmail: Customised software
c) Python: Free and Open-Source software
d) MS Word: Proprietary software
60. __________ is a language translator which reads a program line-by-line when run.
a) Compiler
b) Assembler
c) Transmitter
d) Interpreter
a) Compiler
b) Assembler
c) Transmitter
d) Interpreter
Computer Science – MCQs (Questions 61–70)
61. Which of the following is true for Secondary memory?
a) It is faster than Primary memory
b) It is directly accessed by the CPU
c) It is faster than RAM
d) It is a non-volatile memory
a) It is faster than Primary memory
b) It is directly accessed by the CPU
c) It is faster than RAM
d) It is a non-volatile memory
62. The base values of binary, octal and hexadecimal are
a) 10, 80 and 160 respectively
b) 4, 8 and 16 respectively
c) 2, 8 and 16 respectively
d) 1, 8 and 16 respectively
a) 10, 80 and 160 respectively
b) 4, 8 and 16 respectively
c) 2, 8 and 16 respectively
d) 1, 8 and 16 respectively
63. Assertion (A): Python is not a low-level language.
Reason (R): It uses English-like words and simple syntax which is very easy to understand to humans.
Correct option: Both A and R are true and R is the correct explanation of A
Reason (R): It uses English-like words and simple syntax which is very easy to understand to humans.
Correct option: Both A and R are true and R is the correct explanation of A
64. Assertion (A): Variables are not containers in Python.
Reason (R): Variables in Python don't directly store the data but they reference objects in memory.
Correct option: Both A and R are true and R is the correct explanation of A
Reason (R): Variables in Python don't directly store the data but they reference objects in memory.
Correct option: Both A and R are true and R is the correct explanation of A
65. A browser is a __________
a) System Software
b) General Purpose Software
c) IDE Tools
d) Language Processor
a) System Software
b) General Purpose Software
c) IDE Tools
d) Language Processor
66. 56 is the ASCII value of
a) 7
b) d
c) 8
d) D
a) 7
b) d
c) 8
d) D
67. Which of the following is correct for NOR operation?
a) (AB)’
b) (A + B)’
c) AB
d) A + B
a) (AB)’
b) (A + B)’
c) AB
d) A + B
68. Which of the following is not a Python distribution?
a) CPython
b) Anaconda
c) PyCharm
d) Visual Studio
a) CPython
b) Anaconda
c) PyCharm
d) Visual Studio
69. Which of the following Python mode allows writing a program with multiple lines?
a) Interactive Mode
b) Script Mode
c) Client Mode
d) Debug Mode
a) Interactive Mode
b) Script Mode
c) Client Mode
d) Debug Mode
70. Identify Python keyword from the following:
a) if
b) max
c) min
d) math
a) if
b) max
c) min
d) math
Computer Science – MCQs (Questions 71–79)
71. What will be the output of the following code segment?
b) 9#8
c) 27#4
d) 4#27
a, b = 2, 3
a, b = b**3, a**2
print(a, "#", b)
a) 8#9 b) 9#8
c) 27#4
d) 4#27
72. Which of the following symbol is not an operator?
a) /
b) %
c) //
d) #
a) /
b) %
c) //
d) #
73. The while loop that does not have an update statement is called ______
a) empty while loop
b) infinite while loop
c) do while loop
d) static while loop
a) empty while loop
b) infinite while loop
c) do while loop
d) static while loop
74. Consider the list L = [2, 4, 3, 5]. Which option refers to element 4?
a) L[2]
b) L[-3]
c) L[3]
d) L[-2]
a) L[2]
b) L[-3]
c) L[3]
d) L[-2]
75. Suppose t = (5, 7, 3, 2). Which of the following statement is incorrect?
a) print(t[1:])
b) print(t + 5)
c) print(t * 5)
d) t = list(t)
a) print(t[1:])
b) print(t + 5)
c) print(t * 5)
d) t = list(t)
76. Which of the following is not considered as IPR?
a) Copyright
b) Patent
c) Digital footprint
d) Trademark
a) Copyright
b) Patent
c) Digital footprint
d) Trademark
77. Which of the following is a popular category of public licenses?
a) GNU GPL
b) Creative Commons
c) Both a) & b)
d) None of these
a) GNU GPL
b) Creative Commons
c) Both a) & b)
d) None of these
78. Assertion (A): Viruses are malicious programs.
Reasoning (R): WORM stands for Write Once Read More.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
Reasoning (R): WORM stands for Write Once Read More.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
79. Assertion (A): List elements can also be accessed via negative indexes.
Reasoning (R): Python lists follow positional indexes.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True
Reasoning (R): Python lists follow positional indexes.
A) Both (A) and (R) are true and (R) is the correct explanation of (A)
B) Both (A) and (R) are true but (R) is not the correct explanation of (A)
C) (A) is True but (R) is False
D) (A) is False but (R) is True