Professional Documents
Culture Documents
Test Questions
Test Questions
Stack=[“A”, “J”,”P”,”N”]
16) What is the situation called when an insertion is attempted in a full stack
and in an empty stack?
result=[ ]
for x as [10,5,2]
for y in[2,3,4]
result.append(x**y)
print result
21) Given range (1 to 50), create a list using list comprehension having numbers
from given range that are multiples of three.
[2,3,4,10,12,14,16]
27) What is the method for incrementing and decrementing an element in stack?