Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

8th Grade

•

30 Qs

quiz-placeholder

Similar activities

Latihan Assesmen Formatif Informatika  2

Latihan Assesmen Formatif Informatika 2

8th Grade

•

25 Qs

Informatika Kelas VIII

Informatika Kelas VIII

8th Grade

•

25 Qs

exam prep 2

exam prep 2

8th Grade

•

25 Qs

Internet, Netiquetas, Web, Navegadores

Internet, Netiquetas, Web, Navegadores

8th Grade

•

27 Qs

Section A: Objective Questions - Y8 CS Term 1 Revision

Section A: Objective Questions - Y8 CS Term 1 Revision

8th Grade

•

26 Qs

2023 Section A

2023 Section A

6th - 8th Grade

•

33 Qs

Year 8 ICT Summative Assessment - Term 1.2 - 2025/2026

Year 8 ICT Summative Assessment - Term 1.2 - 2025/2026

6th Grade - University

•

35 Qs

Penilaian materi power point (PPT)

Penilaian materi power point (PPT)

8th Grade

•

30 Qs

Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

Assessment

Quiz

•

Information Technology (IT)

•

8th Grade

•

Practice Problem

•

Hard

Created by

J Blakley

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2ndNumber

number_2

number-2

number 2

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the value `True` in Python?

String

Integer

Boolean

Float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python x = 5 print(type(x)) ```

``

``

``

``

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

input()

get()

scan()

read()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of `7 // 2` in Python?

3.5

3

4

3.0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to define a function in Python?

function myFunc():

def myFunc[]:

def myFunc():

func myFunc():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? ```python for i in range(3): print(i) ```

1 2 3

0 1 2

0 1 2 3

1 2

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?