Python Programming L1 Quiz

Python Programming L1 Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

Trắc nghiệm danh sách trong Python

Trắc nghiệm danh sách trong Python

12th Grade

10 Qs

python quiz

python quiz

1st - 12th Grade

10 Qs

Python Level 1 - Quiz #3

Python Level 1 - Quiz #3

5th - 12th Grade

9 Qs

Mathematical Operators Python Assessment

Mathematical Operators Python Assessment

9th - 12th Grade

10 Qs

Introductory Quiz

Introductory Quiz

9th - 12th Grade

10 Qs

Luyện tập rẽ nhánh

Luyện tập rẽ nhánh

1st - 12th Grade

19 Qs

Викторина по Python

Викторина по Python

12th Grade

12 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Python Programming L1 Quiz

Python Programming L1 Quiz

Assessment

Quiz

Other

12th Grade

Medium

Created by

Dina Chanthan

Used 9+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a variable in Python?

var x = 5

x = 5

int x = 5

x := 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the result of 3 / 2 in Python?

int

float

str

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you convert a string s = "123" to an integer?

int(s)

str(s)

float(s)

bool(s)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of float(5)?

5

5.0

"5"

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add an element 5 to a list lst in Python?

lst.append(5)

lst.add(5)

lst.insert(5)

lst.extend(5)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of len([1, 2, 3])?

2

3

4

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a tuple in Python?

[1, 2, 3]

{1, 2, 3}

(1, 2, 3)

1, 2, 3

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?