(A) a class definition has to an object definition
(B) an object declaration has to an object
(C) a variable has to a variable declaration
(D) a variable declaration has to the variable itself
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.
Which of the following operators can not be overloaded?
(A) new
(B) delete
(C) +=
(D) sizeof
A preprocessor directive is identified by __ symbol.
(A) #
(B) {
(C) (
(D) ~
A for loop usually consist of __ expressions.
(A) 1
(B) 2
(C) 3
(D) 4
The reserved words public and private comes under the category?
(A) structures
(B) strings
(C) accessibility modifiers
(D) types of functions
Static member functions?
(A) must be declared inside the class definition, but defined outside it
(B) must be declared private
(C) have multiple copies for the entire class
(D) can access only static data
The function call to a default constructor?
(A) ooks like any function call, except there is no return value
(B) never takes any arguments
(C) creates but cannot initialize an object
(D) is made automatically when an object is created
A function that calls itself is known as?
(A) Iterative function
(B) Inline function
(C) Recursive function
(D) main ()