Python Revision Tour Class 12 MCQ

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

Show Answer ⟶
a. Program

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

Show Answer ⟶
c. Both a) and b)

3. A high-level language programme is referred to as _________.
a. Machine code
b. Source code 
c. Language
d. None of the above

Show Answer ⟶
b. Source code

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

Show Answer ⟶
b. One by one

5. Python is a __________.
a. Machine level language
b. High level language 
c. Low level language
d. All of the above

Show Answer ⟶
b. High level language

6. Python is __________.
a. Free language
b. Open source language
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

7. Python support __________.
a. Assembler
b. Interpreter 
c. Compiler
d. None of the above

Show Answer ⟶
b. Interpreter

8. Python programs are ___________.
a. Easy to understand
b. Relatively simple structure
c. Clearly defined syntax
d. All of the above 

Show Answer ⟶
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

Show Answer ⟶
a. Case – sensitive

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

Show Answer ⟶
c. Both a) and b)

11. What is the purpose of indentation in python __________.
a. Nested Blocks
b. Blocks
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

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

Show Answer ⟶
c. Both a) and b)

13. The interpreter is also known as _______.
a. Shell 
b. Program
c. Cell
d. None of the above

Show Answer ⟶
a. Shell

14. The python application must be run __________.
a. Script mode
b. Interactive mode
c. Both a) and b) 
d. None of the above

Show Answer ⟶
c. Both a) and b)

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

Show Answer ⟶
a. Interactive mode

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

Show Answer ⟶
b. Script mode

17. We can just type a Python statement on the _____________ prompt to operate in interactive mode.
a. >>> 
b. >>
c. >
d. None of the above

Show Answer ⟶
a. >>>

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

Show Answer ⟶
b. File

19. What is the extension of python __________.
a. .py 
b. .pp
c. .ppy
d. .pyy

Show Answer ⟶
a. .py


20. Which one is the reserve word in python.
a. Keyword 
b. Program
c. Interpreter
d. None of the aboveShow Answer ⟶
a. Keyword

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 

Show Answer ⟶
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 

Show Answer ⟶
d. All of the above

23. __________ uniquely identified in the program.
a. Identifier 
b. Keyword
c. Code
d. None of the above

Show Answer ⟶
a. Identifier

24. Variable in python refers to an ________.
a. Keyword
b. Object 
c. Alphabets
d. None of the above

Show Answer ⟶
b. Object

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

Show Answer ⟶
c. Both a) and b)

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

Show Answer ⟶
b. Variable

27. ___________ are used to give remark note in the source code.
a. Keyword
b. Source
c. Comment 
d. None of the above

Show Answer ⟶
c. Comment

28. __________ are ignored by the python interpreter.
a. Keyword
b. Source
c. Comment 
d. None of the above

Show Answer ⟶
c. Comment

29. ________ helps to start python comment in program.
a. # 
b. @
c. %
d. $

Show Answer ⟶
a. #

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

Show Answer ⟶
a. Object

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

Show Answer ⟶
a. Data type

32. In python Number data type is defined as ________.
a. int
b. float
c. complex
d. All of the above 

Show Answer ⟶
d. All of the above

33. ________ subtype of integer data type.
a. Boolean 
b. string
c. list
d. None of the above

Show Answer ⟶
a. Boolean

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

Show Answer ⟶
b. Sequence

35. Sequence data types fall under the _________ category.
a. Strings
b. Lists
c. Tuples
d. All of the above 

Show Answer ⟶
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

Show Answer ⟶
b. String

37. You can store the ___________ data in a string.
a. Alphabets
b. Digits
c. Special character including space
d. All of the above 

Show Answer ⟶
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

Show Answer ⟶
a. List

39. __________ is a list of items enclosed in parenthesis and separated by commas ( ).
a. List
b. Tuple 
c. String
d. None of the above

Show Answer ⟶
b. Tuple

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

Show Answer ⟶
b. Set

41. ________ data type cannot support duplicate entries.
a. List
b. Set 
c. String
d. None of the above

Show Answer ⟶
b. Set

42. A unique data type called _________ has only one value.
a. List
b. Set
c. String
d. None 

Show Answer ⟶
d. None

43. ___________ In Python, data elements are stored as key-value pairs..
a. Dictionary 
b. Set
c. String
d. None

Show Answer ⟶
a. Dictionary

44. Items in a dictionary are enclosed in __________.
a. Parenthesis ()
b. Brackets []
c. Curly brackets {} 
d. All of the above

Show Answer ⟶
c. Curly brackets {}

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

Show Answer ⟶
a. Colon (:)

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

Show Answer ⟶
b. Mutable

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

Show Answer ⟶
a. Immutable

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

Show Answer ⟶
b. Set

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

Show Answer ⟶
a. Operands

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

Show Answer ⟶
a. Arithmetic Operator

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

Show Answer ⟶
b. Exponent (**)

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

Show Answer ⟶
c. Relational Operator

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

Show Answer ⟶
b. Assignment Operator

54. Which of the logical operators listed below is supported by Python.
a. and
b. or
c. not
d. All of the above 

Show Answer ⟶
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

Show Answer ⟶
a. and

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

Show Answer ⟶
c. Identity Operator

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

Show Answer ⟶
c. Identity Operator

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

Show Answer ⟶
b. Membership Operators

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

Show Answer ⟶
a. Expressions

60. The expression is evaluated using a ____________ operators.
a. Expressions
b. Precedence 
c. Both a) and b)
d. None of the above

Show Answer ⟶
b. Precedence

61. Which of the following belongs to membership operators.
a. in
b. not
c. in
d. All of the above 

Show Answer ⟶
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

Show Answer ⟶
c. Both a) and b)

63. The _____________ function in Python is available for accepting user input.
a. prompt()
b. input() 
c. in()
d. None of the above

Show Answer ⟶
b. input()

64. The ____________ function in Python is available for showing the output.
a. prompt()
b. output()
c. print() 
d. None of the above

Show Answer ⟶
c. print()

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

Show Answer ⟶
a. Explicit conversion

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

Show Answer ⟶
b. Implicit conversion

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

Show Answer ⟶
c. Both a) and b)

68. Another name for finding and fixing programme bugs or problems is ___________.
a. Debugging 
b. Mistakes
c. Error
d. None of the above

Show Answer ⟶
a. Debugging

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 

Show Answer ⟶
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

Show Answer ⟶
b. Logical error

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

Show Answer ⟶
c. Runtime error

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 

Show Answer ⟶
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

Show Answer ⟶
a. Non – executable

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

Show Answer ⟶
b. Identifier

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

Show Answer ⟶
a. Debugging

Computer Science Class 12 Notes

  1. Python Revision tour – 1 Class 12 Notes
  2. Python Revision tour – 2 Class 12 Notes Notes
  3. Working with Functions Class 12 Notes
  4. Using Python Libraries Class 12 Notes
  5. File Handling Class 12 Notes
  6. Recursion Class 12 Notes
  7. Idea of Algorithmic Efficiency Class 12 Notes
  8. Data Visualization using Pyplot Class 12 Notes
  9. Data Structure Class 12 Notes
  10. Computer Network Class 12 Notes
  11. More on MySQL Class 12 Notes

MCQ for Class 12 Computer Science Python

  1. Python Revision tour – 1 Class 12 MCQs
  2. Python Revision tour – 2 Class 12 MCQs
  3. Working with Functions Class 12 MCQs
  4. Using Python Libraries Class 12 MCQs
  5. File Handling Class 12 MCQs
  6. Recursion Class 12 MCQs
  7. Data Visualization using Pyplot Class 12 MCQs
  8. Data Structure Class 12 MCQs
  9. Computer Network Class 12 MCQs
  10. More on MySQL Class 12 MCQs

Computer Science Class 12 Questions and Answers

  1. Python Revision tour – 1 Class 12 Questions and Answers
  2. Working with Functions Class 12 Questions and Answers
  3. Using Python Libraries Class 12 Questions and Answers
  4. File Handling Class 12 Questions and Answers
  5. Recursion Class 12 Questions and Answers
  6. Idea of Algorithmic Efficiency Class 12 Questions and Answers
  7. Data Structure Class 12 Questions and Answers
  8. More on MySQL Class 12 Questions and Answers
  9. Computer Network Class 12 Questions and Answers
  10. More on MySQL Class 12 Questions and Answers 

Leave a Comment

error: Content is protected !!