Python Function

Python Function

University

30 Qs

quiz-placeholder

Similar activities

Macromedia Flash

Macromedia Flash

8th Grade - Professional Development

26 Qs

UH-3 DASAR DESAIN GRAFIS

UH-3 DASAR DESAIN GRAFIS

1st Grade - University

25 Qs

Teori Produktif TKJ

Teori Produktif TKJ

12th Grade - University

25 Qs

Midterm Exam

Midterm Exam

University

25 Qs

IAS Semi Final Exam

IAS Semi Final Exam

University

25 Qs

MIS(BSBA) MIDTERM

MIS(BSBA) MIDTERM

University

25 Qs

COMPROBACIÓN DE LOGROS

COMPROBACIÓN DE LOGROS

University

25 Qs

Pemrograman Web - UNIB

Pemrograman Web - UNIB

University

25 Qs

Python Function

Python Function

Assessment

Quiz

Computers

University

Hard

Created by

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

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?