Skip to content

MCQs on Keywords and Identifiers #2

@gunjanbangde

Description

@gunjanbangde

1. Which of the following is not valid variable name in Python?
A. 11var
B. var_name
C. _var
D. (var)

2. How many keywords are there in python 3.7?
A. 32
B. 35
C. 31
D. 33

3. What is the maximum length of an identifier in python?
A. 128
B. 31
C. 64
D. None of the above

4. Which one of the following will give an error in python?
A. x=’Hello’
B. true=0
C. Var1=”@gmail
D. None of the above

5. Which of the following statment is False?
A. Variable names can be arbitrarily long.
B. They can contain both letters and numbers.
C. Variable name can begin with number.
D. Variable name can begin with underscore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions