Examveda
Examveda

Which of the following is false?

A. A void function's header begins with the keyword void

B. A value-returning function's header begins with a data type, which represents the type of data the function will return

C. Assuming displayAge is the name of a void function, displayAge(); is a both logically and syntactically valid C++ statement

D. Assuming calcNewPrice is the name of a value-returning function, calcNewPriceO; is a both logically and syntactically valid C++ statement

E. Both void and value-returning functions can receive arguments

Answer: Option D


Join The Discussion

Related Questions on Object Oriented Programming Using C Plus Plus

A default catch block catches

A. all thrown objects

B. no thrown objects

C. any thrown object that has not been caught by an earlier catch block

D. all thrown objects that have been caught by an earlier catch block