Final_QUIZ

Final_QUIZ

University

20 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

University

15 Qs

kuis pertama

kuis pertama

University

20 Qs

PF101 (Quiz 1 - Finals)

PF101 (Quiz 1 - Finals)

University

20 Qs

CSE 102 Exam 3 Practice

CSE 102 Exam 3 Practice

University

18 Qs

Python Functions and File Operations Quiz

Python Functions and File Operations Quiz

University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Python Basics

Python Basics

KG - University

16 Qs

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

Final_QUIZ

Final_QUIZ

Assessment

Quiz

Computers

University

Medium

Created by

jaya mulimani

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which type of Programming does Python support?

object-oriented programming

structured programming

functional programming

all of the mentioned

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the value of the following Python expression?


4 + 7// 5


5

2

4

1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What are the values of the following Python expressions?


print(2**(3**2)+1 )


513

64

12

11

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

x = 5

if x < 3:

print("x is less than 3")

elif x == 3:

print("x is equal to 3")

else:

print("x is greater than 3") Copy Code


x is less than 3

x is equal to 3

x is greater than 3

No output

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the following code snippet print?

fruits = ["apple", "banana", "cherry"]

for fruit in fruits:

print(fruit)

apple

banana

cherry

[“apple”, “banana”, “cherry”]

0 1 2

No output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to continue with the next iteration?


Using the skip statement

Using the pass statement

Using the break statement

Using the continue statement

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output the following code snippet

for i in range(1, 6):

if i == 3:

continue

print(i)

1 2


1 2 3

1 2 4 5

1 2 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?