Sunday, 12 April 2020
Python Basics MCQs - Set 1 Answer
Python Basics MCQs Set-1 Answers
Top of Form
Question 1. The _______ are names given to some data or information that we want to store in a Python programs.
A. variables
B. tokens
C. keywords
D. none of these
ANSWER: A. variables
B. tokens
C. keywords
D. none of these
ANSWER: A. variables
Question 2. Which of the following character can be used to specify comments in Python?
A. #
B. $
C. //
D. none of these
ANSWER: A. #
B. $
C. //
D. none of these
ANSWER: A. #
Question 3. The _______are used to describe the code and are not interpreted by Python.
A. variables
B. comments
C. tokens
D. loops
ANSWER: B. comments
B. comments
C. tokens
D. loops
ANSWER: B. comments
Question 4. A variable name cannot start with a __________.
A. number
B. letter
C. underscore
D. none of these
ANSWER: A. number
B. letter
C. underscore
D. none of these
ANSWER: A. number
Question 5. Which of the following is invalid identifier name?
A. _num
B. Num
C. 101_
D. Syntax
ANSWER: C. 101_
B. Num
C. 101_
D. Syntax
ANSWER: C. 101_
< Back to Python MCQs >
Subscribe to:
Posts (Atom)