Report Bug

Qus: <p>What will be the output of the following Python code?</p> <pre>a={'B':5,'A':9,'C':7}<br>print(sorted(a))</pre>

Qus<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a={'B':5,'A':9,'C':7}<br>print(sorted(a))</pre>


A. [‘A’,’B’,’C’]
B. [‘B’,’C’,’A’]
C. [5,7,9]
D. [9,5,7]


Solution
A. [‘A’,’B’,’C’]



Explanation
Return a new sorted list of keys in the dictionary.
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad