English

A compound statement can be stated as: - Computer Applications

Advertisements
Advertisements

Question

A compound statement can be stated as: 

Options

  • p = in.nextInt();
    q = in.nextInt(); 
  • m = ++a;
    n = --b; 
  • if (a > b) 
    {a++; b--;) 
  • None

MCQ

Solution

if (a > b) 
{a++; b--;) 

Explanation:

Two or more statements can be combined by enclosing them in opening and closing curly braces. A compound statement refers to a collection of statements.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.08: Conditional Statements in Java - EXERCISES [Page 98]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.08 Conditional Statements in Java
EXERCISES | Q I. 2. | Page 98
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×