PYTHON CONTEST 2

PYTHON CONTEST 2

University

25 Qs

quiz-placeholder

Similar activities

Penilaian Harian Bab 1 Mapel TIK

Penilaian Harian Bab 1 Mapel TIK

12th Grade - University

20 Qs

DWDM Unit1 Quiz

DWDM Unit1 Quiz

University

21 Qs

COA_QUIZ_UNIT I

COA_QUIZ_UNIT I

University

20 Qs

CPA MS-Office Hotkeys Quiz

CPA MS-Office Hotkeys Quiz

8th Grade - Professional Development

21 Qs

DI (EM24) - Diseño de Contenidos (T8)

DI (EM24) - Diseño de Contenidos (T8)

University - Professional Development

20 Qs

IT 101 - Quiz 3

IT 101 - Quiz 3

University

20 Qs

NACOS Kahoot Session II

NACOS Kahoot Session II

University

20 Qs

Chapter 5 Mid Term Quiz - Computer System -

Chapter 5 Mid Term Quiz - Computer System -

5th Grade - University

20 Qs

PYTHON CONTEST 2

PYTHON CONTEST 2

Assessment

Quiz

Computers

University

Hard

Created by

SivaBharath.K.S SivaBharath.K.S

Used 9+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

All keywords in Python are in _________

Capitalized

lower case

UPPER CASE

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

7

2

4

1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code?

i = 1

while True:

if i%3 == 0:

break

print(i)

  i + = 1

123

error

12

none of the mentioned

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What are the values of the following Python expressions?

2**(3**2)

(2**3)**2

2**3**2

512, 64, 512

512, 512, 512

64, 512, 64

64, 64, 64

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following Python code?

l=[1, 0, 2, 0, 'hello', '', []]

list(filter(bool, l))

[1, 0, 2, ‘hello’, ”, []]

Error

[1, 2, ‘hello’]

[1, 2, ‘hello’]

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following functions is a built-in function in python?

factorial()

print()

seed()

sqrt()

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The following python program can work with ____ parameters.

def f(x):

def f1(*args, **kwargs):

print("Sanfoundry")

return x(*args, **kwargs)

return f1

any number of

0

1

2

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?