Page 91 - Viva ICSE Computer Studies 8 : E-book
P. 91
LEARNING IS FUN
A Making a Chart
Make a chart of operators and control fl ow statements used in Java programming.
B Completing the Flowcharts
Complete the given fl owcharts.
(a) To print the odd numbers (b) To fi nd the largest of the two numbers
between 1 and 20
Start Start
True
int a = 5, b = 9
False
False
Stop
True
C Identifying the Structure
Identify the given syntax and write which conditional controlled structure they belong to.
(a) if (test condition) (b) if (test condition) (c) Switch (expression)
{ { {
statements statements case 1:
} } break;
else case 2:
{ break;
statements default:
} break;
}
________________ ________________ ________________
________________ ________________ ________________
79
79