Python/MCQ For Python Fundamentals Sample Test,Sample questions

Question:
Data items having fixed value are called _____

1.Identifiers

2.functions

3.Keywords

4.literals


Question:
Escape sequences are treated as _____.

1.strings

2.characters

3.integers

4.none of these


Question:
Names given to different parts of a Python program are _____.

1.Identifiers

2.functions

3.Keywords

4.literals


Question:
Select the reserved keyword in Python.

1.else

2.import

3.print

4.all of these


Question:
Special meaning words of Pythons, fixed for specific functionality are called _____.

1.Identifiers

2.functions

3.Keywords

4.literals


Question:
The default separator character of print() is _____.

1.tab

2.space

3.newline

4.dot


Question:
The input() returns the value as _____ type.

1.integer

2.string

3.floating point

4.None of the these


Question:
The lines beginning with a certain character, and which are ignored by a compiler and not executed, are called _____.

1.operators

2.operands

3.functions

4.comments


Question:
To convert the read value through input() into a floating point number, _____ () is used.

1.floating

2.Float

3.int

4.integer


Question:
To convert the read value through input() into integer type, _____ () is used.

1.floating

2.float

3.int

4.integer


Question:
To give a different separator with print() _____ argument is used.

1.sep

2.separator

3.end

4.tab


Question:
To print a line a text without ending it with a newline, _____ argument is used with print()

1.sep

2.newline

3.end

4.next


Question:
Value 0.000615 is equivalent to

1.615E3

2.615E-3

3.0.615E3

4.0.615E-3


Question:
Which of the following functions print the output to the console ?

1.Output()

2.Print()

3.Echo()

4.print()


Question:
Which of the following is an escape sequence for a newline character?

1.a

2.

3.

4.


Question:
Which of the following is an escape sequence for a tab character?

1.a

2.

3.

4. 


Question:
Which of the following not a legal integer type value in Python?

1.Decimal

2.Octal

3.Hexadecimal

4.Roman


Question:
Which of the following symbols are not legal in an octal value?

1.7

2.8

3.9

4.None of the above


More MCQS

  1. Python MCQS - Function
  2. Python MCQS - GUI in python
  3. Python MCQS - Operators
  4. Python MCQS - Data type in python
  5. Python MCQS - loops in python
  6. Python MCQS - Numpy
  7. Python MCQS - sqlite3
  8. Python MCQS - Library
  9. Python MCQS - Pandas
  10. Python MCQs
  11. Dictionary Python MCQ set 1
  12. Dictionary Python MCQ set 2
  13. MCQ For Python Fundamentals
  14. MCQ Introduction to Python Section 1
  15. MCQ Introduction to Python Section 2
  16. MCQ Introduction to Python Section 3
  17. MCQ on Flow of Control in Python Set 1
  18. MCQ on Flow of Control in Python Set 2
  19. MCQ on Python String Set 1
  20. File Handling in Python section 1
  21. File Handling in Python section 2
  22. Python Functions MCQS Set 1
  23. Python Functions MCQS Set 2
  24. MCQ on List in Python
  25. Pandas MCQ Questions Set 1
  26. Pandas MCQ Questions Set 2
  27. Tuple MCQ in Python
  28. Python dataframe MCQ
  29. Python Mcq Set 1
  30. Python Mcq Set 2
  31. Python Mcq Set 3
  32. Python Mcq Set 4
  33. Python Mcq Set 5
  34. Python Mcq Set 6
  35. Python Mcq Set 7
  36. Python Mcq Set 8
  37. Python Mcq Set 9
  38. Python Mcq Set 10
  39. Python Mcq Set 11
  40. Python Mcq Set 12
  41. Python Mcq Set 13
  42. Python Mcq Set 14
  43. Python Mcq Set 15
  44. Python Mcq Set 16
  45. Python Mcq Set 17
  46. Python Mcq Set 18
  47. Python Mcq Set 19
  48. Python Mcq Set 20
  49. Python Mcq Set 21
  50. Python MCQ
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!