Following quiz provides Multiple Choice Questions (MCQs) related to Python . You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - List_1 = [[1,1,1],[2,2,2],[3,3,3]] List_2 = copy.copy(List_1) List_1[1][1] = 'a?' print(List2) # Output : [[1,1,1],[2,'a',2],[3,3,3]] |
|
Show Answer |
Answer is : Option A |
Q 2 - Which of the following is not a built in function in python3? |
|
Show Answer |
Answer is : Option B |
Q 3 - Suppose 'str' is a string. Which among the following returns the character at index "i"? |
|
Show Answer |
Answer is : Option C |
Q 4 - import math print (type(math.inf)). The above code outputs?In python 3.x |
|
Show Answer |
Answer is : Option B |
Q 5 - Which data structure is used for storing variables pretaining to a function while calling function? |
|
Show Answer |
Answer is : Option B |
Q 6 - bin_list1=[1,0,1,0,1] bin_list2=[1,1,1,1,1] print([x&y for x in bin_list1 for y in bin_list2]) |
|
Show Answer |
Answer is : Option A |
Q 7 - Which among the following paradigms is not supported by python? |
|
Show Answer |
Answer is : Option A |
Q 8 - i=0 while True: True = False print(i) i = i + 1 What will be consequence on running the above code? |
|
Show Answer |
Answer is : Option A |
Q 9 - a = [1,2,3] b = a a[2]=4 print(b). What will be the output? |
|
Show Answer |
Answer is : Option C |
Q 10 - import math print (math.inf) ? |
|
Show Answer |
Answer is : Option D |