PP FINAL V2

PP FINAL V2

University

25 Qs

quiz-placeholder

Similar activities

Otrais posms SV11-12

Otrais posms SV11-12

KG - Professional Development

25 Qs

Salesforce Admin Quiz 3

Salesforce Admin Quiz 3

University - Professional Development

30 Qs

Football Quiz

Football Quiz

1st Grade - Professional Development

25 Qs

Основы энергетики 2

Основы энергетики 2

University

30 Qs

BARBAR 2

BARBAR 2

12th Grade - Professional Development

23 Qs

QUIZ MILENIAL HARDIKNAS

QUIZ MILENIAL HARDIKNAS

University

25 Qs

PROTECCIÓ CIVIL CATALUNYA v0

PROTECCIÓ CIVIL CATALUNYA v0

KG - Professional Development

23 Qs

les lois et les instances judiciaires

les lois et les instances judiciaires

University

21 Qs

PP FINAL V2

PP FINAL V2

Assessment

Passage

Special Education

University

Easy

Created by

Динара Альменбетова

Used 1+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What arithmetic operators cannot be used with strings ?

A)*

B)+

C)-

D)All of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet ?

d = {"john":40, "peter":45}

"john" in d

a) True

b) False

c) None

d) Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code ?

import random

random.choice([10.4, 56.99, 76])

a) Error

b) Either 10.4, 56.99 or 76

c) Any number other than 10.4, 56.99 and 76

d) 56.99 only

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function re.search do?

a) matches a pattern at the start of the string

b) matches a pattern at any position in the string

c) such a function does not exist

d) none of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet ?

d = {"john":40, "peter":45}

print(list(d.keys()))

a) ["john", "peter"]

b) ["john": 40, "peter": 45]

c) {"john", "peter"}

d) ("john": 40, "peter": 45)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the ‘return’ keyword do in a function ?

a) Terminates the function

b) Returns a value from the function

c) Skips the function

d) Declares a variable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet ?

def multiply(a, b=2):

return a * b

result = multiply(5)

print(result)

a) 5

b) 10

c) 2

d) 7

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?