Python Basics  unit-2 "A"Quiz

Python Basics unit-2 "A"Quiz

University

25 Qs

quiz-placeholder

Similar activities

Set - 1

Set - 1

University

20 Qs

Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Day 6 - ONLINE TEST - PL03 PYTHON PROGRAMMING

University

20 Qs

Python1

Python1

University

20 Qs

Introduction to Python

Introduction to Python

KG - University

25 Qs

python

python

University

30 Qs

CP_Second Series Test

CP_Second Series Test

University

20 Qs

Python Complete course test

Python Complete course test

University

20 Qs

ASK T2 - Kod Arahan (Python)

ASK T2 - Kod Arahan (Python)

7th Grade - University

20 Qs

Python Basics  unit-2 "A"Quiz

Python Basics unit-2 "A"Quiz

Assessment

Quiz

Computers

University

Hard

Created by

LOGESWARI M

Used 1+ times

FREE Resource

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

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?