Python Programming Quiz

Python Programming Quiz

11th Grade

65 Qs

quiz-placeholder

Similar activities

Computer ٍSkills- Chapter 3

Computer ٍSkills- Chapter 3

1st Grade - University

62 Qs

Weeks 1-6 Vocab

Weeks 1-6 Vocab

9th - 12th Grade

66 Qs

Αξιολόγηση στην Python

Αξιολόγηση στην Python

8th Grade - University

65 Qs

ICT meeting test+

ICT meeting test+

11th Grade

65 Qs

Python Review

Python Review

9th - 12th Grade

60 Qs

Python Practice Quiz

Python Practice Quiz

11th Grade

60 Qs

REVISION YEAR 9

REVISION YEAR 9

9th - 12th Grade

69 Qs

Tri 1 Review

Tri 1 Review

9th - 12th Grade

63 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Daniel Bonilla Poveda

Used 2+ times

FREE Resource

65 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? x = 10 y = 5 print(x - y)

A) 5

B) 15

C) 50

D) 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A) List

B) Tuple

C) String

D) Function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'if' statement do in programming?

A) Loops through code

B) Makes decisions based on conditions

C) Initializes variables

D) Defines a function

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a for loop in programming?

A) To make decisions based on conditions

B) To repeat a block of code multiple times

C) To define functions

D) To break out of a loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid conditional operator in Python?

A) ==

B) >=

C) <<

D) !=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 7 / 3 in Python?

A) 2

B) 2.33

C) 2.5

D) 3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a function in Python?

def

function

method

declare

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?