Python_Variables

Python_Variables

University

10 Qs

quiz-placeholder

Similar activities

วัดแววภาษา

วัดแววภาษา

KG - University

10 Qs

Story 1: The Lark and her young ones

Story 1: The Lark and her young ones

University

14 Qs

PRESENT SIMPLE - AFFIRMATIVE

PRESENT SIMPLE - AFFIRMATIVE

3rd Grade - Professional Development

12 Qs

The Great Gatsby

The Great Gatsby

10th Grade - University

11 Qs

Gerunds (Ving)

Gerunds (Ving)

University

10 Qs

first

first

University

15 Qs

Casul Conversation Week 11

Casul Conversation Week 11

University

11 Qs

Transitions Practice

Transitions Practice

7th Grade - University

11 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?