Python Basics Quiz

Python Basics Quiz

5th Grade

12 Qs

quiz-placeholder

Similar activities

Câu lệnh lặp lồng nhau

Câu lệnh lặp lồng nhau

5th Grade

10 Qs

Infotehnoloogia viiendale- klaviatuur ja internetiturvalisus

Infotehnoloogia viiendale- klaviatuur ja internetiturvalisus

5th Grade

12 Qs

Los periféricos del computador

Los periféricos del computador

1st Grade - Professional Development

9 Qs

K5_ÔN TẬP HỌC KÌ 1

K5_ÔN TẬP HỌC KÌ 1

5th Grade

15 Qs

Bài thực hành 2 Viết chương trình để tính toán

Bài thực hành 2 Viết chương trình để tính toán

1st - 12th Grade

12 Qs

Comic Life (tuần 8)

Comic Life (tuần 8)

1st - 5th Grade

10 Qs

Gr3-Scratch - Revision

Gr3-Scratch - Revision

3rd - 5th Grade

11 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 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

Create a free account and access millions of resources

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?

Discover more resources for Computers