Filters
Question type

Study Flashcards

The function main is always compiled first,regardless of where in the program the function main is placed.

Correct Answer

verifed

verified

A(n)____________________ parameter s a formal parameter that receives a copy of the content of the corresponding actual parameter.

Correct Answer

verifed

verified

Which statement below about prototypes and headers is true?


A) Parameter names must be listed in the prototype, but not necessarily in the header.
B) Prototypes end with a semicolon, but headers do not.
C) Headers should come before prototypes.
D) Headers end with a semicolon, but prototypes do not.

Correct Answer

verifed

verified

To use the predefined function tolower,the program must include the header file ____.


A) <cctype>
B) <iostream>
C) <cmath>
D) <cstdlib>

Correct Answer

verifed

verified

The program that tests a function is called a(n)____________________ program.

Correct Answer

verifed

verified

The heading of the function is also called the ____.


A) title
B) function signature
C) function head
D) function header

Correct Answer

verifed

verified

Which of the following function prototypes is valid?


A) int funcTest(int x, int y, float z) {}
B) funcTest(int x, int y, float) {};
C) int funcTest(int, int y, float z)
D) int funcTest(int, int, float) ;

Correct Answer

verifed

verified

A(n)____________________ parameter is a formal parameter that receives the location (memory address)of the corresponding actual parameter.

Correct Answer

verifed

verified

A function prototype is ____.


A) a definition, but not a declaration
B) a declaration and a definition
C) a declaration, but not a definition
D) a comment line

Correct Answer

verifed

verified

Given the following function: int next(int x) { \quad Return (x + 1) ; } What is the output of the following statement? Cout << next(next(5) ) << endl;


A) 5
B) 6
C) 7
D) 8

Correct Answer

verifed

verified

Showing 41 - 50 of 50

Related Exams

Show Answer