Number of questions 1,751
Number of tests completed 246,984
Number of questions answered 3,697,077
Number of registered users 18,985
Sign In | Register
Skip Navigation Links
Question: If int? i = 2; which of the following assigns the value 2 to j?
Answer1: int j = i;
Answer2: int j = i ?? 0;
Answer3: int j = i ? i : 0;
Answer4: All of the above
Answer5:
Answer: int j = i ?? 0;

Explaination: The other two will issue a complier error. (Question has been tested)
Link: External Explaination

Correctly answered: 3602
Incorrectly answered: 7078
Terms of Use
contact@quiznetonline.com Ver. 2.0.6364.35217