pKmcqsquiz

Pagination on API result
Question: When x = 7; then the expression x%= 2; will calculate the value of x as,?
  • 1. 1
  • 2. 3
  • 3. 7
  • 4. 2
Question: A pointer variable can be,?
  • 1. Decremented only
  • 2. Incremented only
  • 3. Multiplied only
  • 4. Both 1 and 2
Question: set precision is a parameter less manipulator.
  • 1. True
  • 2. False
  • 3. Both
  • 4. None
Question: We can change a Unary operator to Binary operator through operator overloading.
  • 1. True
  • 2. False
  • 3. Both
  • 4. None
Question: delete operator is used to return memory to free store which is allocated by the new operator?
  • 1. True
  • 2. False
  • 3. Both
  • 4. None
Question: When we do dynamic memory allocation in the constructor of a class, then it is necessary to provide a destructor.
  • 1. True
  • 2. False
  • 3. Both
  • 4. None
Question: Overloaded member operator function is always called by?
  • 1. Class
  • 2. Object
  • 3. Compiler
  • 4. Primitive data type
Question: What will be the correct syntax of the following statement? ptr is a constant pointer to integer?
  • 1. const int *ptr ;
  • 2. const *int ptr ;
  • 3. int const *ptr ;
  • 4. int *const ptr ;
Question: Which of the following data type will be assumed if no data type is specified with constant?
  • 1. short
  • 2. float
  • 3. int
  • 4. double
Question: In __ we try to have a precise problem statement.
  • 1. Analysis
  • 2. Design
  • 3. Coding
  • 4. None of the above

Search

Category

Subjects