Logo

Python Questions Set 176:

Quiz Mode

What is the output of the expression any(1, 0, 0)?

1
2
3
4

Solution:

 

What is the output of the following code?


print(3 >= 3)

1
2

Solution:

 Which of the following operators has its associativity from right to left? 

1
2
3
4

Solution:

The input() function takes the user's input as which of the following:

1
2
3
4

Solution:

 

Which Of The Following Is Required To Create A New Instance Of The Class?

1
2
3
4

Solution:

 

What will be the output of the following Python code?


 x = [12, 34]

 print(len(list(map(len, x)))) 

1
2
3
4

Solution:

What is the output of the following code?


from itertools import count


for i in count(3):

    print(i)

        if i >= 5:

            break


1
2
3
4

Solution:

What command is used to create a new Django project?

1
2
3
4

Solution:

What is the type of the args parameter in the following Python function?

def fun(*args):

    return args

fun(0o1463)

1
2
3
4

Solution:

  To sterilize an object hierarchy, the _____________ function must be called. To desterilize a data stream, the ______________ function must be called. 

1
2
3
4

Solution: