Groovy Quiz 13 | Strings | Part 2 Reference video | Groovy Playground 1 Point for every correct answer | Let’s Get Started 1. Guess the output def str = "RAGHAV" print str.substring(3) GHAV HAV AV 2. Guess the output def str = "RAGHAV" print str.substring(1,3) AGH AG GH 3. def str = "RAGHAV" print str.subSequence(1,3) AG GH AGH 4. Run code here – https://www.tutorialspoint.com/execute_groovy_online.php def str = "Automation Step by Step" print str.split(" ") [Automation, Step, by, Step] {Automation, Step, by, Step} Exception 5. You can run and check code here – https://groovy-playground.appspot.com/ Guess the output def str = "Automation Step by Step" print str-("Automation") Automation Step by Step Exception 6. def str = "Automation Step by Step" print str-("Step") Automation by Automation by Step 7. def str = "This is a groovy class" print str.replace("class","session") This is a groovy session This is a groovy class This is groovy 8. def str = "Automation Step by Step" print str.toLowerCase() Automation Step by Step automation step by step Exception 9. def str = "Automation Step by Step" print str.toUpperCase() AUTOMATION STEP BY STEP Automation Step by Step Exception 10. def str = "Raghav" print str.toList() [Raghav] [R, a, g, h, a, v] Exception Loading … 10