2a.hands-On_Introduction to Java - Questions
2a.hands-On_Introduction to Java - Questions
Hands-on No. : 2a
Date : 13.02.2025
Question
Question Detail Level
No.
1 the value 150.50 to ‘bookPrice’. Print the price. Now, re-assign a Easy
value to ‘bookPrice’ then print ‘bookPrice’.
Create the variables for a player's name, age, height in cm, weight
in kg, rank, and mobile number, and assign the values of your
2 Easy
choice. Display the player detail. (byte, short, int, double, String
datatypes can be used).
Read a person's name first, read another person and another.
Greet the first person first, the third person second and the second
3 Easy
person last. If ‘Chloe’, ‘Joey’ & ‘Zoe’ are the inputs, then the
output will be ‘Welcome Chloe! Welcome Zoe! Welcome Joey too!’
A cashier in a shop has currency notes of denominations 10,50
and 100. If the amount to be returned is the input, find the total
larger number.