728by90ad

Object Oriented Programming Using C++ - Section 3 Multiple Questions and Answers.




26.Which of the following statements is true?
A. Subscript operator may take only one argument.
B. Parentheses operator may take only one argument
C. Subscript operator may take
D. None of these

27. A file object can be closed:
A. with the close () function
B. by letting it go out of scope
C. by calling its destructor
D. all of these

28. If an array of objects is created, then read () function can work with:
A. one object at a time
B. entire array of objects at once
C. either (a) or (b)
D. None of these

29.To write an object to a disk file, which of the following can be used ?
A. get
B. write ()
C. out()
D. getline ()

30.To instantiate an object with the statement ifstream items ("C:inven.txt");, the file on the disk is identified by the name:
A. items
B. inven.txt
C. either (a) or (b)
D. none of these

«»



Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers