Question 46
You are ar teviemng the fdbwng Java furxton that deteimates whether a curb*. rput by the user. * Even or Odd Public da»s Oddorfven { public state void mair^Strcg [ | args) ( Scarcer read - new ScanrerfSystem inje System out prim ('Pease enter a rxmber'i; int Number * reader nextfntO, if(Number^2»»0) System out prrrtln "your input number 'Number * is even ).
else
System out prntirfyour input number 'Number * is odd*);
)
}
You are Qj>ded by '.he following checklist
*All variables must start with a Capital letter
*All output messages must start with a Capita letter
*There must De a comment bne es pla ning the purpose of the dess
How many checklist items Mve been fuelled7
SELECT ONE OPTION
else
System out prntirfyour input number 'Number * is odd*);
)
}
You are Qj>ded by '.he following checklist
*All variables must start with a Capital letter
*All output messages must start with a Capita letter
*There must De a comment bne es pla ning the purpose of the dess
How many checklist items Mve been fuelled7
SELECT ONE OPTION
Question 47
The following user story has been written:
As a paying hotel guest
I want to see the charges that have been added to my bill
So that I can monitor my expenditure and know In advance how much I will have to pay when I check out The notes that have been added to It mention that It must be possible for the guest to get a printout of the bill, see It In a variety of currencies and set a flag in the hotel's billing system against any Item that they wish to challenge.
The following acceptance criteria have been defined:
1.The user shall be able to choose from the most commonly-used currencies.
2.The application must be accessible on most mobile platforms as well as on the hotel room's smart TV.
3.The hotel manager must be notified whenever a bill item is flagged by a hotel guest.
4.End-to-end response time for any individual request submitted by a user must not exceed 7 seconds.
Applying the INVEST technique to this user story, including its acceptance criteria, which of the following statements is correct?
SELECT ONE OPTION
As a paying hotel guest
I want to see the charges that have been added to my bill
So that I can monitor my expenditure and know In advance how much I will have to pay when I check out The notes that have been added to It mention that It must be possible for the guest to get a printout of the bill, see It In a variety of currencies and set a flag in the hotel's billing system against any Item that they wish to challenge.
The following acceptance criteria have been defined:
1.The user shall be able to choose from the most commonly-used currencies.
2.The application must be accessible on most mobile platforms as well as on the hotel room's smart TV.
3.The hotel manager must be notified whenever a bill item is flagged by a hotel guest.
4.End-to-end response time for any individual request submitted by a user must not exceed 7 seconds.
Applying the INVEST technique to this user story, including its acceptance criteria, which of the following statements is correct?
SELECT ONE OPTION
Question 48
Consider the pseudo code for the Price program:

Which of the following statements about the Price program describes a control flow anomaly to be found in the program?

Which of the following statements about the Price program describes a control flow anomaly to be found in the program?
Question 49
Given the following pseudocode:
Program tax check
BEGIN
yearly := 0
tax := 0
get (monthly)
get (tax_rate)
for I = 1..12 loop
yearly := yearly + monthly
tax := tax - (tax_rate * monthly)
ENDLOOP
salary := monthly * 12
IF salary = yearly THEN
print ("Salary OK")
ELSE
print ("Salary not OK")
ENDIF
year_tax := salary * tax_rate
IF year_tax = tax THEN
print ("Tax Problem")
ENDIF
END tax check
If control flow analysis is performed on the pseudocode, which of the following results is MOST likely?
Program tax check
BEGIN
yearly := 0
tax := 0
get (monthly)
get (tax_rate)
for I = 1..12 loop
yearly := yearly + monthly
tax := tax - (tax_rate * monthly)
ENDLOOP
salary := monthly * 12
IF salary = yearly THEN
print ("Salary OK")
ELSE
print ("Salary not OK")
ENDIF
year_tax := salary * tax_rate
IF year_tax = tax THEN
print ("Tax Problem")
ENDIF
END tax check
If control flow analysis is performed on the pseudocode, which of the following results is MOST likely?
Question 50
Below is the pseudo-code for the Win program:

The bingo program contains a data flow anomaly. Which data flow anomaly can be found in this program?

The bingo program contains a data flow anomaly. Which data flow anomaly can be found in this program?
