Python Learning

Python Learning

KG - 3rd Grade

11 Qs

quiz-placeholder

Similar activities

HPK - KE

HPK - KE

Professional Development

11 Qs

W12_Review Canva-Tinkercad-ICT

W12_Review Canva-Tinkercad-ICT

2nd - 4th Grade

10 Qs

Kelas Inspirasi hari kedua

Kelas Inspirasi hari kedua

1st - 2nd Grade

10 Qs

CN9 - Bài 7

CN9 - Bài 7

1st - 10th Grade

10 Qs

Pre & Post test KULib-KM

Pre & Post test KULib-KM

Professional Development

10 Qs

Error Correction Test

Error Correction Test

University

15 Qs

KTTX HK2 lần 1 Tin 8

KTTX HK2 lần 1 Tin 8

8th Grade

15 Qs

EXCEL 6TO

EXCEL 6TO

University

15 Qs

Python Learning

Python Learning

Assessment

Quiz

Education, Instructional Technology

KG - 3rd Grade

Practice Problem

Hard

Created by

Elchin Salahzada

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

>>> a,b=2,3

>>> min=a if a<b else b

>>> min

min=5

min=3

min=2

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

a,b=2,3

min=a if a<b else b

>>> min

print("Hi") if a<b else print("Bye")

Output: ?

Hi

HiBye

ByeHi

Bye

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for i in range(7):

if i==3:

break

print(i)

1

2

3

4

5

6

7

1

2

4

5

6

1

2

4

5

6

7

1

2

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for i in range(7):

if i==3:

continue

print(i)

1

2

3

4

5

6

1

2

4

5

6

7

1

2

4

5

6

1

2

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

>>> a=[1,2,4]

>>> a.insert(2,3)

>>> a

(1,2,3,4)

{1,2,3,4}

[1,2,4,2,3]

[1,2,3,4]

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

15%7=?

1

2

22

8

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

>>> colors=['red','green','blue']

>>> type(colors)

<class 'tuple'>

class <'list'>

<class 'set'>

<class 'dict'>

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?