Python_Variables

Python_Variables

University

10 Qs

quiz-placeholder

Similar activities

IDIOMS (parts of the body) 1

IDIOMS (parts of the body) 1

University

10 Qs

Job Search

Job Search

University

10 Qs

revoir les notions

revoir les notions

University

14 Qs

Superstitions

Superstitions

University

10 Qs

Reading - Unit 2 - Healthcare

Reading - Unit 2 - Healthcare

University

12 Qs

ENVIROMENT

ENVIROMENT

University

10 Qs

Emphasis (Advanced)

Emphasis (Advanced)

University

12 Qs

In the public eye

In the public eye

University

10 Qs

Python_Variables

Python_Variables

Assessment

Quiz

English

University

Practice Problem

Hard

Created by

Deekshitha K

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

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


a) my_variable

b) 123_variable

c) myvariable

d) myVariable

2.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of the following is not a valid data type in Python?


a) int

b) 123_float

c) str

d) bool

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the output of the following Python code snippet?

print(10/3)

a) 3.333

b) 3

c) 3.0

d) 3.33

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Which of the following is the correct way to comment a single line in Python?

a) // This is a comment

b) # This is a comment

c)

d) /* This is a comment */

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python code snippet?

print(5**2)

a) 10

b) 25

c) 7

d) 52

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of the following is a correct way to declare a list in Python?

a) list = [1, 2, 3]

b) list = (1, 2, 3)

c) list = {1, 2, 3}

d) list = {1: 'one', 2: 'two', 3: 'three'}

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

What is the result of the following comparison in Python?

5 == 5.0

a) True

b) False

c) Error

d) None

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?