Quiz#2

Quiz#2

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Python Print Statement

Python Print Statement

6th - 10th Grade

12 Qs

Python Syntax

Python Syntax

6th - 12th Grade

14 Qs

Python basics

Python basics

6th - 8th Grade

15 Qs

Python

Python

7th - 9th Grade

12 Qs

Python Variables

Python Variables

6th Grade

10 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

Python2

Python2

8th Grade - University

15 Qs

Programming Fundamentals Recap

Programming Fundamentals Recap

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?