PYTHON BASICS QUIZ-2

PYTHON BASICS QUIZ-2

Professional Development

18 Qs

quiz-placeholder

Similar activities

Day-8 Squish

Day-8 Squish

Professional Development

14 Qs

PythonDS

PythonDS

Professional Development

21 Qs

Java Collections

Java Collections

Professional Development

14 Qs

[FAST TRACK] Android quiz 15

[FAST TRACK] Android quiz 15

Professional Development

15 Qs

PythonDataStructure

PythonDataStructure

Professional Development

21 Qs

Python FUnctions

Python FUnctions

Professional Development

20 Qs

COMP2_Quiz1

COMP2_Quiz1

University - Professional Development

23 Qs

Quiz 2 Internship on Fundamentals of Python

Quiz 2 Internship on Fundamentals of Python

Professional Development

15 Qs

PYTHON BASICS QUIZ-2

PYTHON BASICS QUIZ-2

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Mrs KEERTHIKA

Used 1+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the value of the following Python expression?

4 + 3 % 5

7

2

4

1

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is used to define a block of code in Python language?



Indentation

Key

Brackets

All of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function in Python language?

Function

def

fun

Define

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following character is used to give single-line comments in Python?


//

#

!

/*

5.

MULTIPLE CHOICE QUESTION

1 min • 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

1 2 3

Error

1 2

None of the mentioned

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following functions can help us to find the version of python that we are currently working on?

sys.version(1)

sys.version(0)

sys.version()

sys.version

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Python supports the creation of anonymous functions at runtime, using a construct called __________

pi


anonymous

lambda

none of the mentioned

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?