Python MCQ Quiz

Python MCQ Quiz

University

20 Qs

quiz-placeholder

Similar activities

HIMSI Webinar Series 4

HIMSI Webinar Series 4

University

15 Qs

Programação em Python Introdução

Programação em Python Introdução

12th Grade - University

20 Qs

round 2

round 2

University

25 Qs

python basic quiz AQ1

python basic quiz AQ1

University

16 Qs

SoftSkill v3.0 (BAFing Module)

SoftSkill v3.0 (BAFing Module)

KG - Professional Development

20 Qs

Week 2

Week 2

University

18 Qs

Java Booleans FQ1

Java Booleans FQ1

University

20 Qs

Python Quiz

Python Quiz

University

15 Qs

Python MCQ Quiz

Python MCQ Quiz

Assessment

Quiz

Other

University

Medium

Created by

Geetha AIDS

Used 3+ times

FREE Resource

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

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?