What is the result?

Given the code fragment:

What is the result?
A. The compilation fails due to an error in line 2.
B. 201
C. de
D. 203
E. The compilation fails due to an error in line 3.
F. The compilation fails due to an error in line 1.

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the result?

    1. I will consider “int = y = (int) e” as a typo.

      Because, it seems assigning with and without explicit casting is the target of the question.
      observer the line before it. assigning values to x and y variables and then targeting the operation in between.

      2
      1

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.