Quiz#2

Quiz#2

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Python (Selection)

Python (Selection)

8th - 10th Grade

13 Qs

Python Quiz - 4

Python Quiz - 4

4th - 11th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

8th Grade

11 Qs

Python Selection

Python Selection

8th - 9th Grade

10 Qs

Year 7 Python

Year 7 Python

7th Grade

12 Qs

Writing your first program in Python

Writing your first program in Python

8th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

7th Grade - University

10 Qs

Python Basic

Python Basic

6th - 8th Grade

10 Qs

Quiz#2

Quiz#2

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Eman Shatnawe

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Python use to define blocks of code (e.g., in loops, functions, etc.)?

Semicolons ;

Curly braces {}

Indentation

D) Parentheses ()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

<!-- This is a comment -->

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python used for?

To create functions

To store data

To print messages on the screen

To create loops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

1stVariable

my-variable

my_variable

my variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would you use to store the value 3.14?

int

str

bool

float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Boolean value in Python?

Yes

1

True

"True"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output?

10

"55"

5

Error

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?