(A) Class-Name operator – (Class-Name rhs)
(B) operator Class-Name – ( )
(C) operator Class-Name – ( rhs)
(D) Class-Name operator – ( )
Category: Introduction to Programming Mcqs
Introduction to Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Programming Mcqs section will help users to prepare mcqs of programming languages for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their computer programming portion from here.
There are two types of operators to overload: unary and binary?
(A) True
(B) False
(C) Both
(D) None
Operator Overloading is quite similar to Function Overloading?
(A) True
(B) False
(C) Both
(D) None
A friend function?
(A) must be having a prototype with no arguments
(B) can access the private data of the class that declares it a friend
(C) cannot access the data members of a class
(D) must be invoked by the class that declares it a friend
If the memory in the free store is not sufficient enough to fulfill the request, malloc() function returns NO pointer?
(A) True
(B) False
(C) Both
(D) None
Whenever new operator is used, no number of bytes or sizeof operator is required?
(A) True
(B) False
(C) Both
(D) None
The function free() returns back the allocated memory got thorough calloc and malloc to __.
(A) stack
(B) heap
(C) stack and heap
(D) None of the given options
this is a pointer which always points to the current object?
(A) True
(B) False
(C) Both
(D) None