Consider the following statement:
System.out.println("1 big bad wolf\t8 the 3 little pigs\n4 dinner\r2night");
This statement will output _____ lines of text.
Question options:
Give this one a try later!
, 2
These two ways of setting up a String yield identical results:
a) String string = "12345";
b) String string = 12345;
Give this one a try later!
false
What is output with the statement System.out.println(""+x+y); if x and y are int values
where x = 10 and y = 5?
Give this one a try later!
105
What output is produced by the following code fragment?
String s1 = "Girl Scout Cookies";
String s2 = s1.substring(11,17);
System.out.println(s1);
System.out.println(s2);
Question options:
Give this one a try later!
System.out.println("1 big bad wolf\t8 the 3 little pigs\n4 dinner\r2night");
This statement will output _____ lines of text.
Question options:
Give this one a try later!
, 2
These two ways of setting up a String yield identical results:
a) String string = "12345";
b) String string = 12345;
Give this one a try later!
false
What is output with the statement System.out.println(""+x+y); if x and y are int values
where x = 10 and y = 5?
Give this one a try later!
105
What output is produced by the following code fragment?
String s1 = "Girl Scout Cookies";
String s2 = s1.substring(11,17);
System.out.println(s1);
System.out.println(s2);
Question options:
Give this one a try later!