Python quick quiz

Python quick quiz

University

10 Qs

quiz-placeholder

Similar activities

Coding Club - Session 1 - Quiz

Coding Club - Session 1 - Quiz

University

12 Qs

Quiz 4 Week 6 Repetition Structures (For)

Quiz 4 Week 6 Repetition Structures (For)

University

15 Qs

Java Static

Java Static

University

10 Qs

[Python For All] Quiz 5 - Numpy

[Python For All] Quiz 5 - Numpy

University

15 Qs

Introduction to Arrays

Introduction to Arrays

KG - University

10 Qs

Post Test #3 - Python Fundamental #2

Post Test #3 - Python Fundamental #2

University

10 Qs

Python

Python

University

9 Qs

Python - Functions

Python - Functions

University

10 Qs

Python quick quiz

Python quick quiz

Assessment

Quiz

Computers

University

Hard

Created by

Love Lifelong

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following code snippet?

print(2**2 + (5 + 6)**(1 + 1))


129

125

8

None of the Above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be output if a = 8**2 and b =5

a = input()

b=input()

print(a +b)

69

21

error

8**25

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Samar

Error

Global

No Output

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output?

[2, 5, 7, 19, 22, 45, 72, 89]

(2, 5, 7, 19, 22, 45, 72, 89)

Error

{2, 5, 7, 19, 22, 45, 72, 89}

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

s = {1, 2, 3.0, 3, 2, 4, 5, 5.0}
print(s)
{1, 2, 3, 4, 5.0}
{1, 2, 3.0, 4, 5}
{1, 2, 3.0, 4, 5.0}
{1, 2, 3.0, 3, 2, 4, 5, 5.0}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

[0,1,4,9]

[0,1,4,9,16]

[0,1,4,9,16,25]

[0,1,2,3,4]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Guess output?

1

2

3

4

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?