0% 67 Year1st Year2nd Year3rd Year4th YearStateAndhra PradeshArunachal PradeshAssamBiharChhattisgarhGoaGujaratHaryanaHimachal PradeshJharkhandKarnatakaKeralaMadhya PradeshMaharashtraManipurMeghalayaMizoramNagalandOdishaPunjabRajasthanSikkimTamil NaduTelanganaTripuraUttar PradeshUttarakhandWest Bengal 1 / 20 Category: (Java) 1. Which of the following best describes the use of the super keyword in a subclass? A) To define a superclass variable B) To call a constructor or method from the superclass C) To restrict access to superclass members D) To override a superclass method 2 / 20 Category: ( C++ ) 2. Which of these is NOT a type of inheritance in C++? A) Hierarchical B) Embedded C) Multiple D) Single 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; } A) Undefined behavior B) 13 C) 11 D) 12 4 / 20 Category: ( C ) 4. What will happen if you free a pointer twice? A) Program crash or undefined behavior B) No effect C) Memory will be freed again D) Compilation error 5 / 20 Category: (Java) 5. In a concurrent program, which ExecutorService method will block until all submitted tasks are complete? A) execute() B) invokeAll() C) shutdownNow() D) submit() 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; } A) 10 B) Undefined behavior C) 20 D) 30 7 / 20 Category: (Java) 7. Which of these classes is not synchronized? A) HashTable B) StringBuilder C) Vector D) StringBuffer 8 / 20 Category: ( C++ ) 8. What does noexcept specifier indicate? A) Ensures a function does not throw exceptions B) Optimizes memory usage C) Ensures no variable changes D) Makes a function thread-safe 9 / 20 Category: (Java) 9. What is the purpose of the ForkJoinPool class? A) Optimizes performance by limiting thread creation. B) Provides an alternative to ThreadPoolExecutor. C) Divide a task into smaller subtasks and execute them concurrently. D) Manage thread lifecycles in GUIbased programs. 10 / 20 Category: ( C++ ) 10. What is the default access modifier for members of a struct? A) Private B) Protected C) No default exists D) Public 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? A) Checked Exception B) Error Handling C) Runtime Exception D) Synchronization 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; } A) 17 B) 15 C) Compilation error D) 16 13 / 20 Category: ( C ) 13. What will be the output of following program? #include void main() { printf("%s", "i" "am" "good"); } A) i am good B) good C) i D) iamgood 14 / 20 Category: (Java) 14. What does the compareTo() method return when two objects are equal? A) 1 B) null C) 0 D) 1 15 / 20 Category: ( C ) 15. What will happen with the following code? #include int main() { char str[5] = "hello"; printf("%s", str); return 0; } A) Compilation error B) hello C) hell D) Undefined behavior 16 / 20 Category: ( C++ ) 16. What is RAII in C++? A) A memory leak prevention mechanism B) A design pattern for algorithms C) Resource acquisition is initialization D) Redundant access index in arrays 17 / 20 Category: (Java) 17. Which Java feature allows lambdas and streams? A) Reflection B) Functional programming C) Generics D) Inheritance 18 / 20 Category: ( C++ ) 18. Which operator cannot be overloaded in C++? A) << B) + C) :: D) [] 19 / 20 Category: ( C ) 19. Which of these is a valid declaration of a function pointer? A) int *(*fptr)(int, int); B) int (*fptr)(int, int); C) int *fptr(int, int); D) (*fptr) int (int, int); 20 / 20 Category: ( C++ ) 20. Which of these is a non-static member initialization in C++11? A) int x; B) int x = 10; C) x = 10; D) static int x = 10; Your score is LinkedIn Facebook Twitter VKontakte 0%