C/C / Sample Test,Sample questions

Question:
___ function is used to allocate space for array in memory.

1.malloc()

2.realloc()

3.alloc()

4.calloc

Posted Date:-2021-02-19 12:15:28


Question:
A C++ code line ends with ___

1.A Semicolon (;)

2.A Fullstop(.)

3.A Comma ()

4.A Slash (/)

Posted Date:-2021-02-19 12:15:28


Question:
A class whos objects can not be created is known as _____

1.Absurd Class

2.Dead Class

3.Super Class

4.Abstract Class

Posted Date:-2021-02-19 12:15:28


Question:
A ponter pointing to a variable that is not initialized is called ____

1.Void Pointer

2.Null Pointer

3.Empty Pointer

4.Wild Pointer

Posted Date:-2021-02-19 12:15:28


Question:
An exceptio in C++ can be generated using which keywords.

1.thrown

2.threw

3.throw

4.throws

Posted Date:-2021-02-19 12:15:28


Question:
An expression A.B in C++ means ____

1.A is member of object B

2.B is member of Object A

3.Product of A and B

4.None of these

Posted Date:-2021-02-19 12:15:28


Question:
Default constructor has ____ arguments.

1.No argument

2.One Argument

3.Two Argument

4.None of these

Posted Date:-2021-02-19 12:15:28


Question:
Delaration a pointer more than once may cause ____

1.Error

2.Abort

3.Trap

4.Null

Posted Date:-2021-02-19 12:15:28


Question:
In C++ Program inline fuctions are expanded during ____

1.Run Time

2.Compile Time

3.Debug Time

4.Coding Time

Posted Date:-2021-02-19 12:15:28


Question:
In CPP members of a class are ______ by default.

1.Public

2.Private

3.Protected

4.Static

Posted Date:-2021-02-19 12:15:28


Question:
Reusability of code in C++ is achieved through ___

1.Polymorphism

2.Inheritance

3.Encapsulation

4.Both A and B

Posted Date:-2021-02-19 12:15:28


Question:
To perfor file input / output operation in C++ we must include which header file ?

1.<fiostream>

2.<ifstream>

3.<ofstream>

4.<fstream>

Posted Date:-2021-02-19 12:15:28


Question:
Which class allows only one object to be created.

1.Nuclear Family Class

2.Abstruct Class

3.Sigleton Class

4.Numero Uno Class

Posted Date:-2021-02-19 12:15:28


Question:
Which one is not a correct variable type in C++?

1.float

2.real

3.int

4.double

Posted Date:-2021-02-19 12:15:28


Question:
Which operation is used as Logical 'AND'

1.Operator-&

2.Operator-||

3.Operator-&&

4.Operator +

Posted Date:-2021-02-19 12:15:28


More MCQS

  1. help4info.com
  2. help4info.com
  3. help4info.com
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!