Which one of the following variables is assigned with valid literals?
A) int salary =0;
salary = 5000.50;
B) int salary 1=0;
salary 1=1.2E6;
C) double salary 2=0;
salary 2=2.96E-2;
D) long salary 3=0;
salary 3=1E-6;
Correct Answer:
Verified
Q1: Which of the following statements with comments
Q2: What is wrong with the following code
Q3: Which of the following guidelines will make
Q4: Which one of the following refers to
Q5: What is wrong with the following code?
int
Q7: Which one of the following statements defines
Q8: What is the output of this code
Q9: Which of the following options declares a
Q10: What is wrong with the following code
Q11: Which option represents the best choice for
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents