ЁЯЪА Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

Functions

Question: 1 Report Error

рдЬрдм рдПрдХ Function рдХреЗ рдЕрдВрджрд░ рдЙрд╕реА Function рдХреЛ call рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИрдВ, рддрдм рд╡рд╣ рдХрд╣рд▓рд╛рддрд╛ рд╣реИрдВред

When the same function is called inside a function, then it is called.

A)
B)
C)
D)

Question: 2 Report Error

рдЬрдм рдХрд┐рд╕реА рдлрдВрдХреНрд╢рди рдХреЛ рдХрд┐рд╕реА рдХреНрд▓рд╛рд╕ рдХреЗ рдЕрдВрджрд░ рдкрд░рд┐рднрд╛рд╖рд┐рдд рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ рддреЛ рдЙрд╕реЗ рдХреНрдпрд╛ рдХрд╣рддреЗ рд╣реИрдВ?

What is it called when a function is defined inside a class?

A)
B)
C)
D)

Question: 3 Report Error

trunc() function рдХреА рд░рд┐рдЯрд░реНрди рд╡реИрд▓реНрдпреВ рдХреНрдпрд╛ рд╣реИ?

What is the return value of trunc() function?

A)
B)
C)
D)

Question: 4 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ python language рдореЗрдВ рдПрдХ рдХреАрд╡рд░реНрдб рдирд╣реАрдВ рд╣реИ?

Which of the following is not a keyword in python language?

A)
B)
C)
D)

Question: 5 Report Error

рдХрд┐рд╕реА рдлрдВрдХреНрд╢рди рдХреЗ рдмрд╛рд╣рд░ рдкрд░рд┐рднрд╛рд╖рд┐рдд рд╡реЗрд░рд┐рдПрдмрд▓ рдХреЛ рдХреНрдпрд╛ рдХрд╣рддреЗ рд╣реИрдВ?

What is a variable defined outside a function called?

A)
B)
C)
D)

Question: 6 Report Error

pow(x,y) рдХреЗ рд▓рд┐рдП рд╕рд╣реА рдСрдкрд░реЗрдЯрд░ рдХреМрди рд╕рд╛ рд╣реИ?

Which is the correct operator for pow(x,y)?

A)
B)
C)
D)

Question: 7 Report Error

рдлрдВрдХреНрд╢рди id() рдХрд╛ рд░рд┐рдЯрд░реНрди рдкреНрд░рдХрд╛рд░ рдХреНрдпрд╛ рд╣реИ?

What is the return type of function id()?

A)
B)
C)
D)

Question: 8 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХрд┐рд╕реЗ identifier рдХреЗ рд░реВрдк рдореЗрдВ рдЙрдкрдпреЛрдЧ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ?

Which of the following cannot be used as an identifier?

A)
B)
C)
D)

Question: 9 Report Error

inf рдХрд╛ type of inf рдХреНрдпрд╛ рд╣реЛрддрд╛ рд╣реИ?

What is the type of inf?

A)
B)
C)
D)

Question: 10 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рдПрдХ рд╡реИрдз рд╕реНрдЯреНрд░рд┐рдВрдЧ рд╕реНрдерд┐рд░рд╛рдВрдХ(valid string constant in python) рд╣реИ?

Which of the following is a valid string constant in python?

A)
B)
C)
D)

Question: 11 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд 'рдкрд╛рдпрдерди' рдкреНрд░реЛрдЧреНрд░рд╛рдо рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛? a=1 b=5 if(a==5 рдпрд╛ b>10): рдкреНрд░рд┐рдВрдЯ('рдореИрдВ рдирд┐рд╢реНрдЪрд┐рдд рд░реВрдк рд╕реЗ рдкрд╛рд╕ рд╣реЛ рдЬрд╛рдКрдВрдЧрд╛') рдЕрдиреНрдпрдерд╛: рдкреНрд░рд┐рдВрдЯ('рдореИрдВ рдкрд░рд┐рдгрд╛рдо рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдЗрддрдирд╛ рдирд┐рд╢реНрдЪрд┐рдд рдирд╣реАрдВ рд╣реВрдВ')

What will be the output of the following тАШpythonтАЩ program? a=1 b=5 if(a==5 or b>10): print("I will certainly pass") else: print("I am not so sure about the result")

A)
B)
C)
D)

Question: 12 Report Error

рдирд┐рдореНрди рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ рдкрд╛рдпрдерди рдореЗрдВ рдПрдХ рдХреАрд╡рд░реНрдб рдирд╣реАрдВ рд╣реИ

Which of the following is not a keyword in Python

A)
B)
C)
D)

Question: 13 Report Error

list рдХреЗ item curly braces { } рдХреЗ рдЕрдВрджрд░ рд▓рд┐рдЦреЗ рдЬрд╛рддреЗ рд╣реИ

The items of the list are written inside curly braces { }

A)
B)
C)
D)

Question: 14 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдЕрднрд┐рд╡реНрдпрдХреНрддрд┐ рдореЗрдВ рд╕реЗ рдХрд┐рд╕рдХреЗ рдкрд╛рд╕ рдЙрдЪреНрдЪрддрдо precedence рд╣реИ ?

Which of the following expressions has the highest precedence?

A)
B)
C)
D)

Question: 15 Report Error

рдЬреЛрдбрд╝ рдФрд░ рдШрдЯрд╛рд╡ рдХрд╛ рд╡рд░реАрдпрддрд╛ рд╕реНрддрд░ (precedence level)рдПрдХ рд╣реА рд╣реИ |

The precedence level of addition and subtraction is the same.

A)
B)
C)
D)

Question: 16 Report Error

values() dictionary рдХрд╛ рдПрдХ function рд╣реИ рдЬреЛ dictionary рд╕реЗ рд╕рднреА values рдкреНрд░рд╛рдкреНрдд рдХрд░рддрд╛ рд╣реИ ред

values() is a function of dictionary which gets all the values ??from the dictionary.

A)
B)
C)
D)

Question: 17 Report Error

рдПрдХ рдкрд╛рдпрдерди documentation рд╕реНрдЯреНрд░рд┐рдВрдЧ рдХреЛ docstring рдХреЗ рд░реВрдк рдореЗрдВ рдЬрд╛рдирд╛ рдЬрд╛рддрд╛ рд╣реИ

A Python documentation string is known as a docstring.

A)
B)
C)
D)

Question: 18 Report Error

Python рдореЗрдВ Enumerate () рдПрдХ method рд╣реИ рдЬрд┐рд╕рдХрд╛ рдЙрдкрдпреЛрдЧ iterable object рдХреЗ рдкреНрд░рддреНрдпреЗрдХ рдЖрдЗрдЯрдо рдХреЛ рдПрдХ index assign рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред

Enumerate() in Python is a method used to assign an index to each item of an iterable object.

A)
B)
C)
D)

Question: 19 Report Error

print(3**4) рдЗрд╕рдХреЛ execute рдХрд░рдиреЗ рдкрд░ output рдХреНрдпрд╛ рдЖрдПрдЧрд╛ ?

print(3**4) What will be the output after executing this?

A)
B)
C)
D)

Question: 20 Report Error

remove method set,list рдХреЗ item рдХреЛ delete рдХрд░рддрд╛ рд╣реИ, рддреЛ remove() method рдХреЗ рд▓рд┐рдП рдХреМрди рд╕рд╛ рдХрдерди рд╕рд╣реА рд╣реИ ?

remove method deletes the item of set,list, then which statement is correct for remove() method?

A)
B)
C)
D)

Question: 21 Report Error

рдЗрд╕рдХрд╛ output рдХреНрдпрд╛ рд╣реЛрдЧрд╛ | print("Examjila[-1]")

What will be its output? print("Examjila[-1]")

A)
B)
C)
D)

Question: 22 Report Error

python рдореЗрдВ input() function рдХреНрдпрд╛ return рдХрд░рддрд╛ рд╣реИ ?

What does the input() function return in python?

A)
B)
C)
D)

Question: 23 Report Error

print("10" + 15) рдХрд╛ output рд╣реЛрдЧрд╛ ?

What will be the output of print("10" + 15)?

A)
B)
C)
D)

Question: 24 Report Error

integer value рдХреЛ string рдореЗрдВ рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рд╕ function рдХрд╛ рдкреНрд░рдпреЛрдЧ рдХрд░рддреЗ рд╣реИ ?

Which function is used to convert integer value to string?

A)
B)
C)
D)

Question: 25 Report Error

Correct output statement. if print(100/0)

Correct output statement. if print(100/0)

A)
B)
C)
D)

Question: 26 Report Error

рдХрд┐рд╕реА character рдХреА ASCII value рд▓реЗрдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рд╕ function рдХрд╛ use рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ ?

Which function is used to get the ASCII value of a character?

A)
B)
C)
D)

Question: 27 Report Error

рдХрд┐рд╕реА valid ASCII number рдХреЛ рдХрд░реИрдХреНрдЯрд░ рдореЗрдВ рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рд╕ function рдХрд╛ рдкреНрд░рдпреЛрдЧ рдХрд░рддреЗ рд╣реИ ?

Which function is used to convert a valid ASCII number into character?

A)
B)
C)
D)

Question: 28 Report Error

zeros() method рдПрдХ array create рдХрд░рддрд╛ рд╣реИ рдФрд░ by default рд╕рднреА values рдХреЛ 1 рд╕реЗ fill рдХрд░рддрд╛ рд╣реИ ?

zeros() method creates an array and by default fills all values ??with 1?

A)
B)
C)
D)

Question: 29 Report Error

eye() method __________ рдореЗрдВ рдЙрдкрд▓рдмреНрдз рд╣реИ ?

eye() method is available in __________?

A)
B)
C)
D)

Question: 30 Report Error

рдЬрдм function multiple values return рдХрд░рддрд╛ рд╣реИ рддрдм рдпрд╣____________ рдХреА form рдореЗрдВ рд╣реЛрддрд╛ рд╣реИ

When a function returns multiple values, it is in the form of ____________.

A)
B)
C)
D)

Question: 31 Report Error

рдХреНрдпрд╛ рд╣рдо lamda() function рдХреЗ рд╕рд╛рде return keyword use рдХрд░ рд╕рдХрддреЗ рд╣реИ ?

Can we use return keyword with lambda() function?

A)
B)
C)
D)

Question: 32 Report Error

seek() method file object рдХреА current position рдХреЛ return рдХрд░рддрд╛ рд╣реИ ?

seek() method returns the current position of the file object?

A)
B)
C)
D)

Question: 33 Report Error

print(0.1 + 0.2 == 0.3) рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реИ?

What is the output of print(0.1 + 0.2 == 0.3)?

A)
B)
C)
D)

Question: 34 Report Error

print(0.1 + 0.2 > 0.3) рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реИ?

What is the output of print(0.1 + 0.2 > 0.3)?

A)
B)
C)
D)

Question: 35 Report Error

print(9//2) рдХрд╛ output рдХреНрдпрд╛ рд╣реИрдВ?

What is the output of print(9//2)?

A)
B)
C)
D)

Question: 36 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рдЧрдгрд┐рддреАрдп рдХрд╛рд░реНрдп рдХреЛ refers рдХрд░рддрд╛ рд╣реИрдВ?

Which of the following refers to mathematical operations?

A)
B)
C)
D)

Question: 37 Report Error

рдпрджрд┐ рдХрд┐рд╕реА function рдХрд╛ рд░рд┐рдЯрд░реНрди statement рдирд╣реАрдВ рд╣реИ, рддреЛ рдирд┐рдореНрди рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ function рд░рд┐рдЯрд░реНрди рд╣реЛрддрд╛ рд╣реИрдВ?

By using Function, we can avoid writing the same code again and again in a program.

A)
B)
C)
D)

Question: 38 Report Error

рдирд┐рдореНрди рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ рдлрдВрдХреНрд╢рди рдкрд╛рдЗрдерди рдореЗрдВ рдмрд┐рд▓реНрдЯ-рдЗрди рдлрдВрдХреНрд╢рди рд╣реИ?

A)
B)
C)
D)

Question: 39 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рд╕реЗ рдкрд╛рдпрдерди рдореЗрдВ рдорд╛рдиреНрдп рд╕реНрдЯреНрд░рд┐рдВрдЧ рд╣реЗрд░рдлреЗрд░ рдХрд╛рд░реНрдп рд╣реИрдВ?

A)
B)
C)
D)

Question: 40 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдкреНрд░реЛрдЧреНрд░рд╛рдо рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реИ: print "Hello World"[::-1]

A)
B)
C)
D)

Question: 41 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдореЗрдВ рд╕реЗ рдХреМрди рд╕рд╛ рдХрд╛рд░реНрдп рдкрд╛рдпрдерди рдореЗрдВ рджрд┐рдирд╛рдВрдХ рдХреЛ рд╕рдВрдмрдВрдзрд┐рдд рд╕рдордп рдореЗрдВ рдкрд░рд┐рд╡рд░реНрддрд┐рдд рдХрд░рддрд╛ рд╣реИ?

A)
B)
C)
D)

Question: 42 Report Error

рдиреАрдЪреЗ рджрд┐рдП рдЧрдП рдХреЛрдб рд╕реНрдирд┐рдкреЗрдЯ рдореЗрдВ var рдХрд╛ рдбреЗрдЯрд╛рдЯрд╛рдЗрдк рдХреНрдпрд╛ рд╣реЛрдЧрд╛? var = 10 print(type(var)) var = "Hello" print(type(var))

What will be the datatype of var in the code snippet below? var = 10 print(type(var)) var = "Hello" print(type(var))

A)
B)
C)
D)

Question: 43 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдХреЛрдб рд╕реНрдирд┐рдкреЗрдЯ рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)

What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)

A)
B)
C)
D)

Question: 44 Report Error

рдХреЛрдб рдкреНрд░рд┐рдВрдЯ рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрддрд╛ рд╣реИ (9//2)

What is the output of code print (9//2)

A)
B)
C)
D)

Question: 45 Report Error

рдлреЙрд░ рдЖрдИ рдЗрди рд░реЗрдВрдЬ (-5,0,1) рдЪрд▓реЗрдЧреА

For i in range (-5,0,1) will work

A)
B)
C)
D)

Question: 46 Report Error

рдбреЗрдЯрд╛рдЗрдо рдореЗрдВ рдмрджрд▓рдиреЗ рдХреЗ рд▓рд┐рдП рдкреНрд░рдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рдиреЗ рд╡рд╛рд▓рд╛ рдлрдВрдХреНрд╢рди рд╣реИ :

The function used to convert datetime is:

A)
B)
C)
D)

Question: 47 Report Error

рдкрд╛рдпрдерди рдореЗрдВ рдлрдВрдХреНрд╢рди рдХрд╛ рдЙрдкрдпреЛрдЧ рдирд┐рдореНрди рдореЗрдВ рд╕реЗ рдХреНрдпрд╛ рд╣реИ?

Which of the following is the use of function in Python?

A)
B)
C)
D)

Question: 48 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдкрд╛рдпрдерди рдлрд╝рдВрдХреНрд╢рди рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛? all([2,4,0,6])

What will be the output of the following Python function? all([2,4,0,6])

A)
B)
C)

Question: 49 Report Error

рдЯреЗрдХреНрд╕реНрдЯ рдкреНрд░рджрд░реНрд╢рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд┐рд╕ рдкрд╛рдпрдерди рдлрд╝рдВрдХреНрд╢рди рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ?

Which Python function is used to display text?

A)
B)
C)
D)

Question: 50 Report Error

рдирд┐рдореНрдирд▓рд┐рдЦрд┐рдд рдкрд╛рдпрдерди рдлрд╝рдВрдХреНрд╢рди рдХрд╛ рдЖрдЙрдЯрдкреБрдЯ рдХреНрдпрд╛ рд╣реЛрдЧрд╛?sum(2,4,6) sum([1,2,3])

What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])

A)
B)
C)
D)

Latest Updates