Solved

What Is the Value of X After the Instructions Corresponding X=5Y=7\begin{array} { l } \mathrm { X } = 5 \\\mathrm { Y } = 7\end{array}

Question 17

Multiple Choice

What is the value of X after the instructions corresponding to the following pseudocode are executed?
X=5Y=7\begin{array} { l } \mathrm { X } = 5 \\\mathrm { Y } = 7\end{array}
IF INT(5.4) =X\operatorname { INT } ( 5.4 ) = \mathrm { X } AND INT(6.9) =Y= \mathrm { Y } THEN X=X+Y\mathrm { X } = \mathrm { X } + \mathrm { Y }
ELSE
Y=Y+1\mathrm { Y } = \mathrm { Y } + 1
ENDIF


A) 5
B) 7
C) 8
D) 12

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions