Groovy Quiz 14 | Strings | Part 3 Reference video | Groovy Playground 1 Point for every correct answer | Let’s Get Started Please enter your email: 1. Guess the output def str = "Raghav " print str*3 Raghav Raghav Raghav Raghav*3 Raghav Exception 2. print "Automation".equals("Automation") true false 3. print "Automation".equalsIgnoreCase("automation") true false 4. //slashy strings def str1 = /a green sky/ println str1 //dollar slashy strings def str2 = $/a blue tree/$ println str2 a green sky a blue tree a green sky Exception Exception a blue tree 5. Interpolation or referring variables def name = "Groovy" //slashy strings def str1 = /a green sky $name/ println str1 //dollar slashy strings def str2 = $/a blue tree $name/$ println str2 a green sky $name a blue tree $name a green sky Groovy a blue tree Groovy Exception 6. New line def name = "Groovy" def str1 = /a green sky $name/ println str1 def str2 = $/a blue tree $name/$ println str2 a green sky Groovy a blue tree Groovy a green sky Groovy a blue tree Groovy 7. def str1 = "My name is "Raghav"" println str1 My name is “Raghav” Exception 8. def str1 = "My name is \"Raghav\"" println str1 My name is “Raghav” Exception My name is Raghav 9. Using slashy strings to print a word inside quotes ” “ def str1 = /My name is "Raghav"/ println str1 My name is “Raghav” My name is Raghav Exception Loading … 7