Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

8th Grade

30 Qs

quiz-placeholder

Similar activities

Fun with Computers and Mice

Fun with Computers and Mice

2nd Grade - University

26 Qs

Review Python_G8

Review Python_G8

8th Grade - University

28 Qs

Fundamentals of Programming Quiz

Fundamentals of Programming Quiz

8th Grade

30 Qs

info

info

6th - 8th Grade

30 Qs

Ch. 3 Test Review

Ch. 3 Test Review

8th Grade

25 Qs

Grade 08 Web Design Exam

Grade 08 Web Design Exam

8th Grade

25 Qs

Ch. 11 Exam Review

Ch. 11 Exam Review

8th Grade

26 Qs

Знатоки информатики

Знатоки информатики

8th Grade

31 Qs

Python Basics Quiz for Year 9

Python Basics Quiz for Year 9

Assessment

Quiz

Information Technology (IT)

8th Grade

Hard

Created by

J Blakley

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?