Go to IBPS EXPERT

C++ Programming Questions Answers - Chapter 1

C++ Programming Questions Answers - Chapter 1 includes basic and important questions on C++ Programming Language which are important for IBPS IT Officer Aptitude exam, Campus Placements and other technical interviews and exams.

1) What is polymorph

  • 1) Ability to take more than one form
  • 2) Ability to destroy destructor
  • 3) Ability to create constructor
  • 4) None of above
View Answer View Explanation
Ans.   A
Explanation :

2) Which of the following type of class allows only one object of it to be crea

  • 1) Virtual class
  • 2) Abstract class
  • 3) Singleton class
  • 4) Friend class
View Answer View Explanation
Ans.   C
Explanation :

3) Which of the following cannot be inherited from the base cl

  • 1) Constructor
  • 2) Friend
  • 3) Both A and B cannot be inherited
  • 4) Both A and B can be inherited
View Answer View Explanation
Ans.   C
Explanation :

4) cout is declared in the _____ standard file within the std namesp

  • 1) outstream
  • 2) stdin
  • 3) iostream
  • 4) None of above
View Answer View Explanation
Ans.   C
Explanation :

5) How we mark the end of c++ statem

  • 1) ;
  • 2) :
  • 3) >>
  • 4) <<
View Answer View Explanation
Ans.   A
Explanation :

6) Dereference operator is also called

  • 1) pointer
  • 2) Reference operator
  • 3) Offset operator
  • 4) Deoffset operator
View Answer View Explanation
Ans.   C
Explanation :

7) ios::ate is used

  • 1) Set the initial position at the start of the file
  • 2) Set the last position at the end of the file
  • 3) Set the initial position at the end of the file
  • 4) Set the last position at the start of the file
View Answer View Explanation
Ans.   C
Explanation :

8) Which class has only one unique value for all the objects of cl

  • 1) this
  • 2) friend
  • 3) static
  • 4) none of above
View Answer View Explanation
Ans.   C
Explanation :

9) Which of the following functions below can be used Allocate space for array in mem

  • 1) calloc()
  • 2) malloc()
  • 3) realloc()
  • 4) All of above
View Answer View Explanation
Ans.   A
Explanation :

10) Which type of variables can be referred from anywhere in the c++ c

  • 1) All variables
  • 2) Local variables
  • 3) Universal variables
  • 4) Global variables
View Answer View Explanation
Ans.   D
Explanation :
Get Free Current Affairs and Govt Jobs Alerts in your mailbox
Current Affairs
Govt Jobs

Testing