ByteTheSnake

ByteTheSnake

University

20 Qs

quiz-placeholder

Similar activities

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

PPL (Quiz 5)  Procedures and Functions

PPL (Quiz 5) Procedures and Functions

University

25 Qs

Bài 29

Bài 29

10th Grade - University

15 Qs

Java Basics, operators and variables (CH/PT)

Java Basics, operators and variables (CH/PT)

University

16 Qs

G9-Introduction to Python Programming

G9-Introduction to Python Programming

9th Grade - University

25 Qs

C++ Functions Quiz

C++ Functions Quiz

University

23 Qs

2F-1 | Python Quiz | 14/10/2024

2F-1 | Python Quiz | 14/10/2024

University

20 Qs

quiz1B1

quiz1B1

7th Grade - University

20 Qs

ByteTheSnake

ByteTheSnake

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Vigacini Chandrasekaran

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of print(2 == 2.0 is True)?

 True

False

Error

 None

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does slots do in Python?

Limits instance attributes

Defines private variables

Increases execution speed

Both A and C

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of print(5 and 0 or 3)?

0

3

5

Error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

print({True: 'yes', 1: 'no', 1.0: 'maybe'})

{True: 'yes', 1: 'no', 1.0: 'maybe'}

{True: 'maybe'}

 {True: 'yes'}

{True: 'maybe'}

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will print(hash((1, 2, 3))) return?

A unique integer

A string

An error

None

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of print(0.1 + 0.2 == 0.3)?

True

False

Error

None

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of bool(set())?

True

False

Error

none

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?