Given
Char ch;
Int num;
Double pay; Which of the following assignment statements are valid?
(i) ch = ' * ' ;
(ii) pay = num * pay;
(iii) rate * 40 = pay;
A) Only (i) is valid
B) (i) and (ii) are valid
C) (ii) and (iii) are valid
D) (i) and (iii) are valid
Correct Answer:
Verified
Q24: _ are executable statements that inform the
Q31: Both System.out.println and System.out.print can be used
Q36: The length of the string "first java
Q36: Which of the following is the newline
Q37: Which of the following is NOT a
Q39: The expression (double)(5 + 4) evaluates to
Q40: Which of the following is a valid
Q42: The declaration int a, b, c; is
Q43: Consider the following program. // Insertion Point
Q46: Suppose x = 4 and y =
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