Avichal Solutions For Computer Applications Class 10th ICSE Chapter 1.7 - Conditional Statements in Java (Latest Edition)
Avichal Solutions For Computer Applications Class 10th ICSE Chapter 1.7 - Conditional Statements in Java (Latest Edition)
CHAPTERS
Avichal solutions for Computer Applications Class 10th ICSE Chapter 1.7 Conditional Statements in Java Review Insight
[Page 97]
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 1/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
VIEW SOLUTION
if(a == 100)
c = a * 2;
if(a == 200)
c = a * 4;
if(a == 600)
c = a * 10;
VIEW SOLUTION
VIEW SOLUTION
int a = 5, b = 3;
if (a <= b)
System.out.println(a);
(English Medium) ICSE
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
Class 10
else
System.out.println(c = a + b);
VIEW SOLUTION
int p = 10;
switch (p)
{
case1: q = p * 2;
break;
case2: q = p + 2;
break;
case3: q = p − 2;
break;
}
VIEW SOLUTION
Rewrite the following program segment using if-else statements instead of the
ternary operator:
String grade = (mark >= 90) ? “A” : (mark >= 80) ? “B” : “C”;
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 3/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
EXERCISES | Q I. 1. | Page 98
If m, n, p are the three integers, then which of the following holds true, if (m == n) &&
(n != p)?
'm' and 'n' are equal
'n' and 'p' are equal
'm' and 'p' are equal
None
VIEW SOLUTION
EXERCISES | Q I. 2. | Page 98
p = in.nextInt();
q = in.nextInt();
m = ++a;
n = --b;
if (a > b)
{a++; b--;)
None
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 4/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
VIEW SOLUTION
EXERCISES | Q I. 3. | Page 98
VIEW SOLUTION
EXERCISES | Q I. 4. | Page 98
if (a < b)
c = a;
else
c = b;
c = (b < a) ? a : b;
c = (a != b) ? a : b;
c = (a < b) ? b : a;
None
VIEW SOLUTION
EXERCISES | Q I. 5. | Page 98
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 5/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
VIEW SOLUTION
VIEW SOLUTION
VIEW SOLUTION
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 6/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
In a switch case, when the switch value does not match with any case then the
execution transfers to the default case.
True
(English Medium) ICSE
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
False
VIEW SOLUTION
VIEW SOLUTION
int m = 3, n = 5, p = 4;
if (m == n) && (n != p)
{
System.out.println(m * n);
System.out.println(n % p);
}
if ((m != n) || (n == p))
{
System.out.printIn(m + n);
System.out.println(m − n);
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 7/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
p=1
int a = 1, b = 2, c = 3;
(English Medium) ICSE
switch(p)
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
{
case 1: a++;
case 2: ++b;
break;
case 3: c--;
}
System.out.println(a + "," + b + "," + c);
VIEW SOLUTION
int a = 1, b = 2, c = 3;
switch(p)
{
case 1: a++;
case 2: ++b;
break;
case 3: c--;
}
System.out.println(a + "," + b + "," + c);
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 8/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
switch(n)
(English Medium) ICSE
{
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
case 1:
s = a + b;
System.out.println("Sum = " + s);
break;
case 2:
d = a − b;
System.out. println("Difference = " + d);
break;
case 3:
p = a * b;
System.out.println("Product = " + p);
break;
default:
System.out.println("Wrong Choice!");
}
VIEW SOLUTION
if (var == 1)
System.out.println("Distinction");
else if (var == 2)
System.out.println("First Division");
else if (var == 3)
System.out.println("Second Division");
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-java… 9/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
else
System.out.println("invalid");
VIEW SOLUTION
VIEW SOLUTION
VIEW SOLUTION
What will happen if break statement is not used in a switch case? Explain.
VIEW SOLUTION
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 10/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
VIEW SOLUTION
(English Medium) ICSE
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
EXERCISES | Q V. 6. (ii) | Page 100
VIEW SOLUTION
VIEW SOLUTION
Give two differences between the switch statement and the If-else statement.
VIEW SOLUTION
Unsolved Programs:
Write a program to input three numbers (positive or negative). If they are unequal then
display the greatest number otherwise, display they are equal. The program also
displays whether the numbers entered by the user are 'All positive', 'All negative' or
'Mixed numbers'.
Sample Input: 56, -15, 12
Sample Output: The greatest number is 56.
Entered numbers are mixed numbers.
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 11/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
A triangle is said to be an 'Equable Triangle', if the area of the triangle is equal to its
perimeter. Write a program to enter three sides of a triangle. Check and print whether
the triangle is equable or not.
(English Medium) ICSE
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
For example, a right angled triangle with sides 5, 12 and 13 has its area and perimeter
both equal to 30.
VIEW SOLUTION
A special two-digit number is such that when the sum of its digits is added to the
product of its digits, the result is equal to the original two-digit number. Example:
Consider the number 59.
Sum of digits = 5 + 9 = 14
Product of its digits = 5 x 9 = 45
Sum of the sum of digits and product of digits = 14 + 45 = 59
Write a program to accept a two-digit number. Add the sum of its digits to the product
of its digits. If the value is equal to the number input, output the message “Special 2-
digit number” otherwise, output the message “Not a special 2-digit number”
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 12/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
VIEW SOLUTION
An air-conditioned bus charges fare from the passengers based on the distance
travelled as per the tariff given below:
Distance Travelled Fare
Up to 10 km Fixed charge ₹ 80
11 km to 20 km ₹ 6/km
21 km to 30 km ₹ 5/km
VIEW SOLUTION
An ICSE school displays a notice on the school notice board regarding admission in
Class XI for choosing stream according to marks obtained in English, Maths and
Science in Class 10 Council Examination.
Marks obtained in different subjects Stream
Eng and Science >= 80%, Maths >= 60% Bio. Science
VIEW SOLUTION
VIEW SOLUTION
A courier company charges differently for 'Ordinary' booking and 'Express' booking
based on the weight of the parcel as per the tariff given below:
Weight of parcel Ordinary booking Express booking
Up to 100 gm ₹ 80 ₹ 100
VIEW SOLUTION
VIEW SOLUTION
Write a program that accepts three numbers from the user and displays them either in
"Increasing Order" or in "Decreasing Order" as per the user's choice.
Choice 1: Ascending order
Choice 2: Descending order
Sample Inputs: 394, 475, 296
Choice: 2
Sample Output:
First number : 475
Second number : 394
Third number : 296
The numbers are in decreasing order.
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 15/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
VIEW SOLUTION
Write a program using switch case to find the volume of a cube, a sphere and a cuboid.
For an incorrect choice, an appropriate error message should be displayed.
a. Volume of a cube = s * s * s
4 22
b. Volume of a sphere = π*r*r*r (π = )
3 7
VIEW SOLUTION
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 16/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
In order to purchase an old car, the depreciated value can be calculated as per the tariff
given below:
No. of years used Rate of depreciation
(English Medium) ICSE
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
1 10%
2 20%
3 30%
4 40%
VIEW SOLUTION
You have a saving account in a bank with some balance amount in your account. Now,
you want to perform the following tasks, as per your choice. The tasks are as under:
1. Money Deposited
2. Money Withdrawn
3. Check balance
0. To quit
Write a menu driven program to take input from the user and perform the above tasks.
The program checks the balance before withdrawal and finally displays the current
balance after transaction. For an incorrect choice, an appropriate message should be
displayed.
VIEW SOLUTION
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 17/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 -
Conditional Statements in Java
Shaalaa.com has the CISCE Mathematics Computer Applications Class 10th ICSE CISCE solutions
in a manner that help students grasp basic concepts better and faster. The detailed, step-by-
step solutions will help you understand the concepts better and clarify any confusion. Avichal
solutions for Mathematics Computer Applications Class 10th ICSE CISCE 1.7 (Conditional
Statements in Java) include all questions with answers and detailed explanations. This will clear
students' doubts about questions and improve their application skills while preparing for board
exams.
Further, we at Shaalaa.com provide such solutions so students can prepare for written exams.
Avichal textbook solutions can be a core help for self-study and provide excellent self-help
guidance for students.
Concepts covered in Computer Applications Class 10th ICSE chapter 1.7 Conditional Statements
in Java are Introduction of Conditional Statements in Java, Flow of Control, Normal Flow of
Control, Conditional Flow of Control.
Using Avichal Computer Applications Class 10th ICSE solutions Conditional Statements in Java
exercise by students is an easy way to prepare for the exams, as they involve solutions arranged
chapter-wise and also page-wise. The questions involved in Avichal Solutions are essential
questions that can be asked in the final exam. Maximum CISCE Computer Applications Class
10th ICSE students prefer Avichal Textbook Solutions to score more in exams.
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 18/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
Get the free view of Chapter 1.7, Conditional Statements in Java Computer Applications Class
10th ICSE additional questions for Mathematics Computer Applications Class 10th ICSE CISCE,
and you can use Shaalaa.com to keep it handy for your exam preparation.
(English Medium) ICSE
Class 10
Question Papers Textbook Solutions MCQ Online Mock Tests Important Solutions
Textbook Solutions
Balbharati Solutions (Maharashtra)
Samacheer Kalvi Solutions (Tamil Nadu)
NCERT Solutions
RD Sharma Solutions
RD Sharma Class 10 Solutions
RD Sharma Class 9 Solutions
Lakhmir Singh Solutions
TS Grewal Solutions
ICSE Class 10 Solutions
Selina ICSE Concise Solutions
Frank ICSE Solutions
ML Aggarwal Solutions
NCERT Solutions
NCERT Solutions for Class 12 Maths
NCERT Solutions for Class 12 Physics
NCERT Solutions for Class 12 Chemistry
NCERT Solutions for Class 12 Biology
NCERT Solutions for Class 11 Maths
NCERT Solutions for Class 11 Physics
NCERT Solutions for Class 11 Chemistry
NCERT Solutions for Class 11 Biology
NCERT Solutions for Class 10 Maths
NCERT Solutions for Class 10 Science
NCERT Solutions for Class 9 Maths
NCERT Solutions for Class 9 Science
© 2025 Shaalaa.com
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 20/21
1/13/25, 8:33 PM Avichal solutions for Computer Applications Class 10th ICSE chapter 1.7 - Conditional Statements in Java [Latest edition] | Sh…
https://www.shaalaa.com/textbook-solutions/c/avichal-solutions-computer-applications-class-10th-icse-chapter-1.7-conditional-statements-in-jav… 21/21