Python

Python

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Komunikasi dalam Jaringan

Komunikasi dalam Jaringan

10th - 12th Grade

21 Qs

CSS 10 - QUIZ

CSS 10 - QUIZ

10th Grade

20 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

10th Grade

20 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

Y9 Creative iMedia RO81 Quiz Part 1

Y9 Creative iMedia RO81 Quiz Part 1

9th Grade

21 Qs

Primary storage

Primary storage

9th - 11th Grade

20 Qs

Python

Python

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Namal (ITNamal)

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python identifier?

1variable

_variable

variable name

variable-name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid naming convention for Python identifiers?

snake_case

PascalCase

camelCase

kebab-case

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum length of a Python identifier?

32 characters

64 characters

128 characters

There is no maximum length

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a reserved word in Python and can be used as an identifier?

if

for

and

while

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about Python identifiers?

They are case-sensitive.

They can start with a digit.

They can contain special characters like @ or #.

They can be a Python built-in function name.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a built-in data type in Python?

int

float

string

array

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a tuple and a list in Python?

Tuples are mutable, and lists are immutable.

Tuples are ordered, and lists are unordered.

Tuples are enclosed in parentheses, and lists are enclosed in square brackets.

Tuples can contain elements of different data types, while lists can only contain elements of the same data type.

Create a free account and access millions of resources

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?