Python Quiz

Python Quiz

University

45 Qs

quiz-placeholder

Similar activities

Python Midterm Exam

Python Midterm Exam

University

50 Qs

Uji Kompetensi (Individu)

Uji Kompetensi (Individu)

University

50 Qs

Python Basic

Python Basic

University

50 Qs

9th Grade - IT Programming - 2nd Cycle Exam

9th Grade - IT Programming - 2nd Cycle Exam

9th Grade - University

40 Qs

LATIHAN PYTHON

LATIHAN PYTHON

10th Grade - University

44 Qs

Kuis Penilaian AP 2B

Kuis Penilaian AP 2B

University

40 Qs

JavaScript - Practice 9

JavaScript - Practice 9

University

40 Qs

Ôn tập

Ôn tập

10th Grade - University

46 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Servus Snap

Used 10+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is incorrect

a=!b

a!=b

a=[1,2,3]

B=(9,6,5)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Output? :

a = "You're Pretty"

Print(a)

You're Pretty

"You're Pretty"

a

NameError: name 'Print' is not defined

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for the below program:

A="Hyperboloid"

print(len("A")

11

911

12

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does my_list.append(5) do?

Removes the last element from the list.

Creates a new list with only the number 5.

Appends the number 5 to the end of the list.

Adds 5 to the beginning of the list.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Used to define a function:

Def

def

define

Define

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for the below program:

for i in range(10<11):

print(i)

10

11

0

Error: logical operators cannot be used inside range()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

[1,2,3,4,5,6,7,8,9,10]

1,2,3,4,5,6,7,8,9,10

[0,1,2,3,4,5,6,7,8,9]

0,1,2,3,4,5,6,7,8,9

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?