
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
Python :: String review

Quiz
•
University
20 questions
variable in python

Quiz
•
University
20 questions
[Python For All] Quiz 2 - Rewind.py

Quiz
•
University
20 questions
Python QUIZ 02

Quiz
•
KG - Professional Dev...
20 questions
Python Data Types Quiz

Quiz
•
10th Grade - University
20 questions
Grade 7 Python Programming Quiz

Quiz
•
7th Grade - University
20 questions
Python

Quiz
•
University
20 questions
TEST FINAL - Algoritmia de Programación

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University