Reading Quiz Questions
These are the questions that will appear on the reading quizzes in week 6. 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 Feb 11 (Reading Quiz 11)
1. What do you do to reduce the pixelation in an image (what the blur method does)?
2. What does the following print
int x = 10;
if(x<9)
{
x+=3;
}
if(x>10)
{
x++;
}
System.out.println(x);
2. What does the following print
int x = 10;
if(x<9)
{
x+=3;
}
if(x>10)
{
x++;
}
System.out.println(x);
Wednesday Feb 13 (Reading Quiz 12)
3. What does the java.lang.ArrayIndexoutOfBoundsException tell you?
4. What gets printed in the following:
int x = 5;
if(x < 6)
{
x+=2;
}
else if(x>6)
{
x++;
}
else
{
x--;
}
System.out.println(x);
4. What gets printed in the following:
int x = 5;
if(x < 6)
{
x+=2;
}
else if(x>6)
{
x++;
}
else
{
x--;
}
System.out.println(x);
Friday Feb 15 (Reading Quiz 13)
1. The length of a SoundSample array has to do with what?
2. If you wanted to decrease the volume of the sound file, what would you have to decrease?
2. If you wanted to decrease the volume of the sound file, what would you have to decrease?