(a) Mention two basic differences between 'call by value' and 'call by Reference'. Write a program in c/c++ Programming language to swap two integer…

(a) Mention two basic differences between 'call by value' and 'call by Reference'. Write a program in c/c++ Programming language to swap two integer values using 'call by Reference'.

(b) Consider the following code snippet in a C like Programming language-

int a = 5, b = 18, c = 27;
a = b++ +++c;
b = a++ C--;
C=a++ + b--;

What will be the output of a, b, and c after execution of the above statements? Explain your answer.

(c) What is polymorphism? Write a Java program to demonstrate the compile time and run time polymorphisms.

(d) What is Just In Time (JIT) compiler? How does it support machine independent programming?

From the BCS Technical Cadre (CSE) October 2025 – 49th BCS Written (Special) (BPSC) exam, question 97 of 123.

More from this paper