Python Programming L1 Quiz

Python Programming L1 Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

Python Level 1 - Quiz #3

Python Level 1 - Quiz #3

5th - 12th Grade

9 Qs

Повторение  мод2

Повторение мод2

9th - 12th Grade

17 Qs

BAB 4 : KOD ARAHAN ASK TINGKATAN 3

BAB 4 : KOD ARAHAN ASK TINGKATAN 3

12th Grade - University

15 Qs

PYTHON

PYTHON

12th Grade

12 Qs

ESS Syllabus

ESS Syllabus

10th - 12th Grade

10 Qs

Python - Selection (IF statements)

Python - Selection (IF statements)

9th - 12th Grade

17 Qs

Uj1 P3m4h4man

Uj1 P3m4h4man

12th Grade

10 Qs

Class12: CS - Ch1 : Python Revision Tour(part1)

Class12: CS - Ch1 : Python Revision Tour(part1)

12th Grade

10 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?