Python MCQ Quiz

Python MCQ Quiz

University

20 Qs

quiz-placeholder

Similar activities

Teacher Recruitment- Test 1: Vikramjit Singh

Teacher Recruitment- Test 1: Vikramjit Singh

University

20 Qs

Freight Rate

Freight Rate

University

16 Qs

Statistics Quiz

Statistics Quiz

University

20 Qs

Ôn tập tuần 20 - Toán

Ôn tập tuần 20 - Toán

University

15 Qs

Imatelki Quizz

Imatelki Quizz

University

15 Qs

Bab 2 Koordinat Kartesius Kelas 8

Bab 2 Koordinat Kartesius Kelas 8

12th Grade - University

15 Qs

Турецкий А1 6

Турецкий А1 6

University

23 Qs

Rehab 105 Short Quiz 4 - Endterms

Rehab 105 Short Quiz 4 - Endterms

University

20 Qs

Python MCQ Quiz

Python MCQ Quiz

Assessment

Quiz

Other

University

Practice Problem

Medium

Created by

Geetha AIDS

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is the correct way to declare a variable in Python?

var = 10

int x = 10

x := 10

x = 10

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of print(3 + 2 * 2) in Python?

5

8

10

7

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used for comments in Python?

/* */

//

#

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will the following code output? x = 5; x = x + 2; print(x)

5

Error

7

10

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a data type in Python?

list

int

string

char

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will the result be for the following Python code? for i in range(3): print(i)

0 1 2

Error

1 2 3

0 1 2 3

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements is used to exit a loop in Python?

end

exit

break

continue

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?