MCQ Answer

What is the output when we execute list("hello")?

What is the output when we execute list("hello")?

जब हम list ( "hello") निष्पादित करते हैं तो आउटपुट क्या है?
Topic : Sequence data types in python

A. ['llo']

B. ['hello']

C. ['h', 'e', l', 'l', 'o'] ['h', 'e', 'l', 'l', 'o']

D. None of the above इनमें से कोई नहीं




Correct Answer is :

C. ['h', 'e', l', 'l', 'o']



Explanation
<p><span style="font-size: 14px;">The list() function converts an iterable into a list.</span></p><p><span style="font-size: 14px;">A string is an iterable where each character is an element.</span></p><p><span style="font-size: 14px;">So list("hello") breaks the string into a list of its characters</span></p>
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2025 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