Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

9th Grade

20 Qs

quiz-placeholder

Similar activities

Ulangan Harian Kelas XI

Ulangan Harian Kelas XI

2nd Grade - University

20 Qs

Uji Pengetahuan Teknologi Informasi dan Komunikasi

Uji Pengetahuan Teknologi Informasi dan Komunikasi

9th Grade

20 Qs

On tap Spark LV2 HK1

On tap Spark LV2 HK1

4th Grade - University

17 Qs

Informatika 9 sinf

Informatika 9 sinf

9th Grade

18 Qs

ULHAR TIK

ULHAR TIK

7th Grade - University

20 Qs

BAB 4 SISTEM KOMPUTER KELAS 8

BAB 4 SISTEM KOMPUTER KELAS 8

8th Grade - University

20 Qs

Matriz de LED

Matriz de LED

9th Grade

15 Qs

Soal Informatika Kelas 9 BAB 3 Sistem Komputer - 01

Soal Informatika Kelas 9 BAB 3 Sistem Komputer - 01

9th Grade

15 Qs

Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

Assessment

Quiz

Information Technology (IT)

9th Grade

Practice Problem

Hard

Created by

peter allsop

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid variable name in Python?

2number

number_2

number-2

number 2

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What data type will the variable `age` have after this code runs? ```python age = 15 ```

str

float

int

bool

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is used to get input from the user in Python?

print()

input()

scan()

read()

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of the following code? ```python print("Hello, World!") ```

Hello, World!

"Hello, World!"

print("Hello, World!")

Hello World

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

int

float

string

list

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the value of `result` after this code runs? ```python result = 3.5 + 2 ```

5.5

7

3.5

2

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you display the value of a variable called `score` in Python?

display(score)

print(score)

show(score)

output(score)

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?