
Python Basics unit-2 "A"Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
LOGESWARI M
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
data structures1
Quiz
•
University
20 questions
DI (EM24) - Diseño de Perfiles (T5)
Quiz
•
University - Professi...
20 questions
techy quiz
Quiz
•
University
20 questions
DATASET'24 Quizz (Round 1)
Quiz
•
University
20 questions
VIDEOJUEGOS-CMSB
Quiz
•
1st Grade - Professio...
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
21 questions
CÂU HỎI ÔN TAP HKI
Quiz
•
5th Grade - University
20 questions
kollekvium 3
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
