Reading Quiz Questions Week 10
These are the questions that will appear on the reading quizzes in week 10. Remember these quizzes take place at the start of class, and you get points for correctness, not just participation. These will be the exact questions we ask you. They will be multiple choice clicker questions, but we do not provide the answer choice here. If you can answer them without the answer choices, you'll have no problems answering them when you see the choices. These are not designed to be overly tricky.
Monday, March 11
1. How do you start a comment so that it will generate web-readable (html) Javadocs?
2. How many ‘@param’ tags should you include when commenting a method
2. How many ‘@param’ tags should you include when commenting a method
Wednesday, March 13
1. In the following code what update is done at the end of each loop iteration?
for (int index = 0; index < 5; index++)
{
//Some code here
}
2. What is the correct if-statement header ("if" plus boolean expression) to check whether a variable x is less than 40 or greater than 50?
for (int index = 0; index < 5; index++)
{
//Some code here
}
2. What is the correct if-statement header ("if" plus boolean expression) to check whether a variable x is less than 40 or greater than 50?
Friday, March 15
1. What is the string escape category for 'New line'
2. How many times does the body of this loop execute?
int index = 10;
while (index>=0)
{
System.out.println("CSE8A ROCKS!");
index = index - 1;
}
2. How many times does the body of this loop execute?
int index = 10;
while (index>=0)
{
System.out.println("CSE8A ROCKS!");
index = index - 1;
}