0%
67

1 / 20

Category: ( C++ )

1. What is a nullptr in C++?

2 / 20

Category: ( C )

2. Which is true about calloc in C?

3 / 20

Category: (Java)

3. What happens when Thread.sleep(0) is called?

4 / 20

Category: (Java)

4. In the Stream API, which of these is not a terminal operation?

5 / 20

Category: (Java)

5. In an inventory system, you want to restrict access to methods that update product quantities to only admin users. How can you achieve this in Java?

6 / 20

Category: ( C++ )

6. What is a friend function in C++?

7 / 20

Category: ( C )

7. What will happen if you access memory beyond the array size in C?

8 / 20

Category: ( C )

8. What is the output of this program?

 

#include

void main() {

printf("%d", printf("Hello"));

}

9 / 20

Category: ( C++ )

9. Which type of cast is considered safest in C++?

10 / 20

Category: ( C )

10. What is the maximum size of a file that can be handled by fseek() in C?

11 / 20

Category: ( C++ )

11. What is the difference between ++i and i++?

12 / 20

Category: (Java)

12. In a ticket booking application, multiple users try to book the last available ticket simultaneously. Which Java feature can handle this scenario?

13 / 20

Category: ( C++ )

13. What is the output of this code?

std::string str = "12345";

std::reverse(str.begin(), str.end());

std::cout << str;

14 / 20

Category: ( C )

14. Determine the output of the C code mentioned below:

#include
int main()
{
float q = ‘a’;
printf(“%f”, q);
return 0;
}

15 / 20

Category: ( C++ )

15. What is emplace_back used for in std::vector?

16 / 20

Category: (Java)

16. What is the purpose of the ForkJoinPool class?

17 / 20

Category: ( C )

17. What will happen with this code?

#include

int main() {

int a = 5 / 0;

printf("%d", a);

return 0;

}

18 / 20

Category: (Java)

18. What does the following code print?
java
class Test {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder("Hello");
sb.insert(0, "Java");
System.out.println(sb);
}
}

19 / 20

Category: (Java)

19. In an ecommerce system, you want to hide sensitive user details like passwords. Which OOP principle helps achieve this?

20 / 20

Category: ( C++ )

20. Which C++ feature allows iteration over a collection without exposing its implementation?

Scroll to Top