Question
a.
receive an integer variable named num from the main() program
b.
receive any integer variable from the main() program
c.
either (a) or (b)
d.
neither (a) nor (b)
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. A function that is prototype as int calculate(int num); may
Similar Questions
Discover Related MCQs
Q. A function that is prototyped as double calculate(int num); may ______
View solution
Q. You can pass _____ to functions
View solution
Q. The weakest form of cohesion is
View solution
Q. If the description of function is "input the quantity, validate that the quantity is greater than 1, subtract 1 from the quantity, and print the quantity," the function is
View solution
Q. A function that changes an object's state belongs to the category of
View solution
Q. When the function char someFunction(int x) is executed,
View solution
Q. Which functions do not have a this pointer?
View solution
Q. When a program calls a function that has default parameters, if you omit an argument, you must _____
View solution
Q. Each generic type in a template function definition is preceded by the keyword _________
View solution
Q. The declaration section holds
View solution
Q. When the function void someFunction(int x) throw(char) is executed,_____
View solution
Q. Which of the following is NOT included in the header of a function?
View solution
Q. A function's single most important role is to
View solution
Q. The type of value that a function sends back to the function that calls it is known as its _____
View solution
Q. A function's purpose is to print customer data. Which of the following is the best name for this function?
View solution
Q. The function whose prototype is void getData(Item &thing); receives
View solution
Q. A function can make_________
View solution
Q. The loosest type of coupling is
View solution
Q. Which of the following function prototype is perfectly acceptable?
View solution
Q. Which of the following statement is correct?
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!