Python True False Questions with Answers

1. Python is a case sensitive language.

a. True

b. False

2. Python is object-oriented language.

a. True

b. False

3. Python is a compiled language.

a. True

b. False

4. Python is a low-level language.

a.    True

b.   False

5. Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable.

a.  True

b.  False

6. Python is a scripting language. 

a. True

b. False

7. Python is a open source language.

a.  True

b.  False

8.  Python is developed by Guido van Rossum.

a. True

b. False

9. Python is an interpreted language.

a. True

b. False

10.  Python is a hard to learn language.

a.  True

b.  False

11. Python has deep support of Object-Oriented Programming (OOP).

a.  True

b.  False

12. .python is the correct extension of the Python file.

a. True

b. False

13. Python is used by Intel, IBM, NASA, Pixar, Netflix, Facebook, JP Morgan Chase, Spotify and a number of other massive companies.

a. True

b. False

14.  Python is a cross platform language.

a. True

b. False

15. Becoming a Python developer is the most direct job out there for someone who knows the Python programming language.

a. True

b. False

16. Python is a popular programming language.

a. True

b. False

17. Python can be used on a server to create web applications.

a. True

b. False

18. Python has a simple syntax similar to the English language.

a. True

b. False

19. Python is a dynamically typed language.

a. True

b. False

20.  Variable declaration is implicit in python.

a. True

b. False

21. Python is written in c language.

a. True

b. False

22. Python is a machine language.

a. True

b. False

23.  Python is a high-level language.

a. True

b. False

24. print() function is used to display data as output.

a. True

b. False

25. The print function can only print literal values.

a. True

b. False

26. Print() statement in python takes input from the user. 

a. True

b. False

27. In Python, program output is displayed using the print() function, while user input is obtained with the input(). function.

a. True

b. False

      28. For numerical types like integers and floating points, zero values are false and non-zero values are true.

      a. True

      b. False

      29. Python is not a case sensitive language.

      a. True

      b. False

      30. Python is a compiler-based language.

      a. True

      b. False

      31. Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.).

      a. True

      b. False

      32. Python uses indentation to denote code blocks.

      a. True

      b. False

      33. # character is used to give single-line comments in Python.

      a. True

      b. False

      34. In python ‘+’ can be used to concatenate strings.

      a. True

      b. False

      35. ‘==’ operator compares values and data types.

      a. True

      b. False

      36. Variable name in Python can start with a number.

      a.  True

      b.  False

      37. A variable name can consist of alphabets, digits, and underscore.

      a. True

      b. False

      38. Assignment operator is used to assign value of an expression to a variable.

      a. True

      b. False

      39.  ‘==’ operator is used to assign values.

      a.  True

      b.  False

      40. List is a mutable data type in Python.

      a.   True

      b.   False

      41. Tuple is a mutable data type in Python.

      a.  True

      b.  False

      42. Tuple is mutable whereas list is immutable.

      a.   True

      b.   False

      43. Int data type you would use to store a whole number in Python.

      a.  True

      b.  False

      44. ‘if’ statement is used for conditional branching.

      a. True

      b. False

      45. Looping allows sections of code to be executed repeatedly under some condition.

      a.  True

      b.   False

      46. The for statement is used for decision making.

      a. True

      b. False

      47. for statement can be used to iterate over a range of values or a sequence.

      a.  True

      b.   False

      48. Def keyword is used for function in Python language.

      a.  True

      b.  False

      49. User defined function uses def keyword.

      a.  True

      b.   False

      50.  Python has many predefined functions called user defined functions.

      a.  True

      b.   False

      4 thoughts on “Python True False Questions with Answers”

      Leave a Comment