0%
67

1 / 20

Category: (Java)

1. Which of the following best describes the use of the super keyword in a subclass?

2 / 20

Category: ( C++ )

2. Which of these is NOT a type of inheritance in C++?

3 / 20

Category: ( C )

3. What will be the output of this code?

#include

int main() {

int x = 5;

int y = x++ + ++x;

printf("%d", y);

return 0;

}

4 / 20

Category: ( C )

4. What will happen if you free a pointer twice?

5 / 20

Category: (Java)

5. In a concurrent program, which ExecutorService method will block until all submitted tasks are complete?

6 / 20

Category: ( C++ )

6. What is the output of this code?

#include

int main() {

int arr[] = {10, 20, 30};

int *ptr = arr;

ptr++;

std::cout << *ptr; return 0; }

7 / 20

Category: (Java)

7. Which of these classes is not synchronized?

8 / 20

Category: ( C++ )

8. What does noexcept specifier indicate?

9 / 20

Category: (Java)

9. What is the purpose of the ForkJoinPool class?

10 / 20

Category: ( C++ )

10. What is the default access modifier for members of a struct?

11 / 20

Category: (Java)

11. In a banking application, if a Withdrawal operation exceeds the balance, a BalanceInsufficientException is thrown. What is this an example of?

12 / 20

Category: ( C )

12. What does the following code print?

#include

int main() {

int x = 10;

int y = 5;

printf("%d", x++ + ++y);

return 0;

}

13 / 20

Category: ( C )

13. What will be the output of following program?

#include
void main()
{
printf("%s", "i"
"am"
"good");
}

14 / 20

Category: (Java)

14. What does the compareTo() method return when two objects are equal?

15 / 20

Category: ( C )

15. What will happen with the following code?

#include

int main() {

char str[5] = "hello";

printf("%s", str);

return 0;

}

16 / 20

Category: ( C++ )

16. What is RAII in C++?

17 / 20

Category: (Java)

17. Which Java feature allows lambdas and streams?

18 / 20

Category: ( C++ )

18. Which operator cannot be overloaded in C++?

19 / 20

Category: ( C )

19. Which of these is a valid declaration of a function pointer?

20 / 20

Category: ( C++ )

20. Which of these is a non-static member initialization in C++11?

Scroll to Top