Python Programming L1 Quiz

Python Programming L1 Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

Hindi Diwas

Hindi Diwas

6th - 12th Grade

18 Qs

General Knowledge (TEST)

General Knowledge (TEST)

KG - 12th Grade

10 Qs

חידון ראש השנה

חידון ראש השנה

3rd - 12th Grade

19 Qs

Trial - Quiz Bowl HS

Trial - Quiz Bowl HS

10th - 12th Grade

10 Qs

ચાલો.....રમતા રમતા શિખીએ

ચાલો.....રમતા રમતા શિખીએ

5th - 12th Grade

15 Qs

rubiks cube quiz

rubiks cube quiz

KG - Professional Development

13 Qs

Trójkąty i pitagoras

Trójkąty i pitagoras

10th - 12th Grade

10 Qs

Lớp 10 - Chủ đề 1

Lớp 10 - Chủ đề 1

12th Grade

10 Qs

Python Programming L1 Quiz

Python Programming L1 Quiz

Assessment

Quiz

Other

12th Grade

Practice Problem

Medium

Created by

Dina Chanthan

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?