Quiz3

Quiz3

University

12 Qs

quiz-placeholder

Similar activities

Java Static

Java Static

University

10 Qs

Python - Functions

Python - Functions

University

10 Qs

Python while loop

Python while loop

8th Grade - University

13 Qs

Python

Python

University

9 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python Basics

Python Basics

12th Grade - University

10 Qs

Python if statement

Python if statement

University

15 Qs

Python quiz

Python quiz

University - Professional Development

10 Qs

Quiz3

Quiz3

Assessment

Quiz

Computers

University

Medium

Created by

Mohand Mahmoud

Used 2+ times

FREE Resource

12 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 3 pts

t =(12,7,9)

t=list((12,7,9))

t.append(15)

t.append(5)

t.append(6)

t=tuple(t)

print(t)

what is the output of this code?

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

t =(12,7,9)

t=list((12,7,9))

t.clear()

t=tuple(t)

print(t!=())

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

t =(12,7,9)

t=list((12,7,9))

t.remove(3)

t=tuple(t)

print(t)

(12,7)

( )

(9)

Error

4.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

t=list((12,7,9))

for i in t: print(i)

if(i==7):

break

12 , 7

12,7.9

Error

12,9

5.

FILL IN THE BLANK QUESTION

1 min • 3 pts

p =([2,4],6,8,9)

print(p.len())

what is the output of this code?

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Can set change to list?

True

False

7.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

x=[[1,2,3],[4,5,6]]

print(x[0][2])

what is the output of this code?

4

5

3

2

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?