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

  1. S[6:9] returns DIE
  2. S[:3] returns CAR
Answer