Teachers and Examiners (CBSESkillEduction) collaborated to create the Python Revision Tour Class 12 MCQ. All the important Information are taken from the NCERT Textbook Computer Science (083) class 12.
Python Revision Tour Class 12 MCQ
1. A ___________ is an organised series of instructions that a computer is supposed to follow in order to complete a particular task.
a. Program
b. Code
c. Instruction
d. None of the above
2. Computers may communicate using a language made up of 0s and 1s known as ____________.
a. Low level language
b. Machine language
c. Both a) and b)
d. None of the above
3. A high-level language programme is referred to as _________.
a. Machine code
b. Source code
c. Language
d. None of the above
4. The programme statements were interpreted by a _____________.
a. All the source at a time
b. One by one
c. Both a) and b)
d. None of the above
5. Python is a __________.
a. Machine level language
b. High level language
c. Low level language
d. All of the above
6. Python is __________.
a. Free language
b. Open source language
c. Both a) and b)
d. None of the above
7. Python support __________.
a. Assembler
b. Interpreter
c. Compiler
d. None of the above
8. Python programs are ___________.
a. Easy to understand
b. Relatively simple structure
c. Clearly defined syntax
d. All of the above
9. Python is _________.
a. Non case – sensitive
b. Case – sensitive
c. Both a) and b)
d. None of the above
10. Python is platform independent, it means that ___________.
a. It can run various hardware platforms
b. It can run various operating systems
c. Both a) and b)
d. None of the above
11. What is the purpose of indentation in python __________.
a. Nested Blocks
b. Blocks
c. Both a) and b)
d. None of the above
12. In order to develop and execute a Python programme, we ____________.
a. We can use any online python interpreter
b. Python interpreter installed on the computer
c. Both a) and b)
d. None of the above
13. The interpreter is also known as _______.
a. Shell
b. Program
c. Cell
d. None of the above
14. The python application must be run __________.
a. Script mode
b. Interactive mode
c. Both a) and b)
d. None of the above
15. The instantaneous execution of each statement is possible using _____________.
a. Script mode
b. Interactive mode
c. Both a) and b)
d. None of the above
16. We can write several instructions in a file called Python source code using _____________ .
a. Script mode
b. Interactive mode
c. Both a) and b)
d. None of the above
17. We can just type a Python statement on the _____________ prompt to operate in interactive mode.
a. >>>
b. >>
c. >
d. None of the above
18. A Python programme can be written in the script mode, saved, and then run using the ___________.
a. Folder
b. File
c. Prompt
d. All of the above
19. What is the extension of python __________.
a. .py
b. .pp
c. .ppy
d. .pyy
20. Which one is the reserve word in python.
a. Keyword
b. Program
c. Interpreter
d. None of the aboveShow Answer ⟶
21. Python has Specific rules for naming identifiers.
a. It can be of any length
b. Name should begin with an uppercase, lowercase or underscore
c. It should not be a keyword
d. All of the above
22. Python does not permit the use of _________ special symbols when defining variables.
a. @
b. # and !
c. $ and %
d. All of the above
23. __________ uniquely identified in the program.
a. Identifier
b. Keyword
c. Code
d. None of the above
24. Variable in python refers to an ________.
a. Keyword
b. Object
c. Alphabets
d. None of the above
25. If you want to declare string in the program, which option is used to hold the string.
a. Double quotes “”
b. Single quotes ”
c. Both a) and b)
d. None of the above
26. Before being used in expressions, ____________ must always have a value assigned to it.
a. Keyword
b. Variable
c. Code
d. None of the above
27. ___________ are used to give remark note in the source code.
a. Keyword
b. Source
c. Comment
d. None of the above
28. __________ are ignored by the python interpreter.
a. Keyword
b. Source
c. Comment
d. None of the above
29. ________ helps to start python comment in program.
a. #
b. @
c. %
d. $
30. Python treats each value or piece of data, whether it be a string, a number, or another kind (described in the following section), as a ___________.
a. Object
b. Variable
c. Keyword
d. None of the above
31. A variable’s ___________ specifies the kinds of data values it may store and the operations that can be carried out on those values.
a. Data type
b. Data base
c. Both a) and b)
d. None of the above
32. In python Number data type is defined as ________.
a. int
b. float
c. complex
d. All of the above
33. ________ subtype of integer data type.
a. Boolean
b. string
c. list
d. None of the above
34. An ordered group of elements is referred to as a Python sequence.
a. Number
b. Sequence
c. Both a) and b)
d. None of the above
35. Sequence data types fall under the _________ category.
a. Strings
b. Lists
c. Tuples
d. All of the above
36. Python has a group of characters known as ____________.
a. Number
b. String
c. Boolean
d. All of the above
37. You can store the ___________ data in a string.
a. Alphabets
b. Digits
c. Special character including space
d. All of the above
38. __________ is a list of items that are enclosed in square brackets [ ] and are separated by commas.
a. List
b. Tuple
c. String
d. None of the above
39. __________ is a list of items enclosed in parenthesis and separated by commas ( ).
a. List
b. Tuple
c. String
d. None of the above
40. _________ is a list of items that are not in any particular order and are enclosed in curly brackets { }.
a. List
b. Set
c. String
d. None of the above
41. ________ data type cannot support duplicate entries.
a. List
b. Set
c. String
d. None of the above
42. A unique data type called _________ has only one value.
a. List
b. Set
c. String
d. None
43. ___________ In Python, data elements are stored as key-value pairs..
a. Dictionary
b. Set
c. String
d. None
44. Items in a dictionary are enclosed in __________.
a. Parenthesis ()
b. Brackets []
c. Curly brackets {}
d. All of the above
45. Every key and value in the dictionary are separated from one another by a __________.
a. Colon (:)
b. Semicolon (;)
c. Comma (,)
d. All of the above
46. It is known as ________, to refer to variables whose values can be modified after they have been created and assigned.
a. Immutable
b. Mutable
c. Both a) and b)
d. None of the above
47. The term _________ refers to variables whose values cannot be modified once they have been created and assigned.
a. Immutable
b. Mutable
c. Both a) and b)
d. None of the above
48. It is recommended to use _____________ when we need uniqueness of elements and to prevent duplication.
a. List
b. Set
c. Tuple
d. All of the above
49.The values that are used by the operators are referred to as __________.
a. Operands
b. Assignment
c. Mathematical Operator
d. All of the above
50. Which include the four fundamental arithmetic operations, modular division, floor division, and exponentiation.
a. Arithmetic Operator
b. Logical Operator
c. Relational Operator
d. All of the above
51. Operand-based computation is used. Raising the operand on the left to the power of the operand on the right is what this means.
a. Floor Division (//)
b. Exponent (**)
c. Modulus (%)
d. None of the above
52. ___________by comparing the operand values on each side, We can ascertain their relationship.
a. Arithmetic Operator
b. Logical Operator
c. Relational Operator
d. All of the above
53. The variable on its left has its value either assigned or modified by ___________ operator.
a. Relational Operator
b. Assignment Operator
c. Logical Operator
d. All of the above
54. Which of the logical operators listed below is supported by Python.
a. and
b. or
c. not
d. All of the above
55. Use the ___________ operator to verify that both operands are true.
a. and
b. or
c. not
d. All of the above
56. To determine whether a variable’s value belongs to a specific type or not, __________ are used.
a. Relational Operator
b. Logical Operator
c. Identity Operator
d. All of the above
57. It is also possible to use ___________ to assess whether or not two variables are referring to the same thing.
a. Relational Operator
b. Logical Operator
c. Identity Operator
d. All of the above
58. To determine if a value is a member of the given sequence or not, membership operators are used _________.
a. Identity Operator
b. Membership Operators
c. Relational Operators
d. All of the above
59. A combination of constants, variables, and operators is known as a ____________.
a. Expressions
b. Precedence
c. Both a) and b)
d. None of the above
60. The expression is evaluated using a ____________ operators.
a. Expressions
b. Precedence
c. Both a) and b)
d. None of the above
61. Which of the following belongs to membership operators.
a. in
b. not
c. in
d. All of the above
62. Which of the following belong to identity operators.
a. is
b. is not
c. Both a) and b)
d. None of the above
63. The _____________ function in Python is available for accepting user input.
a. prompt()
b. input()
c. in()
d. None of the above
64. The ____________ function in Python is available for showing the output.
a. prompt()
b. output()
c. print()
d. None of the above
65. When data type conversion occurs because the programmer compelled it in the programme, _________ is also known as type casting.
a. Explicit conversion
b. Implicit conversion
c. Both a) and b)
d. None of the above
66. When Python converts data types automatically without the programmer’s instruction, this is referred to as ______________, or coercion.
a. Explicit conversion
b. Implicit conversion
c. Both a) and b)
d. None of the above
67. A programmer’s errors can prevent a programme from running properly or from producing the intended results. The method for locating and fixing such errors is known as ____________.
a. Bugs
b. Errors
c. Both a) and b)
d. None of the above
68. Another name for finding and fixing programme bugs or problems is ___________.
a. Debugging
b. Mistakes
c. Error
d. None of the above
69. Which of the subsequent errors can be found in Python scripts.
a. Syntax error
b. Logical error
c. Runtime error
d. All of the above
70. A _________ produces an undesired output but without abrupt termination of the execution of the program.
a. Syntax error
b. Logical error
c. Runtime error
d. All of the above
71. The programme is abnormally terminated while it is running due to a _________.
a. Syntax error
b. Logical error
c. Runtime error
d. All of the above
72. Python is a ______________ language that may be utilised for a variety of computing needs, both scientific and non-scientific.
a. Open – source
b. High level
c. Interpreter – based
d. All of the above
73. In a programme, comments are ________ statements.
a. Non – executable
b. Executable
c. Both a) and b)
d. None of the above
74. A user-defined name for a variable or constant in a programme is ___________.
a. Keyword
b. Identifier
c. Data type
d. All of the above
75. A computer program’s mistakes are found and fixed by a procedure known as _____________.
a. Debugging
b. Mistakes
c. Error
d. None of the above
Computer Science Class 12 Notes
- Python Revision tour – 1 Class 12 Notes
- Python Revision tour – 2 Class 12 Notes Notes
- Working with Functions Class 12 Notes
- Using Python Libraries Class 12 Notes
- File Handling Class 12 Notes
- Recursion Class 12 Notes
- Idea of Algorithmic Efficiency Class 12 Notes
- Data Visualization using Pyplot Class 12 Notes
- Data Structure Class 12 Notes
- Computer Network Class 12 Notes
- More on MySQL Class 12 Notes
MCQ for Class 12 Computer Science Python
- Python Revision tour – 1 Class 12 MCQs
- Python Revision tour – 2 Class 12 MCQs
- Working with Functions Class 12 MCQs
- Using Python Libraries Class 12 MCQs
- File Handling Class 12 MCQs
- Recursion Class 12 MCQs
- Data Visualization using Pyplot Class 12 MCQs
- Data Structure Class 12 MCQs
- Computer Network Class 12 MCQs
- More on MySQL Class 12 MCQs
Computer Science Class 12 Questions and Answers
- Python Revision tour – 1 Class 12 Questions and Answers
- Working with Functions Class 12 Questions and Answers
- Using Python Libraries Class 12 Questions and Answers
- File Handling Class 12 Questions and Answers
- Recursion Class 12 Questions and Answers
- Idea of Algorithmic Efficiency Class 12 Questions and Answers
- Data Structure Class 12 Questions and Answers
- More on MySQL Class 12 Questions and Answers
- Computer Network Class 12 Questions and Answers
- More on MySQL Class 12 Questions and Answers