Python Basics Quiz for KS3

Python Basics Quiz for KS3

11th Grade

9 Qs

quiz-placeholder

Similar activities

Tin học 2

Tin học 2

11th Grade

12 Qs

Logika Fuzzy

Logika Fuzzy

University

10 Qs

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

CodeMonkey for B.Ed IT

CodeMonkey for B.Ed IT

University

10 Qs

KIỂM TRA BUỔI 1

KIỂM TRA BUỔI 1

University

10 Qs

Pemrograman Web Pra PAS

Pemrograman Web Pra PAS

11th Grade

10 Qs

Mid semester kelas XI RPL Konsep pemodelan berorientasi objek

Mid semester kelas XI RPL Konsep pemodelan berorientasi objek

11th Grade

10 Qs

JAVA QUIZ-1

JAVA QUIZ-1

University

10 Qs

Python Basics Quiz for KS3

Python Basics Quiz for KS3

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Savannah Graziano

Used 16+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A type of Python snake

A reserved word that cannot be used for anything other than its pre-defined purpose

A name that is used to denote something or store a value is called a variable

A data type that stores integers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

String

Integer

Float

Perform

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable with the numeric value 5?

int x = 5

x = 5

x == 5

var x = 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to assign the string "Hello, World!" to a variable in Python?

print("Hello, World!")

print= ("Hello, World!")

Print("Hello, World!")

x := "Hello, World!"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet? ```python x = 10 y = 20 print(x + y) ```

True

False

30

x + y

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to perform a conditional operation in Python?

Hint: which statement word allows the code to make a decision?

for

while

if

def

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following code print? ```python if 5 > 2: print("Five is greater than two!") ```

Error

Nothing

"Five is greater than two!"

True

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?