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
60
Can we generate a C++ source code from the binary file?
design a c++ class for the chess board,provide a c++ class
definition for such class(only class definition is required)
97
sir plz send me a set of questions that been frequently
held in written examination during campus selection.
28
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
41
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.
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?
Write a program using GUI concept for the scheduling
algorithms in Operating system like SJF,FCFS etc..
46
How to execute business logic for only once ..?even though
user clicks submit button multiple times by mistake..?
(i disabled JavaScript)
56
write a code for this. serial_number contained in the
header of the file will be read , if this serial number is
less than a previous serial number within a successfully
processed file, or is the same as another serial number
within a successfully processed file, or if the field
contains anything other than 7 digits, then the file must
error with the reason ‘Invalid SERIAL_NUMBER’.
Am studying basic c++ programming, have been given the
following assignment. Design a linear program to calculate
the maximum stress a material can withstand given a force
and a diameter of a circle. To find the required area pi
should be defined.
Have most of the program sorted out but am at a loss as to
how to show the calculations required. Can anyone help?
20
What is the difference between static link library and
dynamic link library?