Explore topic-wise MCQs in Bachelor of Computer Applications (BCA).

This section includes 20 Mcqs, each offering curated multiple-choice questions to sharpen your Bachelor of Computer Applications (BCA) knowledge and support exam preparation. Choose a topic below to get started.

1.

The process by which objects of one class acquire the properties of objects of another class is called .

A. abstraction
B. inheritance
C. encapsulation
D. polymorphism
Answer» C. encapsulation
2.

The process of making an operator to exhibit different behaviors in different instances is called .

A. function overloading
B. operator overloading
C. inheritance
D. none of these
Answer» C. inheritance
3.

refers to the linking of procedure call to the code to be executed in response to the call.

A. polymorphism
B. functions
C. dynamic binding
D. object
Answer» D. object
4.

A __________ is a constructor that either has no parameters, or if it has parameters, all the parameters have default values.

A. default constructor
B. copy constructor
C. Both A and B
D. None of these
Answer» B. copy constructor
5.

To ensure that every object in the array receives a destructor call, always delete memory allocated as an array with operator __________ .

A. destructor
B. New[]
C. delete[]
D. Free()
Answer» D. Free()
6.

Which allows you to create a derived class that inherits properties from more than one base class?

A. Multilevel inheritance
B. Multiple inheritance
C. Hybrid Inheritance
D. Hierarchical Inheritanc
Answer» C. Hybrid Inheritance
7.

The duplication of inherited members due to the multiple paths can be avoided by making a common base class is called

A. Abstract class
B. Virtual base class
C. Multiple inheritance
D. Nesting of classes
Answer» C. Multiple inheritance
8.

Which of the following statement will be correct if the function has three arguments passed to it?

A. The trailing argument will be the default argument.
B. The first argument will be the default argument.
C. The middle argument will be the default argument.
D. All the argument will be the default argument.
Answer» B. The first argument will be the default argument.
9.

A function with the same name as the class, but preceded with a tilde character (~) is called __________ of that class.

A. constructor
B. destructor
C. function
D. object
Answer» C. function
10.

_________ used to make a copy of one class object from another class object of the same class type.

A. constructor
B. copy constructor
C. destructor
D. default constructor
Answer» C. destructor
11.

A private member function can be called by another function that is a member of a class is called

A. Friend function
B. Nesting of member function
C. Inline function
D. Static function
Answer» C. Inline function
12.

Which of the following statement is correct with respect to the use of friend keyword inside a class?

A. A private data member can be declared as a friend.
B. A class may be declared as a friend.
C. An object may be declared as a friend.
D. We can use friend keyword as a class name.
Answer» C. An object may be declared as a friend.
13.

Which of the following statements are correct for a static member function? 1. It can access only other static members of its class. 2. It can be called using the class name, instead of objects.

A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.
Answer» D. Both 1 and 2 are incorrect.
14.

Which of the following is the only technical difference between structures and classes in C++?

A. Member function and data are by default protected in structures but private in classes.
B. Member function and data are by default private in structures but public in classes.
C. Member function and data are by default public in structures but private in classes.
D. Member function and data are by default public in structures but protected in classes.
Answer» D. Member function and data are by default public in structures but protected in classes.
15.

Which of the following means "The use of an object of one class in definition of another class"?

A. Encapsulation
B. Inheritance
C. Composition
D. Abstraction
Answer» D. Abstraction
16.

Observe following function declaration and choose the best Ans:: int divide ( int a, int b = 2 )

A. Variable b is of integer type and will always have value 2
B. Variable a and b are of int type and the initial value of both variables is 2
C. Variable b is international scope and will have value 2
D. Variable b will have value 2 if not specified when calling function
Answer» E.
17.

Consider the following statements: int x = 22,y=15; x = (x>y) ? (x+y) : (x y); What will be the value of x after executing these statements?

A. 22
B. 37
C. 7
D. Error. Cannot be executed
Answer» C. 7
18.

What will be the values of x, m and n after the execution of the following statements? int x, m, n; m = 10; n = 15; x = ++m + n++;

A. x=25, m=10, n=15
B. x=26, m=11, n=16
C. x=27, m=11, n=16
D. x=27, m=10, n=15
Answer» C. x=27, m=11, n=16
19.

relationship indicates that the change to an independent thing will affect the dependent thing.

A. inheritance
B. dependency
C. association
D. aggregation
Answer» C. association
20.

Calling a member function by using its name from another member function of the same class is known as

A. Grouping of member function
B. Member function group
C. Nesting of member function
D. Nested group of member function
Answer» D. Nested group of member function