Functions Quiz

Functions Quiz

Assessment

Quiz

Created by

Julliene Fajardo

Other

University

1 plays

Hard

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

45 sec • 2 pts

What is the syntax of the function prototype?

2.

FILL IN THE BLANK QUESTION

20 sec • 2 pts

All parameters listed in the function header line must be separated by _______.

3.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

Which is not a proper prototype?

int funct(char x, char y);

double funct(char x)
void funct();
char x();

4.

FILL IN THE BLANK QUESTION

30 sec • 2 pts

What is the return type of the function with prototype: "float func(char x, float v, double t);"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid function call (assuming the function exists)?

dispGrade;

dispGrade x, y;

dispGrade();

int dispGrade();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a complete function?
int funct();
int funct(int x) {return x=x+1;}
void funct(int) { printf( "Hello");
void funct(x) { printf( "Hello"); }

7.

FILL IN THE BLANK QUESTION

30 sec • 2 pts

Which keyword is used to give back the value?

8.

FILL IN THE BLANK QUESTION

30 sec • 2 pts

The declaration statement for a function is formally referred to as a _______.