Page 98 - iPro_trackGPT_V5_Class8
P. 98
E. Application-based questions.
1. Deepak wants to write a Java program that prints the name of the month instead of a
number. Which decision-making statement should he use to achieve this?
2. Ritik is writing a Java program where he needs to determine if a student
passes or fails based on a percentage. If the percentage is greater
than 40, the student should pass; otherwise, they should fail. Which
decision-making statement should he use for this situation?
#Problem Solving & Logical Reasoning
Higher Order Thinking Skills (HOTS) #Digital Literacy
1. Why is the switch statement more efficient than multiple if-else statements for checking
multiple conditions based on the same variable in Java?
2. Can an infinite loop ever be useful in Java programming?
Code Clues #Digital Literacy
#Experiential Learning
Find eight terms related to Java statements and errors.
L M E L T B S C H R
O P X Y C R R B G S
G H E F E E U E R W
I F L Y I A Q I U I
C O I R F K T C N T
A R H I O M N A T C
L O W H I L E S I H
C O N T I N U E M Z
X A S Y N T A X E S
G Y R R X S A I S U
SDG Activity
Conduct a survey to identify male-to-female ratios among teaching staff,
students, and housekeeping staff at your school. Use Java to analyse the
data and display result. Then, suggest three different ways to promote
gender equality in your school based on your findings.
96 TrackGPT iPRO (V5.0)-VIII

