Python Basics  unit-2 "A"Quiz

Python Basics unit-2 "A"Quiz

University

25 Qs

quiz-placeholder

Similar activities

PTS Kelas X TKJ

PTS Kelas X TKJ

University

20 Qs

LINKEDLIST- DSA -2-3

LINKEDLIST- DSA -2-3

University

20 Qs

Season 5 #Spaic Machine learning Weekly Quiz

Season 5 #Spaic Machine learning Weekly Quiz

KG - Professional Development

20 Qs

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

CN_Minor2

CN_Minor2

University

20 Qs

DIAGRAMAS UML DE CLASE

DIAGRAMAS UML DE CLASE

University

20 Qs

Briefing Besar PIM III

Briefing Besar PIM III

University

20 Qs

Python Basics  unit-2 "A"Quiz

Python Basics unit-2 "A"Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

LOGESWARI M

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an integer in Python?

5.0

5

"5"

5 + 2j

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of type(3.14)?

A) <class 'int'>

B) <class 'float'>

C) <class 'complex'>

D) <class 'double'>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a complex number?

5 + 2i

5 + 2j

5 + 2I

5 + j2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is used for exponentiation?

^

**

//

%

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of 5 / 2 in Python 3?

2

2.5

2.0

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function converts a string to an integer?

str()

float()

int()

list()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does divmod(10, 3) return?

(3, 1)

(3.33, 1)

(3.0, 1.0)

Error

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