Python Quiz 1 : Variable, Data Types, Slicing

Python Quiz 1 : Variable, Data Types, Slicing

University

15 Qs

quiz-placeholder

Similar activities

2D Array and Strings in C

2D Array and Strings in C

University

16 Qs

Conditionals

Conditionals

University

11 Qs

Session 2

Session 2

University

10 Qs

Quiz1_7A

Quiz1_7A

2nd Grade - Professional Development

20 Qs

แบบทดสอบก่อน-หลังเรียนวิชาการเขียนโปรแกรมคอมพิวเตอร์ขั้นสูง

แบบทดสอบก่อน-หลังเรียนวิชาการเขียนโปรแกรมคอมพิวเตอร์ขั้นสูง

University

10 Qs

Grade 9 Quiz 9A

Grade 9 Quiz 9A

9th Grade - University

20 Qs

Round-1 Technical Aptitude

Round-1 Technical Aptitude

11th Grade - Professional Development

20 Qs

Python Test1 (If Statement)

Python Test1 (If Statement)

University

10 Qs

Python Quiz 1 : Variable, Data Types, Slicing

Python Quiz 1 : Variable, Data Types, Slicing

Assessment

Quiz

Computers

University

Medium

Created by

Kundan Kumar

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python variable name?

2value

_value

value-name

value name

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of the result of 3 / 2 in Python 3?

int

float

complex

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will "Python" * 2 produce?

['Python', 'Python']

"Python2"

"PythonPython"

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does the following code return?

dep

depen

depend

depende

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Negative Indexing: If s = "Freedom", what is s [-2]?

r

e

o

m

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What does this produce?

"abc"

"ace"

"bdf"

"fed"

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the result of:

True

False

Depends on Python version

Error

Answer explanation

True, because integers between -5 and 256 are interned

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?