hi this is uday i want prepare for nic exam if any one have
previous question papers please send me or atlest guide me
how to prepare my ID is udaykiran4u@in.com
write a function that takes an integer array as an input and
finds the largest number in the array. You can not sort
array or use any API or searching needs?
You attempt to query the data base with this command:
SELECT name, salary FROM employee WHERE salary=(SELECT
salary FROM employee WHERE last name='Wagner' OR dept no=233)
Choose most appropriate option from the following:
1)Sub-queries are not allowed in the where clause.
2)a multiple row sub-query used with a single row comparison
operator.
3)a single row query is used with a multiple row comparison
operator.
In JCl , we have COND parameter.This holds comparison code
and condition.It also has only and even parameters.
ex: COND((4,GE),EVEN).what the comma mean here. is
that 'and' or 'or'.
help me i need a c++ program which takes sequesnce
of characters and outputed sequence of their token taypes,
work same compiler in lexical analysis phase
given a set based questions and 5 questions based on it
next data sufficiciency questions 2
and 2/3 english sentence completion with options very easy
and 2 synononmys
paragraph with 10 questions 10 minutes
replace =,-,*,% with -,%,+,* type questions 5
3 questions lik following
itssickhere itssickthere itssickhere istsickhere
which is nt alike the others
very easy
hi i am jyoti i have done sap training in sd and master
degree in economics have 2 year exp as enduser in (gdms)and
1 year as sd consultant.as contract basis now what i can do
for getting job in it industry
Define PRIMARYLANGID(), SUBLANGID(), and MAKELANGID() macros?
211
How you build a project using Developer Studio?
134
without selecting individually each field in Action Class
from jsp,what is the best process to select as many as field
at a time automatically from jsp page by using value object
class.
87
How to create a Resource only DLL?
94
How to Read the autoincrement value of Paradox table ?
100
How to Use the Application's OnIdle Event?
165
what r the cpu registers r ther?
110
With what commands you can Delete a directory and all the
directories with files?
73
what are Multiple Transports?
42
How to Change the owner of a component at runtime ?
87
How to Select an item in a TListView when the checkbox is
checked ?
118
How to use string functions in QTP?give some examples
141
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