time() && $theuser1!=1234) die(); ?> AP CS
Loading
notes intro/old submit AP Problems the dump links
 

Quiz 5 - String

 

id:

1. What does System.out.println("\\"); print out?

\

\\

"

""

2. How would you get the computer to print out: I am "happy".

System.out.println("I am \thappy\t");

System.out.println("I am /'happy/'");

System.out.println("I am /"happy/"");

System.out.println("I am \"happy\"");

 

3. True or false: String concatenation is used to add the value of strings or ints together true false

4. True or false: System.out.print("Hi\n") and System.out.println("Hi") will do the same thing. true false

5. What does System.out.println("The sum is " + 45 + 25); print out?

The sum is 70

The sum is 4525

The sum is 7025

None of this, it will cause an error