Multiple Choice
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
Correct Answer:
Verified
Related Questions
Q27: Consider the following program. public class CircleArea
Q28: The number of significant digits in a
Q29: Both System.out.println and System.out.print can be used
Q30: A value such as 'd' is called
Q31: The value of a variable may change
Q33: The == characters are a special symbol
Q34: Which of the following is a valid
Q35: If ++x is used in an expression,
Q36: Suppose x = 8. After the execution
Q37: The symbol '5' does not belong to