What is the output of the expression?
round(4.5676,2)?
Python Function
Quiz
•
Computers
•
University
•
Hard
Fathoni Mahardika
Used 16+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the expression?
round(4.5676,2)?
4.5
4.6
4.57
4.56
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the functions shown below?
divmod(10.5,5)
divmod(2.4,1.2)
(2.00, 0.50)(2.00, 0.00)
(2, 0.5)(2, 0)
(2.0, 0.5)(2.0, 0.0)
(2, 0.5)(2)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the function shown below?
hex(15)
f
0xF
0Xf
0xf
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
d = {"john":40, "peter":45}
d["john"]
40
45
“john”
“peter”
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following piece of code?
a={1:"A",2:"B",3:"C"}
print(a.get(1,4))
1
A
4
Invalid syntax for get method
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following snippet of code?
total={}
def insert(items):
if items in total:
total[items] += 1
else:
total[items] = 1
insert('Apple')
insert('Ball')
insert('Apple')
print (len(total))
3
1
2
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is called when a function is defined inside a class?
Module
Class
Another function
Method
25 questions
Test Your JavaScript Fundamental (Part 1)
Quiz
•
University
26 questions
R Quiz
Quiz
•
University
25 questions
Python Module 1
Quiz
•
University
25 questions
Iedc Coders Club Programming Quiz
Quiz
•
University
25 questions
PYTHON CONTEST
Quiz
•
University
30 questions
String
Quiz
•
10th Grade - University
25 questions
Script_programming_test
Quiz
•
University
25 questions
Mock 2nd MCQ Python
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade