Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

8th Grade

30 Qs

quiz-placeholder

Similar activities

ULANGAN BAB ALGORITMA PEMROGRAMAN KELAS 8

ULANGAN BAB ALGORITMA PEMROGRAMAN KELAS 8

8th Grade - University

25 Qs

Y9_Project 1 KPOW Responding

Y9_Project 1 KPOW Responding

8th Grade

29 Qs

Тест з інформатики

Тест з інформатики

6th - 8th Grade

26 Qs

Programmvadāma ierīce un Datora sastāvdaļas

Programmvadāma ierīce un Datora sastāvdaļas

7th Grade - University

28 Qs

 Internet Basics Quiz

Internet Basics Quiz

6th Grade - University

30 Qs

Computer Hardware Quiz

Computer Hardware Quiz

8th Grade

30 Qs

Chapter 2.2.2 RFID Technology

Chapter 2.2.2 RFID Technology

7th Grade - University

35 Qs

ASESMEN SUMATIF INFORMATIKA – KELAS VII

ASESMEN SUMATIF INFORMATIKA – KELAS VII

3rd Grade - University

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