Python Quiz

Python Quiz

University

45 Qs

quiz-placeholder

Similar activities

Python Programming

Python Programming

University

48 Qs

икт зәипал

икт зәипал

University

40 Qs

I/O and Operators in C

I/O and Operators in C

University

43 Qs

Joy of Programming

Joy of Programming

University

50 Qs

Latihan Pra UTS Algoritma dan Pemrograman 2 (Python)

Latihan Pra UTS Algoritma dan Pemrograman 2 (Python)

University

50 Qs

Python Quiz

Python Quiz

University

40 Qs

Python El Grand Revision!

Python El Grand Revision!

University

47 Qs

CIE2 Java Lab Quiz

CIE2 Java Lab Quiz

University

50 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?