|
Question |
Rating |
View Answer |
|
Hi, I was asked the below question in one interivew.
Imagine you're maintaining a big project which is having 50k+ lines of code and as part of enhancements, you received a request to add a functionality in one of the .cpp files. For this, you need to add a new function. How do you write a new fucntion without adding a prototype to the header file (because, if you add prototype in the headerfile, the compiler has to compile all the other files). So, the requirement is not to touch the header file but add functionality in the cpp file. How do you add? |
|
View Answer |
|
What do you mean by analysis and design? |
|
View Answer |
|
What are the steps involved in designing? |
|
View Answer |
|
What do you meant by active and passive objects? |
|
View Answer |
|
List out some of the object-oriented methodologies. |
|
View Answer |
|
Differentiate Aggregation and containment? |
|
View Answer |
|
What is multithreading? |
|
View Answer |
|
Differences of C and C++ Could you write a small program that will compile in C but not in C++ ? |
|
View Answer |
|
What are the defining traits of an object-oriented language? |
|
View Answer |
|
Will it execute or not?
|
|
View Answer |
|
Anything wrong with this code? T *p = new T[10]; delete p; |
|
View Answer |
|
What are 2 ways of exporting a function from a DLL? |
|
View Answer |
|
How can you tell what shell you are running on UNIX system? |
|
View Answer |
|
What is an object? |
|
View Answer |
|
What is encapsulation? |
|
View Answer |
|
. For the following C program #define AREA(x)(3.14*x*x)<br>main()<br>{float r1=6.25,r2=2.5,a;<br>a=AREA(r1);<br>printf(" Area of the circle is %f", a);<br>a=AREA(r2);<br>printf(" Area of the circle is %f", a);<br>}<br> What is the Output? |
|
View Answer |
|
Q1.write C++ program to accept a string and display ascii value letter by letter then display sum of all ascii values. Q2.write C++ program to accept 20 nos and then display max & min. |
|
View Answer |
|
All the questions are compulsory. The first five questions shall be of 16 marks each and the last question shall be of 20 marks.
Q1. A. What is unary operator? List out the different operators involved in the unary operator.
B. What is an adjust field format flag?
Q2. A. Distinguish between a # include and #define.
B. Can a list of string be stored within a two dimensional array?
Q3. A. Explain how a pointer to function can be declared in C++?
B. List the merits and demerits of declaring a nested class in C++?
Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence?
B. Explain the operation of overloading of an assignment operator.
Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps.
B. Explain how an exception handler is defined and invoked in a Program.
Q6. A. What is a binary file? List the merits and demerits of the binary file usage in C++.
B. Write short notes on Text Manipulation Routines.
C. Write bites in Turbo c++ Header (“Include”) Files.
|
|
View Answer |
|
Given an integer N>0,write a recursive c++ function that writes the integer 1,2,.......N ? |
|
View Answer |
|
Write a c++ programme in order to find the day you born,such that the programmer will take your birth date (day-month-year)? |
|
View Answer |