Language Trivia Quiz

about the background image...

Assembler

MAIN CSECT
L 10=V(SUBRTN)
BALR 10,10
C 15,MAXRC
.
.
.

SUBRTN CSECT
USING SUBRTN,10
L 15,SUBRTNRC
BR 10

SUBRTNRC DC F'4'
END

What instruction is executed following the BR instruction in SUBRTN?

Answer

Fortran

INTEGERS A,B,C
A=1.1
B=2.2
C=3.3
SUM=A+B+C
PRINT,SUM
END

What value is printed?

Answer

REXX

/* rexx */
a=0; b=0; c=0;
if a=b=c then say ,
"All are equal.";
else say "All are not equal."
exit;

Which sentence is printed?

Answer