Python function output based KVRDSO lucknow

Python function output based KVRDSO lucknow

11th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

J277 - 2.2 - Functions in Python

J277 - 2.2 - Functions in Python

10th Grade - University

10 Qs

Python revision

Python revision

10th Grade - University

15 Qs

простой тест программирование

простой тест программирование

1st Grade - University

8 Qs

Error Finding

Error Finding

12th Grade

10 Qs

Python Basics Quiz for KS3

Python Basics Quiz for KS3

11th Grade - University

9 Qs

Python Quiz - 4

Python Quiz - 4

4th - 11th Grade

10 Qs

[Python OOP] Inheritance, special function

[Python OOP] Inheritance, special function

12th Grade

7 Qs

Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

Python function output based KVRDSO lucknow

Python function output based KVRDSO lucknow

Assessment

Quiz

Computers

11th - 12th Grade

Medium

Created by

Rajkumar Yadav

Used 63+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

WHAT key word we declare for user define function

def

DEF

BOT A AND B

NONE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of python code?

a=10

def disp():

print("Hello india")

print("global",a)

b=200

print("local",b)


disp()

hello india

global 10

local 200

Hello india

global 10

local 200

hello india

global 200

local 10

Eroor

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of given python code?

a=100

def disp():


b=200

print("Local",b)


disp()

a=10

sum= a+a

print(sum)

Local 200

20

local 200

120

local 10

200

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

which type of loop we use in python program?

for only

while and for

do-while and for

both a and b

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output of python code?

def disp():

print("Hello \n WELCOME \n python")

disp()

None

Error

Hello

WELCOME

Python

Program

Hello

WELCOME

python

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Read python code carefully and choose the option

def add(i):

if(i*3%2==0):

i*=i

else:

i*=4

return i

a=add(10)

print(a)

100

40

10

4000

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Find output

import math

def area(r):

return math.pi*r*r

a=int(area(10))

print(a)

3.140

314

31400

31.4

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?