What is the output of the following:

Hello World!
What are the two basic kinds of loops?
What does num++ do?
Add num to 1.
The type of variable used to store whole numbers.
What is the output of the following:

8
When should you use a for loop and when should you use a while loop?
Use a for loop when you want to do something a specific number of times. Use the while loop when you do not know how many times you want to repeat.
What does num += 5 do?
Add num by 5.
The type of variable that can be true or false.
Boolean.
What is the output of the following:

25
What is the output of this loop?

Infinite loop.
int num = 10;
num /= 3;
num = 3
A string.
What's the output of this code?
String a. = "He"
String b = "llo";
String c = " World";
String sentence = a+b+c;
System.out.println(sentence);
"Hello World"
If we want to count from 10 to 20 by 2s what are X, Y, and Z in the code below:

X = 10, Y = 21, Z = 2
What is 15 % 6?
Difference between a char and a string?
A char holds one character and uses single quotes
Example:
char c = 'h' ;
String word = "hello";
What are the first two printed numbers for this loop?

25
9
Given a string input and an int n return a larger string that is n copies of the original string.
string_times('Hi', 2) → 'HiHi'
string_times('Hi', 3) → 'HiHiHi'
Fill in the missing code:


What does num1** do ?
This doesn't exist.
How do we define an integer array with storing 15 student's grades?
int[] grades = new int [15]