BCSL-043 Solved Lab Assignment | Java


These lab assignments are collected from IGNOU lab assignment book BCSL-043. Solve these questions yourself then read the solutions presented here.

JAVA Lab Assignment | BCSL-043

Session 1:

Exercise 1: Write a program in Java to implement the formula
Area = Height * Width Solution

Exercise 2: Write a program in Java to find the result of following expression
(Assume a = 10, b = 5)

  1. (a < < 2) + (b > > 2)
  2. (a) | | (b > 0)
  3. (a + b * 100) / 10
  4. a & b    Solution

Exercise 3: Write a program in Java to explain the use of break and continue
statements. Solution


>> Session 1  Session 2  Session 3  Session 4  Session 5  Session 6  Session 7  Session 8  Session 9  Session 10