What is the expected output of the following code?

What is the expected output of the following code?

A. 2
B. The code will cause a runtime exception
C. 1
D. 3

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “What is the expected output of the following code?

  1. Will give an error because of name convention(variable can not start with a number). If you change 1st to any other name like (first) answer will be 3

Leave a Reply

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


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