When is the last time you coded in C/C++? What is the most
lines of original C/C++ code you have personally written in
one project? How confident are you in your ability to write
C or C++ without a reference?
To modify an, existing worksheet. What steps are involved
for:
1. Inserting and deleting rows and columns.
2. Printing cell formulas 3Jld displayed values
3. Using the page setup command
Distinguish between:
a) Normal layout & Print Layout views
b) Windows Clipboard & office Clipboard
c) Save & Save As Commands
d) Program File & Data File
e) Pie Charts & Barr Charts
what is software cycle?
What is a mission critical system ?
What is the important aspect of a real-time system ?
Explain the difference between microkernel and macro kernel.
Give an example of microkernel.Why paging is used ?
Which is the best page replacement algo and Why ?
What is software life cycle ?
How much time is spent usually in each phases and why Which
one do U want to work if selected in Honeywell ?
Which are the different types of testing ?
What is a distributed system ?
Some questions about CSP.
Which languages do U know ?
What are the differences between Pascal and C.
questions from Compiler construction and Lisp.
Which are the different computer architecture?
What is the requirement in MIMD ?
What is the difference between RISC and CISC processors ?
Difference between loosely coupled and tightly coupled systems ?
What is an open system?
what is multithreading in c++ ,
what is difference between multithreading and
singlethreading.
4
How to handle exception in c++,
For example in a functions i am assigning memory to some
variables and also in next instructions in am dividing one
variable also.
If this functions generates a error while allocating memory
to those variable and also while dividing the variable if i
divide by zero then catch block how it will identify that
this error has cone from perticular instruction
write a code for this:trailer recordId contains a value
other than 99, then the file must error with the
reason ‘Invalid RECORD_ID’(User Defined Exception).
23
How Do you Code Composition and Aggregation in C++ ?
If P is the population on the first day of the year, B is
the birth rate, and D is the death rate, the estimated
population at the end of the year is given by the formula:
The population growth rate is given by the formula:
B – D
Write a program that prompts the user to enter the starting
population, birth and death rates, and n, the number of
years. The program should then calculate and print the
estimated population after n years. Your program must have
at least the following functions:
1. growthRate: This function takes its parameters the
birth and death rates, and it returns the population growth
rate.
2. estimatedPopulation: This function takes its
parameters the current population, population growth rate,
and n, the number of years. It returns the estimated
population after n years
Your program should not accept a negative birth rate,
negative death rate, or a population less than 2.
please answer my question ....
Can we generate a C++ source code from the binary file?
110
Question In a class, there is a reference or pointer of an
object of
another class embedded, and the memory is either allocated
or assigned to the new object created for this class. In
the constructor, parameters are passed to initialize the
data members and the embedded object reference to get
inialized. What measures or design change should be advised
for proper destruction and avioding memory leaks, getting
pointers dangling for the embedded object memory
allocation? Please suggest.
Question Submitted By :: Sunil Kumar
I also faced this Question!! Rank Answer Posted By
Re: In a class, there is a reference or pointer of an
object of another class embedded, and the memory is either
allocated or assigned to the new object created for this
class. In the constructor, parameters are passed to
initialize the data members and the embedded object
reference to get inialized. What measures or design change
should be advised for proper destruction and avioding
memory leaks, getting pointers dangling for the embedded
object memory allocation? Please suggest.
Answer
# 1 use copy constructors
0 Shanthila
There is something to be taken care in destructor, in copy
constructor, suppose the memory is assigned to the embedded
member object pointer with the parameter passed value, but
if some other objects of different class also are pointing
to this memory, then if some one deletes the object then
this class member pointer object will become dangling, or
if the object is not deleted properly then there will be
memory leak. Please suggest the design change required to
handle or avoid this situation
31
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 usagein C++.
B. Write short notes on Text Manipulation Routines.
C. Write bites in Turbo c++ Header (“Include”) Files.