Search Header Logo

Keywords & Identifiers

Authored by Govind Yadav

Computers

12th Grade

Used 1+ times

Keywords & Identifiers
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an identifier in Python?

A unique name given to variables, functions, classes, etc.
A special symbol used in Python
A type of data structure in Python
A Python library for data analysis

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python identifier?

1st_name
my-name
my name
_my_name

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are Python keywords different from identifiers?

Python keywords are predefined words, while identifiers are user-defined
Python keywords and identifiers are the same
Python keywords are user-defined words, while identifiers are predefined
Python keywords can be used as variable names, but identifiers cannot

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Python keyword?

append
def
concatenate
merge

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many keywords does Python have?

16

28

33

8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a Python identifier start with a digit?

Yes, but only if it's followed by an underscore (_).

Yes, there's no restriction on starting with a digit.

No, a Python identifier cannot start with a digit.

Only if it's within a class definition.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid way to create a Python identifier?

Starting the identifier with a number
Starting the identifier with an underscore

Using numbers in the identifier

Using both underscores and numbers in the identifier

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?