
Sena A. answered 05/02/20
Ivy League Computer Science Graduate, Patient Tutor
Hi! Here are the answers:
1) True
Explanation: charAt(int index) is used to obtain the character at a specific index.
2) True
Explanation: You'll be working from within a class when coding in Java.
3) True
Explanation: The condition in a for loop will be checked continually until it evaluates to false, at which point the for loop will no longer execute.
4) C)
Explanation: The "template" for the method is its parameters. What you actually pass between the parentheses of a method is the argument.
5) D)
Explanation: ++z will increment and store the new value of z immediately. x++ will increment the value, but x won't actually be changed to its incremented version until later.
6) A)
Explanation: Other data structures, like maps, can hold different data types, but arrays are limited.
7) False
Explanation: Putting spaces between words and sections of code always make it more readable.
8) True
Explanation: The String type is indeed a built-in class in Java.
9) False
Explanation: Classes will always begin with an uppercase letter.
10) False
Explanation: On the contrary, a \' is the escape character to print single quote.