Quiz3

Quiz3

University

12 Qs

quiz-placeholder

Similar activities

Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

Quiz 1

Quiz 1

University

10 Qs

Python input, output, and errors

Python input, output, and errors

University

14 Qs

Programming Basics Basics

Programming Basics Basics

8th Grade - University

10 Qs

Python

Python

University

10 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Control Statements

Python Control Statements

University

10 Qs

Python Unit 3

Python Unit 3

University

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?