Keywords & Identifiers

Keywords & Identifiers

12th Grade

10 Qs

quiz-placeholder

Similar activities

C++ Basics

C++ Basics

7th - 12th Grade

10 Qs

Python Fundamentals

Python Fundamentals

11th - 12th Grade

15 Qs

CLASS 9 AI -  VIVA 2024-25

CLASS 9 AI - VIVA 2024-25

9th Grade - University

10 Qs

Functions In Python

Functions In Python

12th Grade

10 Qs

L.5 . PYTHON - VARIABLES AND OPERATORS - 2

L.5 . PYTHON - VARIABLES AND OPERATORS - 2

12th Grade

10 Qs

python 2

python 2

11th - 12th Grade

10 Qs

python 3

python 3

11th - 12th Grade

10 Qs

Основи Python

Основи Python

12th Grade

10 Qs

Keywords & Identifiers

Keywords & Identifiers

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Govind Yadav

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?