Don’t worry, unlock all articles / blogs on PrepInsta by just simply logging in on our website
Type atleast 3 characters
Popular Searches
Trending Pages
Notifications Mark All Read
No New notification
InfyTQ Menu9>
PREPINSTA PRIME
Get Hiring Updates right in your inbox from PrepInsta
Question 1
Functions are used to create objects in Python.
Functions make your program run faster.
A function is a piece of code that performs a specific task
All of the above
Start
Question 2
Class
Modules
Another Function
Method
Question 3
def hope(text): print(text, 'is awesome.') hope('Prepinsta')
Prepinsta
Prepinsta is awesome.
The text is awesome.
is awesome.
Question 4
None object
An arbitrary integer
Error
Function must return something
Question 5
A function that calls all the functions in the program.
A function that calls itself.
A function that calls all the functions in the program except itself.
There is no such thing as a recursive function in Python.
Question 6
output = lambda var: var * var print(output(5))
10
5
25
5*5
Question 7
numbers = [1, 3, 6] newNumbers = list(map(lambda x: x , numbers)) print(newNumbers)
[1, 3, 6]
[0, 1, 2]
1, 3, 6
0, 1, 2
Question 8
My_String = "Prep Insta" My_String = My_String.split() k = [(z.upper(), len(z)) for z in My_String] print(k)
[(‘P’, 1), (‘r’, 1), (‘e’, 1), (‘p’, 1), (‘ ‘, 1), (‘I’, 1), (‘n’, 1), (‘s’, 1), (‘t’, 1), (‘a’, 1)]
[('PREP', 4), ('INSTA', 6)]
[('PREP', 4), (‘ ’, 1), ('INSTA', 5)]
[('PREP', 4), ('INSTA', 5)]
Question 9
['h', 'e', 'l', 'l', 'o']
hello
Hello
hELLO
Question 10
a = lambda i,j : i+j print(a(5, 6))
11
00
5,6
Please login to report