Pre Final Quiz 2 Attempt Review PDF
Pre Final Quiz 2 Attempt Review PDF
Pre Final Quiz 2 Attempt Review PDF
Home / My courses / UGRD-IT6301-2026S / Week 11-15: Different ways to manage customer problems / Pre-final Quiz 2
Question 1
Complete
int a = 2;
int b = 5;
int c = 3;
int intResult = 0;
boolean x = true;
boolean y = false;
boolean booleanResult = false;
What will be the value of intResult or booleanResult if we execute the following expressions?
intResult = a >> 2;
Answer: 0
Question 2
Complete
int a = 2;
int b = 5;
int c = 3;
int intResult = 0;
boolean x = true;
boolean y = false;
boolean booleanResult = false;
What will be the value of intResult or booleanResult if we execute the following expressions?
intResult = a & b;
Answer: 2
This study source was downloaded by 100000850007811 from CourseHero.com on 07-26-2022 07:10:57 GMT -05:00
https://semestral.amaesonline.com/2026/mod/quiz/review.php?attempt=59923&cmid=43407 1/5
https://www.coursehero.com/file/89598774/Pre-final-Quiz-2-Attempt-reviewpdf/
4/21/2021 Pre-final Quiz 2: Attempt review
Question 3
Complete
Select one:
a. switch
c. for
d. do while
e. while
Question 4
Complete
int a = 2;
int b = 5;
int c = 3;
int intResult = 0;
boolean x = true;
boolean y = false;
boolean booleanResult = false;
What will be the value of intResult or booleanResult if we execute the following expressions?
Select one:
True
False
This study source was downloaded by 100000850007811 from CourseHero.com on 07-26-2022 07:10:57 GMT -05:00
https://semestral.amaesonline.com/2026/mod/quiz/review.php?attempt=59923&cmid=43407 2/5
https://www.coursehero.com/file/89598774/Pre-final-Quiz-2-Attempt-reviewpdf/
4/21/2021 Pre-final Quiz 2: Attempt review
Question 5
Complete
do{System.out.println("Hello World!");}while(true);
Select one:
a. None of the above.
d. Do nothing
Question 6
Complete
int a = 2;
int b = 5;
int c = 3;
int intResult = 0;
boolean x = true;
boolean y = false;
boolean booleanResult = false;
What will be the value of intResult or booleanResult if we execute the following expressions?
booleanResult = x && y || x;
Select one:
True
False
This study source was downloaded by 100000850007811 from CourseHero.com on 07-26-2022 07:10:57 GMT -05:00
https://semestral.amaesonline.com/2026/mod/quiz/review.php?attempt=59923&cmid=43407 3/5
https://www.coursehero.com/file/89598774/Pre-final-Quiz-2-Attempt-reviewpdf/
4/21/2021 Pre-final Quiz 2: Attempt review
Question 7
Complete
int a = 2;
int b = 5;
int c = 3;
int intResult = 0;
boolean x = true;
boolean y = false;
boolean booleanResult = false;
What will be the value of intResult or booleanResult if we execute the following expressions?
intResult = b % a;
Answer: 1
Question 8
Complete
Select one:
a. if (x<>y)
b. if (x>y)
c. if (y>y)
d. if (x!<y)
This study source was downloaded by 100000850007811 from CourseHero.com on 07-26-2022 07:10:57 GMT -05:00
https://semestral.amaesonline.com/2026/mod/quiz/review.php?attempt=59923&cmid=43407 4/5
https://www.coursehero.com/file/89598774/Pre-final-Quiz-2-Attempt-reviewpdf/
4/21/2021 Pre-final Quiz 2: Attempt review
Question 9
Complete
Select one:
a. none of the choices
b. if boolean_expression
c. if (boolean_expression)
d. boolean_expression
e. if boolean_expression
Question 10
Complete
Select one:
a. 10
c. 1
d. 0
e. 11
◄ Pre-final Quiz 1
Jump to...
Pre-final Exam ►
This study source was downloaded by 100000850007811 from CourseHero.com on 07-26-2022 07:10:57 GMT -05:00
https://semestral.amaesonline.com/2026/mod/quiz/review.php?attempt=59923&cmid=43407 5/5
https://www.coursehero.com/file/89598774/Pre-final-Quiz-2-Attempt-reviewpdf/
Powered by TCPDF (www.tcpdf.org)