Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

8th Grade

•

30 Qs

quiz-placeholder

Similar activities

Pre-Test Spreadsheet 2

Pre-Test Spreadsheet 2

8th Grade

•

25 Qs

Digital Citizenship and Online Safety

Digital Citizenship and Online Safety

6th - 8th Grade

•

30 Qs

Chapter 3 Mastering Significant Figures and Estimation

Chapter 3 Mastering Significant Figures and Estimation

7th Grade - University

•

35 Qs

Year 5 ICT Revision Quiz

Year 5 ICT Revision Quiz

5th Grade - University

•

30 Qs

Semester 1 games Review

Semester 1 games Review

8th Grade

•

25 Qs

UH TIK 4 Bab 3 Sistem Komputer

UH TIK 4 Bab 3 Sistem Komputer

4th Grade - University

•

25 Qs

ICT Term 3 Quiz

ICT Term 3 Quiz

7th Grade - University

•

25 Qs

PTS TIK 8D

PTS TIK 8D

2nd 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?