Python MCQ Quiz

Python MCQ Quiz

University

20 Qs

quiz-placeholder

Similar activities

Introduction to Python and Data Analytics Basics

Introduction to Python and Data Analytics Basics

University

25 Qs

Intro to Python by AUG Problem solving module

Intro to Python by AUG Problem solving module

University - Professional Development

24 Qs

Python

Python

University

15 Qs

python giber

python giber

University

21 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Python 3

Python 3

University

21 Qs

Programming Review

Programming Review

University

20 Qs

Week 1 QUIZ

Week 1 QUIZ

University

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