OOPS Objective Questions and Answers Pdf - 1

Question: 1

The store of memory available to programs is the

(A) heap

(B) store

(C) stack

(D) pile

Ans: A

heap

Question: 2

The arguments needed by read() and write() are

(A) a stream reference

(B) a pointer, a string and an object reference

(C) a character and a float

(D) a pointer and an integer

Ans: D

a pointer and an integer

Question: 3

Two access specifiers in C++ are

(A) void and free

(B) formal and informal

(C) int and double

(D) public and private

Ans: D

public and private

Question: 4

A function that is called automatically each time an object is created is a(an)

(A) architect

(B) builder

(C) contractor

(D) constructor

Ans: D

constructor

Question: 5

The operator that allocates new memory is

(A) new

(B) next

(C) mem

(D) allocate

Ans: A

new

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES