Python Programming Quiz

Python Programming Quiz

11th Grade

71 Qs

quiz-placeholder

Similar activities

variables y constantes cartilla2 - PHP

variables y constantes cartilla2 - PHP

10th - 11th Grade

73 Qs

UTS-XII-TKJ

UTS-XII-TKJ

11th Grade

75 Qs

Final exam Review

Final exam Review

9th - 12th Grade

71 Qs

Access Control Unit 2

Access Control Unit 2

11th - 12th Grade

70 Qs

Latihan Soal Microsoft Word

Latihan Soal Microsoft Word

KG - 12th Grade

68 Qs

APCS Principles Practice Exam

APCS Principles Practice Exam

8th Grade - University

75 Qs

Server, Konsola, Virtual, AD, DHCP, DNS, NAT, IIS, FTP

Server, Konsola, Virtual, AD, DHCP, DNS, NAT, IIS, FTP

7th Grade - Professional Development

72 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Daniel Bonilla Poveda

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...

71 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

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?