C Programming Online Test Questions and Answers - 1
Question: 1
A friend function can be used to
(A) allow one class to access an unrelated class
(B) allow access to classes whose source code is unavailable
(C) increase versatility of an over-loaded operator
(D) avoid arguments between classes
Ans: A
allow one class to access an unrelated class
Question: 2
The public files in a class library usually contain
(A) class declarations
(B) variable definitions
(C) member function definitions
(D) constant definitions
Ans: A
class declarations
Question: 3
In C++, the go to statement causes control to go to a/an
(A) an operator
(B) a variable
(C) a label
(D) a function
Ans: C
a label
Question: 4
In C++, when a multidimensional array is accessed, each array index is
(A) surrounded by brackets and separated by commas
(B) surrounded by brackets
(C) separated by commas and surrounded by brackets
(D) separated by commas
Ans: B
surrounded by brackets
Question: 5
A normal C++ operator that acts on special system on newly defined data types is called
(A) classified
(B) overloaded
(C) encapsulated
(D) glorified
Ans: B
overloaded
- Top 300+ C Programming Multiple Choice Questions & Answers
- C Programming Question Bank
- C Programming Objective Questions and Answers Pdf
- C Programming Quiz Questions and Answers
- C MCQs Questions with Answers Pdf 2019-2020
- C Programming Online Test Questions and Answers
- Online C Programming Test with Certificate
- Object Oriented Programming in C++ MCQ with Answers Pdf
Power Semiconductor Device and Integrated Circuits Questions More
Strength of Materials Questions and Answers Pdf More
Steam and Power Generation Quiz Questions & Answers Pdf More
Dc generator questions and answers pdf More
DC Generator Questions and Answers Pdf More
Java Servlets and JSP Interview Questions and Answers More
Active & Passive Voice Objective Questions & Answers More
100+ Classification Reasoning Online Test More
7000+ Computer Security Questions and Answers Pdf More
TNPSC Select the Correct Tense Questions with Answers More