MCQ 1 Which symbol do we use if we want to add a comment to our code?

Correct Answer Choice C #
See Answer

MCQ 2 To create a variable named new_var and assign it a value of 81 divided by 9, which statement would you use?

Correct Answer Choice A new_var = 81/9
See Answer

MCQ 3 Which of the following is a float?

Correct Answer Choice D new_var = 1.234
See Answer

MCQ 4 How would you output new_var = 123 as a text string?

Correct Answer Choice A print(str(new_var))
See Answer


MCQ 5 Numbers with a decimal point belong to a type called..

Correct Answer Choice B Float
See Answer

MCQ 6 Which of these is not a legal numeric type in Python?

Correct Answer Choice D Decimal
See Answer

MCQ 7 Is Python case sensitive when dealing with variables?

Correct Answer Choice B Yes
See Answer

MCQ 8 What is the maximum possible length of a variable?

Correct Answer Choice C 79 characters
See Answer


MCQ 9 Which is the correct operator for power (XY)?

Correct Answer Choice B X**Y
See Answer

MCQ 10 What is the answer to this expression, 22 % 3 is?

Correct Answer Choice B 1
See Answer

MCQ 11 Operators with the same precedence are evaluated in which manner?

Correct Answer Choice A Left to Right
See Answer

MCQ 12 What is the output of this expression, 3*1**3?

Correct Answer Choice B 3
See Answer


MCQ 13 The expression int(x) implies that the variable x is converted to integer.

Correct Answer Choice A True
See Answer

MCQ 14 Which one of the following has the highest precedence in the expression?

Correct Answer Choice B Parentheses
See Answer

MCQ 15 Select all options that print hello-how-are-you

Correct Answer Choice A print('hello-' + 'how-are-you')
See Answer

MCQ 16 Which of the following symbol is used to indicate the line as a comment?

Correct Answer Choice D # symbol
See Answer


Related Python Quiz

  1. Python Practice Quiz Set 1

NTSE, NEET, AIEEE, Olympiad & Other Competive Exams Preparation

Publish Your Article / Write for Us

Article Writing Guide/Help

Trending Questions


Advantages Of NCERT, CBSE & State Boards Solutions For All Subjects

  • All the NCERT Solutions have been prepared by academic experts having 10+ years of teaching experience.
  • They have prepared all the solutions in simple and easy language, so that each and every student can understand the concepts easily.
  • All the solutions have been explained step to step wise in details with better explainations.
  • Students can also use these question and answers for your assignments and in homework help.
  • All the solutions have been explained in detail and the answers have been compiled in a step-wise manner.
  • All the question and asnwers are commonly prepared according to the Latest Syllabus of Board Education and Guidelines.
  • Students can know about the various types of questions asked in the exams with the help of these solutions.

Top Course Categories