0%
0 / 3 answered
Evaluating String Expressions Practice Test3 Questions
Question
1 / 3
Q1

Consider the code below:

String s = "Logic!";

String s2 = "";

for(int i = 0; i < s.length(); i++) {

if(i != 0) {

s2 += " ";

}

s2 += s;

}

What is the value of s2 at the end of the code's execution?

Question Navigator