Python Quiz Questions

Python Quiz Questions

12th Grade

15 Qs

quiz-placeholder

Similar activities

Problem Solving using Python and R - UNIT II - Dictionary

Problem Solving using Python and R - UNIT II - Dictionary

12th Grade

15 Qs

Python Loops

Python Loops

9th - 12th Grade

10 Qs

For Loops in Python

For Loops in Python

9th Grade - University

20 Qs

For and While Loop in Python

For and While Loop in Python

9th Grade - University

20 Qs

Python while loops

Python while loops

12th Grade

20 Qs

12IP

12IP

12th Grade

20 Qs

Quiz 06_12_2023

Quiz 06_12_2023

12th Grade

18 Qs

Python Quiz Questions

Python Quiz Questions

Assessment

Quiz

Computers

12th Grade

Hard

Created by

SHAIK SAJIDA

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? print(2 + 3 * 2)

10

8

12

16

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a function in Python?

function

define

def

fun

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to start a comment in Python?

// Comment

# Comment

/* Comment */

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a sequence of characters in Python?

int

float

str

list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following? print(len("Python"))

5

6

7

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to take user input in Python?

read()

input()

enter()

scan()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 10 // 3 in Python?

3.33

3

4

10

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?