English

The statement p + = 5 means p = p*5. - Computer Applications

Advertisements
Advertisements

Question

The statement p + = 5 means p = p*5. 

Options

  • True

  • False 

MCQ
True or False

Solution

This statement is False.

Explanation:

The statement p + = 5 is improper syntax in most computer languages, including Java and C++. The correct compound assignment operator for addition is p + = 5, which indicates p = p + 5, rather than p = p * 5. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 43]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.04 Operators in Java
EXERCISES | Q II. 7. | Page 43
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×