How could you create a String variable, s, and set it equal to "Fast Start" in one line?
String s = "Fast Start";
Consider the following code: int x = 13; int y = 7; System.out.println(x % y); What is the output?
6
What is a double?
A double is a primitive data type so a double variable directly stores the data for the double.
Consider the following code: int x = 27; int y = 13; System.out.print("Answer: " + x + y); This code outputs: Answer: 2713
True
Consider the following code: System.out.println("Answer: " + (3 + 7)); This code outputs: Answer: 10
True
What will be printed by the following code? System.out.println("I came,\tI saw,\n\tI left.");
I came, I saw, I left.
To output: Nums: [31, 43, 28, 17 ] You would need to use what escape sequence in the blank: System.out.print("Nums: [31, 43, 28, 17____]");
\n
Which of the following symbols need an escape character to be output in a System.out.print statement?
What does \t do?
It puts a tab space in between two characters
Consider the following code: System.out.println("Answer: " + (5.0 + 9)); This code outputs: Answer: 14
False