
Python Basics unit-2 "A"Quiz

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
20 questions
Day 7 - ONLINE TEST - PL03 PYTHON PROGRAMMING

Quiz
•
University
20 questions
Quiz Tipos de Datos y Operadores

Quiz
•
University
20 questions
UNIT 1 PYTHON

Quiz
•
University
20 questions
PYTHON PROGRAMMING Q5 ITERATIONS

Quiz
•
University
30 questions
Aptitude and Computer Science Quiz

Quiz
•
University
30 questions
Computer Programming-2

Quiz
•
University
20 questions
Python Quiz - BPLCK105B

Quiz
•
University
20 questions
Python 1

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University