Fill in the blanks Questions with Answer, Python

1. Python was created by _____.

Answer: GUIDO VAN ROSSIUMĀ 

2. Python is a ______________ level language.

Answer: High

3. Python is written in _______ language.

    Answer: C

    4.Ā Ā The full form of IDLE is ________

    Answer: Integrated Development and Learning Environment

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

    Answer: Program

    6.Ā Ā Smallest individual unit in a program is known as __________.

    Answer: Token

    7. __________ is a sequence of definitions and commands.

    Answer: Script

    8. String is a sequence of _______.

      Answer: Characters

      9.Ā __________ are reserved words.

      Answer: Keywords

      10.Ā Ā ___________ is an identifier whose value can change.

      Answer: Variable

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

      Answer: Variable

      12. When a new value is stored in a variable, its previous value gets _______________.

        Answer: overwritten.

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

        Answer: Keyword

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

        _______ ā€œHello Worldā€.

        Answer: print

        15. ________ is the extension of the Python file.

          Answer:  .py

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

          Answer: print

          17. Python has __________ function for taking user input.

          Answer: input

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

          Answer: input() function

          19. _______ function in Python is used to display data as output.

            Answer: print()

            20. To store a whole number in Python, the ________ data type is used.

            Answer: int

            21. In Python, the _______ data type is used to store a sequence of characters.

              Answer: str

              22. ________ data type you would use to store a whole number in Python.

              Answer: int

              23. To store a decimal number in Python, the ________ data type is used.

              Answer: float

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

              Answer: x

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

              Answer: CommentsĀ 

              26. Comments in Python are written with a special character ______.

              Answer: #

              27. ______ character is used to give single-line comments in Python.

                Answer:  #

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

                Answer: Indentation

                29. __________Ā  is used to define a block of code in Python language.

                  Answer: indentation

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

                  Answer: Expression

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

                    Answer: Assignment (=)

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

                    Answer: Relational

                    33.Ā Ā Ā  ________ operator can be used to compare two values.

                    Answer: comparison or relational operator (==) Ā 

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

                    Answer: Conditional

                    35. ________ statement is used for conditional branching.

                      Answer: if

                      36. The _______ statement is used for decision making.

                      Answer: If

                      37. The if() statement accepts__________ values.

                      Answer: Boolean (True or False)

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

                      Answer: Looping

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

                      Answer: For

                      40. ________ statement is used to stop a loop.

                        Answer: break

                        41. ______ statement is used to skip the current iteration of a loop in Python.

                        Answer: continue

                        42. ___________ errors are difficult to find out.

                        Answer: Logical

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

                        Answer: Debugging

                        44. _________ method can be used to return a string in upper case letters?

                          Answer: upper()

                          45. List is a ______ data type in Python.

                          Answer: mutable

                          46. _______ is ordered, changeable, and allows duplicate members.

                          Answer: List

                          47. Tuple is a __________ data type in Python.

                          Answer: immutable

                          48.Ā Ā Python has many predefined functions called ___________ functions.

                          Answer: built-in

                          49.Ā Ā User defined function uses ___________ keyword

                          Answer: def

                          50. ______ keyword is used to create function in Python language.

                          Answer: def

                          11 thoughts on “Fill in the blanks Questions with Answer, 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