CBSE Class 11 Computer Science
Question 47 of 91
String Manipulation — Question 7
Back to all questions 7
Question Question 7
From the string S = "CARPE DIEM", which ranges return "DIE" and "CAR"?
Answer
- S[6:9] returns DIE
- S[:3] returns CAR
From the string S = "CARPE DIEM", which ranges return "DIE" and "CAR"?
Answer