Page 96 - Trackpad_ipro 4.1_Class8
P. 96
E. Application-based questions.
1. Dilip wants to create a Java program to check whether he can vote or not.
Which type of Java statement can help him do this?
2. Naveen wants to display his name on the screen 20 times. Suggest him a type of
statement in Java that can help him do so.
#Coding & Computational Thinking
Higher Order Thinking Skills (HOTS)
1. Write a Java program that takes an integer number from the user between 1 and 7.
It displays the weekday name.
2. Rewrite the given Java code using while loop.
public class Fun {
public static void main(String[] args) {
int n = 5;
// for loop
for (int i = 1; i <= n; ++i) {
System.out.println("Java is fun");
}
}
}
Crack The Code #Digital Literacy
#Experiential Learning
Find the eight terms related to Java statements and errors.
C O N T I N U E L L
O V D E F A U L T T
N H L U I F D R M I
D I O E R R O R G T
I N O R B R E A K E
T T P L E O I H R R
I E I I P L H E A A
O R N S W I T C H T
N F G U N I X G I I
A A N X R E S G O O
L J U M P I N G N N
94 iPro (Ver. 4.1)-VIII

