Solved

What Is the Value of X After the Instructions Corresponding

Question 27

Multiple Choice

What is the value of X after the instructions corresponding to the following pseudocode are executed?
X=5Y=7 IF INT(5.4) =XORINT(7.0) =Y THEN X=X+Y ELSE Y=Y+1\begin{array} { l } \mathrm { X } = 5 \\\mathrm { Y } = 7 \\\text { IF } \operatorname { INT } ( 5.4 ) = \mathrm { X } \mathrm { OR } \mathrm { INT } ( 7.0 ) = \mathrm { Y } \text { THEN } \\\mathrm { X } = \mathrm { X } + \mathrm { Y } \\\text { ELSE } \\\mathrm { Y } = \mathrm { Y } + 1 \\\end{array}
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