Quiz#2

Quiz#2

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Review Python

Review Python

8th Grade

15 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python Basic Unit 1

Python Basic Unit 1

7th - 8th Grade

14 Qs

Python

Python

8th Grade

13 Qs

J277 - 10QQ - Basic Python 1

J277 - 10QQ - Basic Python 1

8th - 10th Grade

10 Qs

Python Basics

Python Basics

6th - 8th Grade

15 Qs

Introduction to Python

Introduction to Python

6th 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?