Basic Data Types in Python

Basic Data Types in Python

University

6 Qs

quiz-placeholder

Similar activities

BASIC HTML

BASIC HTML

University

9 Qs

Summer Code Camp - Lesson 1

Summer Code Camp - Lesson 1

University

10 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

Microsoft Word

Microsoft Word

University

10 Qs

Node.js

Node.js

University

10 Qs

Scratch (28th March)

Scratch (28th March)

KG - University

10 Qs

PHP Introduction - Assignment 1

PHP Introduction - Assignment 1

University

10 Qs

Basic Data Types in Python

Basic Data Types in Python

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Sangameshwar Biradar

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In Python 3, the maximum value for an integer is 263 - 1:

False

True

None

Error

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How would you express the hexadecimal value a5 as a base-16 integer constant in Python?

0xa5

oxa5

a5

xa5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How would you express the constant floating-point value 3.2 × 10-12 in Python:

3.2E-12

-3.2E12

3.2E12

None

4.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which of the following are valid ways to specify the string literal foo'bar in Python:

'foo' 'bar'

"foo'bar"

'foo\'bar'

"""foo'bar"""

'foo'bar'

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Consider this statement:


>>> print(r'foo\\bar\nbaz')


Which of the following is the correct REPL output?

foo\\bar\nbaz

foo\\barnbaz

foo\bar

baz

foo\bar\nbaz

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a Python built-in function:

diff()

refr()

round()

map()

isinstance()

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?

Discover more resources for Computers