Python Programming Quiz

Python Programming Quiz

11th Grade

71 Qs

quiz-placeholder

Similar activities

ICDL K3

ICDL K3

3rd Grade - University

66 Qs

WJEC 1.4 Organisation of Data

WJEC 1.4 Organisation of Data

10th - 11th Grade

70 Qs

Cisco - ITN7 - Chapter 8-10 Review

Cisco - ITN7 - Chapter 8-10 Review

9th Grade - University

71 Qs

ΥΔΥ Τ1 Επανάληψη

ΥΔΥ Τ1 Επανάληψη

11th Grade

70 Qs

ARTIFICIAL INTELLIGENCE AI  RPL SMK KELAS 11 12 PTS PAS SUMATIF

ARTIFICIAL INTELLIGENCE AI RPL SMK KELAS 11 12 PTS PAS SUMATIF

11th Grade

75 Qs

Intro to Technology Software Pop Quiz

Intro to Technology Software Pop Quiz

9th - 12th Grade

70 Qs

PENILAIAN HARIAN KEDUA - AIJ (XI TKJ A)

PENILAIAN HARIAN KEDUA - AIJ (XI TKJ A)

11th Grade

75 Qs

Soal Latihan Untuk USBN

Soal Latihan Untuk USBN

9th Grade - University

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