Interview questions
Software Engineer interview questions – page 16
490 questions. Tap “Show answer” to check yourself.
-
Can we re size the allocated memory which was allocated using 'new' operator?
-
What do you mean by the default function call method?
-
Is it legal to assign a base class object to a derived class pointer?
-
Tell the difference between delete and delete[]?
-
What is the first string in the argument vector w.r.t command line arguments?
-
How can we refer to the global variable if the local and the global variable names are same?
-
Tell the valid operations on pointers?
-
You have a 100 coins lying flat on a table, each with a head side and a tail side. 10 of them are heads up, 90 are tails up. You can't feel, see or in any other way find out which side is up. Split the coins into two piles such that there are the same number of heads in each?
-
Define 'cin' ?
-
If a pointer declared for a class, which operator can be used to access its class members?
-
Which key word is used to perform unconditional branching?
-
What is the order of objects destroyed in the memory?
-
How should runtime errors be handled in C++?
-
List out the difference between actual and formal parameters?
-
Can we nest multi line comments in a C++ code?
-
What is the purpose of #undef preprocessor?
-
Tell the difference between variable declaration and variable definition?
-
What is the use of the keyword 'using'?
-
What is function overloading and operator overloading?
-
Define RTTI?
-
Explain Pure Virtual Function? Why and when it is used ?
-
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
-
When do use "const" reference arguments in function?
-
Define a mutable member?
-
When can you tell that a memory leak will occur?
-
When is a template a better solution than a base class?
-
How can I create a process that is running a supplied native executable (e.g., cmd.exe)?
-
Why does the function arguments are called as "signatures"?
-
Which JDBC type represents a "single precision" floating point number that supports seven digits of mantissa?
-
Which mechanism is used when a thread is paused running in its critical section and another thread is allowed to enter (or lock) in the same critical section to be executed?