Computer Applications
By default, the if-part and else-part of an if statement can contain these many statements in it.
- 2
- 1
- 5
- as many
Java Conditional Stmts
7 Likes
Answer
1
Reason — By default, the if-part and else-part can contain only one statement. To include more than one statements, the set of statements need to be enclosed in curly braces and included as one compound statement.
Answered By
3 Likes
Related Questions
Which clause is optional in a switch statement?
- switch
- case
- default
- none of the above
Absence of which statement causes a fall-through in a switch statement.
- continue
- break
- stop
- fall
Which of the following loops is mostly used for fixed number of iterations ?
- for
- do-while
- while
- none of the above
Which of the following is not an entry controlled loop ?
- for
- do-while
- while
- none of the above