Python Basics Quiz

Python Basics Quiz

9th Grade

14 Qs

quiz-placeholder

Similar activities

Mathematical Operators Python Assessment

Mathematical Operators Python Assessment

9th - 12th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

6th - 10th Grade

15 Qs

Python Quizziz

Python Quizziz

9th - 12th Grade

10 Qs

Python armenia

Python armenia

1st Grade - University

10 Qs

ตัวดำเนินการทางคณิตศาสตร์ //ทดสอบหลังเรียน

ตัวดำเนินการทางคณิตศาสตร์ //ทดสอบหลังเรียน

9th Grade

10 Qs

Functions in Python

Functions in Python

9th - 12th Grade

16 Qs

Test poziomujący do kursu "Python z Minecraftem"

Test poziomujący do kursu "Python z Minecraftem"

1st - 10th Grade

12 Qs

Javascript Básico

Javascript Básico

9th - 12th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Other

9th Grade

Medium

Created by

Hamza Motiyar

Used 1+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to assign a value to a variable in Python?

x

#

/* */

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len("hello") return?

4

5

6

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take user input in Python 3?

input()

readline()

raw_input()

scanf()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: python Copy Edit x = 5 y = 2 print(x // y)

2.5

2

3

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a list in Python?

{1, 2, 3}

(1, 2, 3)

[1, 2, 3]

1, 2, 3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a function in Python?

function myFunc():

def myFunc:

define myFunc():

def myFunc():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this loop do? python Copy Edit for i in range(3): print(i)

Prints 1 to 3

Prints 0 to 3

Prints 0, 1, 2

Prints 1, 2, 3

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?