VAR Code

Consider a segment of a computer pseudocode below. What is the value of VAR at the conclusion of the script?
VAR=0
IF VAR < 7 THEN VAR = VAR + 3 
ELSE EXIT LOOP
LOOP

Expand Hint
The code is running a loop. VAR increases incrementally every time the code cycles through.
Hint 2
Factor in the exit criteria for the loop to end. The variable assigned to VAR that causes the loop to end is the answer.
The code is running a loop. VAR increases incrementally every time the code cycles through. Running through the script logically:
Loop is exited once VAR = 9
VAR = 9
Time Analysis See how quickly you looked at the hint, solution, and answer. This is important for making sure you will finish the FE Exam in time.
  • Hint: Not clicked
  • Solution: Not clicked
  • Answer: Not clicked

Similar Problems from FE Sub Section: Software Syntax Guidelines
370. Pseudocode
375. Code
379. Complex Code

Similar Problems from FE Section: Software Engineering
370. Pseudocode
375. Code
379. Complex Code