NIELIT O Level Exam

Which of the following is not a declaration of the dictionary?

Which of the following is not a declaration of the dictionary?

निम्नलिखित में से कौन सा ड़िक्शनरी का डिक्लेरेशन नहीं है?

A. {1: ‘A’, 2: ‘B’}

B. dict([[1,”A”],[2,”B”]])

C. {1,”A”,2”B”}

D. { }




Correct Answer is :

C. {1,”A”,2”B”}



Explanation
Option c is a set, not a dictionary.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad