Fill in the blanks Questions with Answer in Python

1. Python was created by ________________________.

Ans: GUIDO VAN ROSSIUM 

2. Python is a ______________ level language.

Ans: High

3. An ordered set of instructions or commands to be executed by a computer is called a _________

Ans: Program

4.  Smallest individual unit in a program is known as ______.

Ans: Token

5.  The full form of IDLE is _______________________

Ans: Integrated Development and Learning Environment

6. __________ are reserved words.

Ans: Keywords

7.  ___________ is an identifier whose value can change

Ans: Variable

8. A _____________ is a named memory location that stores the data.

Ans: Variable

9. Python _______________ cannot be used as a variable name.

Ans: Keyword

10. Insert the missing part of the code below to output

_______ “Hello World”.

Ans: print

11. Python has ___________ function to output data to a standard output device.

Ans: print

12. Python has __________ function for taking user input.

Ans: input

13. Python provides us _______ to read input from the keyboard.

Ans: input() function

14. Create a variable named x and assign the value 50 to it ? _______ = 50.

Ans: x

15.  ___________ are used to add a remark or a note to the developer in the source code.

Ans: Comments 

16. Comments in Python are written with a special character, which one? ______.

Ans: #

17. Python uses ___________ to identify a block of code.

Ans: Indentation

18. String is a sequence of __________.

Ans: Characters

19.  An __________ is a combination of values, variables, and operators.

Ans: Expression

20.  Variables whose values can be changed after they are created and assigned are called ____________.

Ans: Mutable

21. ____________________ is mutable.

Ans: Set, List or Dictionary

22.  Tuple is ____________ whereas list is __________.

Ans: Immutable,  mutable

23.  Standard mapping data type in Python called ___________

Ans: dictionary 

24. __________ is a sequence of definitions and commands.

Ans: Script

25. ___________ operator is used to assign value of an expression to a variable.

Ans: Assignment

26. ___________ operators are used to check conditions or comparison of operands.

Ans: Relational

27. __________ statements in Python play a key role in determining the direction of program execution.

Ans: Conditional

28. The _______ statement is used for decision making.

Ans: If

29. The if() statement accepts__________ values.

Ans: Boolean (True or False)

30. ____________ allows sections of code to be executed repeatedly under some condition.

Ans: Looping

31.  _______ statement can be used to iterate over a range of values or a sequence.

Ans: For

32. ___________ errors are difficult to find out.

Ans: Logical

33. The process of identifying and removing logical errors and runtime errors is called ___________

Ans: Debugging

34.  Python has many predefined functions called ___________ functions.

Ans: built-in

35.  User defined function uses ___________ keyword

Ans: def

6 thoughts on “Fill in the blanks Questions with Answer in Python”

  1. Usually I do not read article on blogs however I would like to say that this writeup very compelled me to take a look at and do so Your writing taste has been amazed me Thanks quite nice post

    Reply

Leave a Comment