You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Programming in C++, C & Java- 1". These 10 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.
Test Highlights:
Sign up on EduRev for free to attempt this test and track your preparation progress.
Detailed Solution: Question 1
Consider the following statements:
# define hypotenuse (a, b) sqrt (a*a + b*b);
The macro-call hypotenuse (a + 2, b + 3);
Detailed Solution: Question 2
For the previous question, which of the following macro-calls, will find the hypotenuse of a right angled triangle with sides a + 1 and b + 1 ?
Detailed Solution: Question 3
If p is pointer to an integer and t is a pointer to a character then size of (p) will be
Detailed Solution: Question 4
Which of the following comments about arrays and pointers is/are true?
1. Both are exactly same.
2. Array is a constant pointer.
3. Pointer is an one-dimensional array.
4. Pointer is a dynamic array.
Detailed Solution: Question 5
It is not advisable to use macros instead of functions because
Detailed Solution: Question 6
Use of macro instead of function is recommended
Detailed Solution: Question 7

The number of additions performed by the above program fragment is
Detailed Solution: Question 8
Detailed Solution: Question 9
Detailed Solution: Question 10