Debugging

Enter your team name:
Enter your mobile number:
Enter your collage name:
 
The explicit keyword is an optional decoration for the constructors that takes exactly_____argument.
A. No argument
B. Two
C. Three
D. One
A class can contain objects of other classes and this phenomenon is called_________ .
A. Relationship
B. Object Association
C. Containership
D. None of these
If a class contains pure virtual function, then it is termed as____________________ .
A. Virtual class
B. Sealed class
C. Pure Local class
D. Abstract Class
If inner catch handler is not able to handle the exception then__________ .
A. Compiler will look for outer try handler
B. Program terminates abnormally
C. Compiler will check for appropriate catch handler of outer try block
D. None of these
Generic catch handler is represented by ______________ .
A. catch(..,)
B. catch(---)
C. catch(…)
D. catch( void x)
Which one is suitable syntax for function template?
A. template< class T> return_type Function_Name(parameters)
B. template< typename T> return_type Function_Name(parameters)
C. Both a and b
D. None of these
While overloading binary operators using member function, it requires ___ argument/s.
A. Zero
B. One
C. Two
D. Three
If abstract class is inherited by derived class, then_______________ .
A. Derived class should provide definition for all the pure virtual functions
B. Derived class also become abstract if fails to implement pure virtual functions
C. Objects of derived class can’t be created if it fails to implement pure virtual functions
D. All of these
_________________are used for generic programming.
A. Inheritance
B. Virtual Functions
C. Templates
D. None of these
Is there any difference in below two statements?
int a = 10;
int a(10);
A. Yes
B. No
Can we create object of Abstract class?
A. Yes
B. No
How to stop Name Mangling in C++?
A. It is not possible
B. It is possible only with C code
C. By using extern "C" keyword
D. By Converting C++ code to C
Which of the following is Memory Leak detection tool?
A. GC++
B. KDevelop
C. GIT
D. Valgrind
Exceptions are Caught at ?
A. Compilation Time
B. Run Time
C. Linking Time
D. No
When can we have two classes with same name?
A. We cant have
B. In different work space
C. Can have but in different file
D. We can have in any scenario
What is the size of empty class?
A. 0
B. 1
C. 2
D. 4
What is abstract class?
A. A class with abstract keyword
B. A class with no functions in it
C. A class with atleast one pure virtual function
D. Empty Class
How many object can be created of a Class in C++?
A. 1
B. 5
C. There is no limit
D. 256
When Virtual Table is created?
A. Every Class has VTable
B. Class inherited from other Class
C. When a Class Overrides the function of Base class
D. Class has atleast one Virtual Function
#include using namespace std;
int main()
{
cout<<-1-1-1;
return 0;
}
A. Compilation Error
B. 0
C. 3
D. -3
class Mycpp ;
int main()
{
Mycpp obj;
return 0;
}
Compilation Error - Constructor Missing
Nothing would be printed
Undefined
In constructor
What is the output of the following program?
#include using namespace std;
main()
{
int a[] = {1, 2}, *p = a;
cout<<p[1];
}
A. 1
B. 2
C. Compile error
D. Runtime error
What is the output of the following program?
#include using namespace std;
main()
{
constint a = 5;
a++;
cout<<a;
}
A. 5
B. 6
C. Runtime error
D. Compile error
What is size of void in C++?
A. 2 Bytes
B. 4 Bytes
C. Undefined
d. 0
Which operator has highest precedence in * / % ?
A. *
B. /
C. %
D. All have same precedence
How to access and edit data in data file handling using structures
A. read()
B. write()
C. both A and B
D. Without read()
Can we typecast void * into int *?
A. Yes
B. No
C. Undefined
D. Depends on Compiler
Which operator has more precedance in below list?
A. +
B. -
C. ++
D. *
What is size of int data type in cpp?
A. 2 Bytes
B. 4 Bytes
C. 1 Byte
D. Depends on Compiler
{"name":"Debugging", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"We can prevent a function from throwing any exceptions., The explicit keyword is an optional decoration for the constructors that takes exactly_____argument., A class can contain objects of other classes and this phenomenon is called_________ .","img":"https://www.poll-maker.com/3012/images/ogquiz.png?sz=1200-00000000001000005300"}
Powered by: Quiz Maker