Question
a.
No
b.
Yes
c.
Yes, but not a very efficient way to write programs
d.
No, it gives a runtime error
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Can two functions declare variables(non static) with the same name.
Similar Questions
Discover Related MCQs
Q. Identify the incorrect statements.
int var = 10;
int *ptr = &(var + 1); //statement 1
int *ptr2 = &var; //statement 2
&var = 40; //statement 3
View solution
Q. Identify the type of the variables.
typedef char* CHAR;
CHAR p,q;
View solution
Q. Evaluate the following expression:
3 >6&&7>4
View solution
Q. Special data types that are defined by users is called
View solution
Q. In C++ the words that is already defined and is reserved for a single special purpose, is called as
View solution
Q. There are how many relational operator are offered by C++?
View solution
Q. Cin stands for
View solution
Q. Which from the following is not a relational operator?
View solution
Q. C++ allows objects of one type to be used in another type where it is expected, it is called as
View solution
Q. How many logical operators are combined to form a compound condition?
View solution
Q. Sequence of statements that is treated as a single statement, is called
View solution
Q. Which from the following is a relational operator?
View solution
Q. Conditional statements can be used within another conditional statements that are called
View solution
Q. The actual values defined in the enumeratorlist is called
View solution
Q. The logical symbol ! This is used for
View solution
Q. The symbol >> is known as
View solution
Q. Extraction operator is also known as
View solution
Q. This statement {int temp = x; x = y; y = temp ;} is an example of
View solution
Q. Variables cannot be used before they are declared, so their scopes begin
View solution
Q. Which is the correct syntax for defining an enumeration data type?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!