Python Check

Python Check

University

11 Qs

quiz-placeholder

Similar activities

Python if statement

Python if statement

University

15 Qs

1. Ayo Main Quiz

1. Ayo Main Quiz

University - Professional Development

16 Qs

[Python For All] Quiz 5 - Numpy

[Python For All] Quiz 5 - Numpy

University

15 Qs

Java Arrays

Java Arrays

University

10 Qs

Kuis Logika & Algoritma

Kuis Logika & Algoritma

University

10 Qs

while loop

while loop

University

15 Qs

Java Static

Java Static

University

10 Qs

INTRODUCTION TO CODING QUIZ 2

INTRODUCTION TO CODING QUIZ 2

University

13 Qs

Python Check

Python Check

Assessment

Quiz

Computers

University

Medium

Created by

Sripradha G

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

def mystery(x):

return x * x - x

print(mystery(4))

12
8
16
0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a default built-in function in Python?

size()
len()

sqrt()

total()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(1, 5):

if i % 2 == 0:

print(i, end=" ")

What would be output?

1 2 3 4

2 4

1
3

0 2 4

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

________ math module function is used to return the smallest integer greater than or equal to a number

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x = 5

while x > 0:

x -= 1

if x == 2:

continue

print(x, end=" ")

Identify the output.

4 3 1 0

4 3

4
3

4

3

1

0

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The keyword ______ is used in Python to define a user-defined function.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The for loop uses a built-in function called _______ to generate a sequence.

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?