Multiple choice technology programming languages

What is the result when the following piece of code is executed? /REXX/ X=16 Y=5 Z = X % Y Say Z

  1. 80

  2. 3.2

  3. 3

  4. 1

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In this REXX code, the operator % performs integer division (not floating-point division). X=16 and Y=5, so Z = 16 % 5 = 3 (the integer quotient, ignoring the remainder). Option A (80) would be multiplication (*), and option B (3.2) would be regular division (/). REXX uses % specifically for integer division, which truncates toward zero.