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

What is the output of the following expression? Sports = "Paralympic Games"निम्‍नलिखित अभिव्‍यक्ति (expression) का आउटपुट क्‍या है?

What is the output of the following expression? Sports = "Paralympic Games" print ( Sports. Split ( "m"))
निम्‍नलिखित अभिव्‍यक्ति (expression) का आउटपुट क्‍या है? Sports = "Paralympic Games" print ( Sports. Split ( "m"))
  1. A[ ' Paraly ' , 'm' , 'pic Ga', 'm', ' es'][ ' Paraly ' , 'm' , 'pic Ga', 'm', 'es']
  2. B('Paraly', 'm', 'pic Games')('Paraly', 'm', 'pic Games')
  3. C('Paraly', 'pic Ga', 'es')('Paraly', 'pic Ga', 'es')
  4. D[ 'Paraly', 'pic Ga', 'es'][ 'Paraly', 'pic Ga', 'es']
Show answerHide answer

Correct answer: (D) [ 'Paraly', 'pic Ga', 'es'][ 'Paraly', 'pic Ga', 'es']

Explanation

split("m") cuts the string at every "m" and drops the separator: "Paralympic Games" gives ['Paraly', 'pic Ga', 'es']. split always returns a list, not a tuple.split("m") स्ट्रिंग को हर "m" पर काटता है और विभाजक हटा देता है: "Paralympic Games" से ['Paraly', 'pic Ga', 'es'] मिलता है। split हमेशा list लौटाता है, tuple नहीं।

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

This is question 41 of Bihar STET 2025 Paper II Computer Science PYQ, 3 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.