0% found this document useful (0 votes)
821 views

TCS Ninja Interview Questions

This document provides 16 interview questions related to programming concepts in Java and C++. The questions cover topics such as operators, structures, memory allocation, file access methods, classes, exceptions, processes and more. They are designed to test a candidate's knowledge of core programming principles and skills in areas like operator overloading, inheritance, aggregation, method overloading, autoboxing, exceptions and executing external processes from Java code.

Uploaded by

Alka Maheshwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
821 views

TCS Ninja Interview Questions

This document provides 16 interview questions related to programming concepts in Java and C++. The questions cover topics such as operators, structures, memory allocation, file access methods, classes, exceptions, processes and more. They are designed to test a candidate's knowledge of core programming principles and skills in areas like operator overloading, inheritance, aggregation, method overloading, autoboxing, exceptions and executing external processes from Java code.

Uploaded by

Alka Maheshwari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Interview questions for practice

1. What is the difference between the = symbol and == symbol?

2.Write a program for passing structure by reference.

3. How do you search data in a data file using random access method?

4. What are the differences between malloc() and calloc()?

5. How collision is resolved in hashing?

6. What is the difference between text and binary modes?

7. Write the program to overload the “+” operator to concatenate the two strings.

8. How can we use iterator in java?

9. How inner class differ from sub class?

10. Create two classes showing the relationship of aggregation.

11. Give example of method overloading with type promotion.

12. Give an example of auto boxing.

13. For a given string “wer34rt56”, write a program to print the index position of numeric digit.

14. Give an example for variable length argument in java.

15. What are unchecked exceptions in java?

16. How Java program execute other heavyweight processes?

You might also like