Solved

Which One of the Following Variables Is Assigned with Valid

Question 107

Multiple Choice

Which one of the following variables is assigned with valid literals?


A) int salary = 0;
Salary = 5000.50;
B) int salary1 = 0;
Salary1 = 1.2E6;
C) double salary2 = 0;
Salary2 = 2.96E-2;
D) long salary3 = 0;
Salary3 = 1E-6;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions