Question 58Asked in Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)

Consider the statements given below and then choose the correct output from theनीचे दिये गए स्‍टैटमेंट्स (Statements ) पर विचार कीजिए और दिये गये विकल्‍पों में से सही आउटपुट

Consider the statements given below and then choose the correct output from the given options : L=['TIC' , 'TAC' ] print (L[::-1])
नीचे दिये गए स्‍टैटमेंट्स (Statements ) पर विचार कीजिए और दिये गये विकल्‍पों में से सही आउटपुट (Output) चुनिये : L=['TIC' , 'TAC' ] print (L[::-1])
  1. A['CIT' , 'CAT' ]['CIT' , 'CAT' ]
  2. B['TIC' , 'TAC' ]['TIC' , 'TAC' ]
  3. C['CAT' , 'CIT' ]['CAT' , 'CIT' ]
  4. D['TAC' , 'TIC' ]['TAC' , 'TIC' ]
Show answerHide answer

Correct answer: (D) ['TAC' , 'TIC' ]['TAC' , 'TIC' ]

Explanation

L[::-1] reverses the list's order but not the strings inside it, so it prints ['TAC', 'TIC'].L[::-1] सूची का क्रम उलटता है, पर उसके भीतर की स्ट्रिंग नहीं, इसलिए यह ['TAC', 'TIC'] प्रिंट करता है।

From Bihar STET 2025 Paper II Computer Science PYQ, 7 Nov 2025, Shift 1 (9:00 AM)

This is question 58 of Bihar STET 2025 Paper II Computer Science PYQ, 7 Nov 2025, Shift 1 (9:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.