Report Bug

QusWhich of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))? Qusनिम्नलिखित में से कौन सा प्रिंट निष्पादित करने पर कभी प्रदर्शित नहीं होगा (random.choice ({0: 1, 2: 3}))?


A. 0
B. 1
C. KeyError: 1
D. none of the mentioned


Solution
A. 0



Explanation
It will not print 0 but dict[0] i.e. 1 may be printed.
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz