Python Basics (Easy)

Python Basics (Easy)

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Turtles & ect.

Turtles & ect.

9th - 12th Grade

25 Qs

Exception Handling

Exception Handling

12th Grade

25 Qs

QUIZ PYTHON TJKT

QUIZ PYTHON TJKT

10th Grade

30 Qs

Python Quiz JC1

Python Quiz JC1

11th Grade

31 Qs

List in Python

List in Python

11th Grade

25 Qs

Python Programming

Python Programming

9th - 12th Grade

35 Qs

Python Basics 3

Python Basics 3

9th - 12th Grade

25 Qs

Python Text Files

Python Text Files

10th Grade

25 Qs

Python Basics (Easy)

Python Basics (Easy)

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Braulio Almonte

Used 2+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

2value

my-value

my_value

class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is the result of `type(5.0)`?

int

float

str

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is immutable?

list

set

dict

tuple

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection allows duplicate elements?

set

list

dict

frozenset

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will `len({1: "a", 2: "b", 3: "c"})` return?

2

3

6

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this conditional return? `if "abc": print("True")`

Nothing

Error

False

True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of `if 0:`?

True

False

Error

0

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?