Question
What is String slice?

Answer

p>Slicing means extracting a part of the string by passing values between the square brackets []. For example:

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free