Python Basics Quiz

Python Basics Quiz

5th Grade

12 Qs

quiz-placeholder

Similar activities

Guía de PowerPoint

Guía de PowerPoint

5th Grade

10 Qs

5.th sosyal bilgiler 5.ünite

5.th sosyal bilgiler 5.ünite

5th Grade

15 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Информация

Информация

1st - 10th Grade

10 Qs

Bài tập lớp 5 - 7/4/2020

Bài tập lớp 5 - 7/4/2020

5th Grade

10 Qs

Ôn tập học kì 2-Lớp 5

Ôn tập học kì 2-Lớp 5

5th Grade

15 Qs

Internet i mrežni preglednik, pretraživanje interneta

Internet i mrežni preglednik, pretraživanje interneta

5th Grade

11 Qs

K4_On tap HK 1_PowerPoint

K4_On tap HK 1_PowerPoint

3rd - 5th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

5th Grade

Practice Problem

Hard

DOK Level 2: Skill/Concept

Standards-aligned

Created by

Twilla Walton

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in Python?

`var x = 10`

`x = 10`

`int x = 10`

`x : 10`

Tags

DOK Level 2: Skill/Concept

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a string data type in Python?

`10`

`10.5`

`"Hello"`

`True`

Tags

DOK Level 2: Skill/Concept

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you take input from the user in Python?

`input("Enter your name: ")`

`get("Enter your name: ")`

`read("Enter your name: ")`

`scan("Enter your name: ")`

Tags

DOK Level 2: Skill/Concept

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python print("Hello, World!") ```

`Hello World`

`Hello, World!`

`Hello, World`

`Hello World!`

Tags

DOK Level 2: Skill/Concept

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct if statement in Python?

`if x = 5:`

`if x == 5:`

`if (x == 5)`

`if x equals 5:`

Tags

DOK Level 2: Skill/Concept

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? ```python x = 10 if x > 5: print("x is greater than 5") else: print("x is not greater than 5") ```

`x is not greater than 5`

`x is greater than 5`

`x is 10`

`x is less than 5`

Tags

DOK Level 2: Skill/Concept

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following loops will execute exactly 5 times?

`for i in range(5):`

`while i < 5:`

`for i in range(1, 5):`

`while i <= 5:`

Tags

DOK Level 2: Skill/Concept

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?