English

Avichal solutions for Computer Applications [English] Class 10 ICSE chapter 1.4 - Operators in Java [Latest edition]

Advertisements

Chapters

Avichal solutions for Computer Applications [English] Class 10 ICSE chapter 1.4 - Operators in Java - Shaalaa.com
Advertisements

Solutions for Chapter 1.4: Operators in Java

Below listed, you can find solutions for Chapter 1.4 of CISCE Avichal for Computer Applications [English] Class 10 ICSE.


Review InsightEXERCISES
Review Insight [Page 42]

Avichal solutions for Computer Applications [English] Class 10 ICSE 1.4 Operators in Java Review Insight [Page 42]

Review Insight | Q 1. | Page 42

What are the values of x and y when the following statements are executed?

int a = 63, b = 36;
boolean x = (a > b) ? a : b;
int y = (a < b) ? a : b; 
Review Insight | Q 2. | Page 42

What is meant by the precedence of operators?

Review Insight | Q 3. | Page 42

Operators with higher precedence are evaluated before operators with relatively lower precedence. Arrange the operators given below in order of higher precedence to lower precedence.

  1. && 
  2. >= 
  3. ++
Review Insight | Q 4. | Page 42

Give the output of the following method:

public static void main (String [] args)
{
int a = 5;
a++;
System.out.println(a);
a -= (a--) − (--a); 
System.out.println(a);
}
Review Insight | Q 5. | Page 42

Evaluate the value of n. if value of p = 5, q = 19  
int n = (q – p) > (p – q) ? (q – p) : (p – q) 

EXERCISES [Pages 43 - 44]

Avichal solutions for Computer Applications [English] Class 10 ICSE 1.4 Operators in Java EXERCISES [Pages 43 - 44]

Multiple Choice Questions:

EXERCISES | Q I. 1. | Page 43

Which of the following is the correct precedence of logical operators?

  • !, &&, ||

  • &&, !, ||

  • ||, !, &&

  • &&, ||, !

EXERCISES | Q I. 2. | Page 43

Choose the odd one out from the following: 

  • >

  • ==

  • &&

  • <

EXERCISES | Q I. 3. | Page 43

Given: String st = (a>= 90)? "Excellent": "Best";

Predict the output, when a = 90.

  • Best

  • Excellent: Best

  • Best: Excellent

  • Excellent

EXERCISES | Q I. 4. | Page 43

Choose the odd one out from the following: 

  • Unary operator

  • Binary operator

  • Ternary operator

  • Bitwise operator

EXERCISES | Q I. 5. | Page 43

Given: x + = x++ + ++ x  + − − x

Find the value, when x = 5.

  • 23

  • 21

  • 22

  • 24

State whether the following statements are 'True' or 'False':

EXERCISES | Q II. 1. | Page 43

The precedence of operators in Java follows BODMAS. 

  • True

  • False

EXERCISES | Q II. 2. | Page 43

The output of a++ will be 1, if int a = -1.

  • True

  • False

EXERCISES | Q II. 3. | Page 43

The relational operators always result in terms of 'True' or 'False'.

  • True

  • False

EXERCISES | Q II. 4. | Page 43

Given: int m = 5; m* = 5; then the value stored in m results in 55. 

  • True

  • False

EXERCISES | Q II. 5. | Page 43

The statement (a>b) && (a>c) uses a logical operator. 

  • True

  • False

EXERCISES | Q II. 6. | Page 43

If int a = 27, b = 4, c = O; then c = a%b; results in 3.

  • True 

  • False

EXERCISES | Q II. 7. | Page 43

The statement p + = 5 means p = p*5. 

  • True

  • False 

EXERCISES | Q II. 8. | Page 43

In the precedence of logical operators; NOT is followed by AND. 

  • True

  • False

EXERCISES | Q III. 1. | Page 43

Write the Java expression for the following:

`root3 (ab + cd)`

EXERCISES | Q III. 2. | Page 43

Write the Java expression for the following:

p3 + q4 − `1/2`r 

EXERCISES | Q III. 3. | Page 43

Write the Java expression for the following:

`(−b+sqrt(b^2 - 4ac))/(2a)`

EXERCISES | Q III. 4. | Page 43

Write the Java expression for the following:

`(0.05 - 2y^3)/((x - y))`

EXERCISES | Q III. 5. | Page 43

Write the Java expression for the following:

`sqrt(mm) + root3 ((m + n))` 

EXERCISES | Q III. 6. | Page 43

Write the Java expression for the following:

`3/4 (a + b) - 2/5 ab`

EXERCISES | Q III. 7 | Page 43

Write the Java expression for the following:

`3/8sqrt((b^2 + c^3))`

EXERCISES | Q III. 8. | Page 43

Write the Java expression for the following:

`root3 (a) + b^2 - root3c`

EXERCISES | Q III. 9. | Page 43

Write the Java expression for the following:

`sqrt(a + b^2 + c^3)/3`

EXERCISES | Q III. 10. | Page 43

Write the Java expression for the following:

`sqrt(3x + x^2)/((a + b))`

EXERCISES | Q III. 11. | Page 43

Write the Java expression for the following:

z = x3 + y3 − `y/z^3`

EXERCISES | Q III. 12. | Page 43

Write the Java expression for the following:

q = `1/sqrt(a + b) + 3/c^2`

EXERCISES | Q IV. 1. | Page 44

Predict the output: 

int c = (3<4)? 3*4:3+4; 
EXERCISES | Q IV. 2. | Page 44

Predict the output:

int a = 14, b = 4;
boolean x = (a>b)? true: false;
EXERCISES | Q IV. 3. | Page 44

Predict the output:

int x = 90;
char c = (x<=90)? 'Z':'I';
EXERCISES | Q IV. 4. | Page 44

Predict the output:

int a = 18; int b = 12;
boolean t = (a>20 && b< 15)? true:false; 
EXERCISES | Q IV. 5. (a) | Page 44

Predict the output:

c = (val + 550 < 1700)? 200: 400; 

if: val = 1000 

EXERCISES | Q IV. 5. (b) | Page 44

Predict the output:

c = (val + 550 < 1700)? 200: 400;

if: val = 1500 

Answer the following questions:

EXERCISES | Q V. 1. (i) | Page 44

What is an operator?

EXERCISES | Q V. 1. (ii) | Page 44

What are the three main types of operators? Name them. 

EXERCISES | Q V. 2. | Page 44

How is Java expression different from statement? 

EXERCISES | Q V. 3. (a) | Page 44

Explain the following with one example. 

Arithmetic operator 

EXERCISES | Q V. 3. (b) | Page 44

Explain the following with one example.

Relational operator

EXERCISES | Q V. 3. (c) | Page 44

Explain the following with one example.

Logical operator

EXERCISES | Q V. 3. (d) | Page 44

Explain the following with one example.

Ternary operator

EXERCISES | Q V. 4. (a) | Page 44

Write a difference between unary and binary operator.

EXERCISES | Q V. 4. (b) | Page 44

Distinguish between Postfix increment and Prefix increment.

EXERCISES | Q V. 4. (c) | Page 44

Distinguish between Postfix decrement and Prefix decrement.

EXERCISES | Q V. 4. (d) | Page 44

Distinguish between (p != q) and !(p == q).

EXERCISES | Q V. 5. (a) | Page 44

What is the difference between / and % operator? 

EXERCISES | Q V. 5. (b) | Page 44

What is the difference between = and ==? 

EXERCISES | Q V. 6. (a) | Page 44

What will be the output of the following code? 

int k = 5, j = 9;
k += k++ - ++j + k;
System.out.println("k=" + k);
System.out.println("j="+ j); 
EXERCISES | Q V. 6. (b) | Page 44

What will be the output of the following code?

If int y = 10 then find int z = ( ++y * (y++ + 5));

EXERCISES | Q V. 6. (c) | Page 44

Give the output of the following expression:
a+= a++ + ++a + -- a + a--; when a = 7;

EXERCISES | Q V. 6. (d) | Page 44

What is the value of y after evaluating the expression given below?

y+= ++y + y-- + --y; when int y=8; 

EXERCISES | Q V. 7. (a) | Page 44

Rewrite the following program segment using if-else statements instead of the ternary operator: 
String grade = (mark >= 90) ? “A” : (mark >= 80) ? “B” : “C”;

EXERCISES | Q V. 7. (b) | Page 44

Rewrite the following program segment using if-else statements instead of the ternary operator.

commission = (sale > 5000) ? (sale * 10) / 100 : 0;

EXERCISES | Q V. 7. (c) | Page 44

Rewrite the following program segment using if-else statements instead of the ternary operator.

net = (salary > 10000) ? salary − (8.33 / 100) * salary : salary − (5 / 100) * salary.

EXERCISES | Q V. 7. (d) | Page 44

Rewrite the following program segment using if-else statements instead of the ternary operator.

s = (a+b < c || a + c <= b || b + c <= a) ? "Triangle is not possible": "Triangle is possible";  

EXERCISES | Q V. 7. (e) | Page 44

Rewrite the following program segment using if-else statements instead of the ternary operator.

c = (x >= 'A' && x <= 'Z') ? "Upper Case Letter" : "Lower Case Letter";

EXERCISES | Q V. 8. (a) | Page 44

Rewrite the following using ternary operator.

if (x % 2 == 0) 
System.out.println("Even");
else
discount = bill * 5.0 / 100;
EXERCISES | Q V. 8. (b) | Page 44

Rewrite the following using ternary operator : 

if (bill > 10000)
discount = bill * 10.0 / 100;
else
discount = bill * 5.0 / 100;
EXERCISES | Q V. 8. (c) | Page 44

Rewrite the following using ternary operator.

if (income < 10000)
tax = 0; 
else
tax = 12; 
EXERCISES | Q V. 8. (d) | Page 44

Rewrite the following using ternary operator.

if (a > b)
{
if (a > c)
g = a;
else
g = c;
}
if (b > c) 
g = b;
else
g = c;
EXERCISES | Q V. 8. (e) | Page 44

Rewrite the following using ternary operator.

if (p >= 4750) 
k = p * 5 / 100; 
else 
k = p * 10 / 100; 

Solutions for 1.4: Operators in Java

Review InsightEXERCISES
Avichal solutions for Computer Applications [English] Class 10 ICSE chapter 1.4 - Operators in Java - Shaalaa.com

Avichal solutions for Computer Applications [English] Class 10 ICSE chapter 1.4 - Operators in Java

Shaalaa.com has the CISCE Mathematics Computer Applications [English] Class 10 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 [English] Class 10 ICSE CISCE 1.4 (Operators 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 [English] Class 10 ICSE chapter 1.4 Operators in Java are Introduction of Operators in Java, Expression and Statement, Types of Operators.

Using Avichal Computer Applications [English] Class 10 ICSE solutions Operators 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 [English] Class 10 ICSE students prefer Avichal Textbook Solutions to score more in exams.

Get the free view of Chapter 1.4, Operators in Java Computer Applications [English] Class 10 ICSE additional questions for Mathematics Computer Applications [English] Class 10 ICSE CISCE, and you can use Shaalaa.com to keep it handy for your exam preparation.

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×