Number of questions 1,751
Number of tests completed 248,333
Number of questions answered 3,716,146
Number of registered users 19,034
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: 3680
Incorrectly answered: 7343
Terms of Use
contact@quiznetonline.com Ver. 2.0.6783.38332