
Quiz 4: functions in C++
Authored by K vijina
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A function __________ contains the statements that make up the function.
prototype
definition
call
expression
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
function is executed when it is
defined
prototyped
declared
called
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A _________ variable is declared outside all functions.
local
global
floating-point
counter
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a complete correct function definition?
int funct();
int funct(int x){ x = x +1; return x; }
void funct(int){ printf( “Hello”);
void funct(x){ printf( “Hello”); }
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the return type of the function with prototype: "int func(char x, float v, double t);"?
char
int
float
double
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?