Functions

Quiz
•
Computers
•
University
•
Hard
Kasey Nguyen
Used 39+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Select the correction function prototype from the following options. Select 2 correct answers.
void first();
void first()
void myFunction():
void myFunction();
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank: Function prototypes are also known as ____
function declarations
function assignments
function operations
function definitions
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Select a correct function call.
myValue(int 7);
myValue(7);
myValue(double, 7000);
myValue (4.2)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Select the correct syntax for a function header that contains a parameter list.
void showTotal (int num1, int num2, num3)
void showTotal (int num1, num2, num3)
void showTotal (int num1, int num2, int num3)
void showTotal (num1, num2, num3)
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What type of statement will force the function to end immediately?
end;
terminate;
quit;
return;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fill in the blank:
Data can be returned from a function, back to the statement that called it, which is known as ____.
data-passing function
value-returning function
value-assignment function
data-populating function
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function will return a value?
int sum (int val1, int val2)
{
return val1+val2;
}
void sum (int val1, int val2)
{
return sum;
}
void sum (int val1, int val2)
{
return val1+val2;
}
int sum (val1, val2)
{
return sum;
}
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Common errors in C programming

Quiz
•
University
18 questions
PBO Inheritance Episode 2

Quiz
•
University
20 questions
1st Year quiz

Quiz
•
University
23 questions
C que que que

Quiz
•
University
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
25 questions
Introduction to Java

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
20 questions
Ice Break PBO

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University