
Chapter 6 - Part 3 Quiz

Quiz
•
Instructional Technology
•
University
•
Hard
Kevin Tinsley
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
A program includes the following function.
line 1 void printHeading()
line 2 {
line 3 cout << "The History of Computers \n";
line 4 }
The program's main function includes the following code segment.
line 12 for (int count = 0; count <3; count ++)
line 13 { printHeading ();
line 14 cout << "I called printHeading \n|;
line 15 }
#1 Does line 1 contain a function header or a function call?
2.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
A program includes the following function.
line 1 void printHeading()
line 2 {
line 3 cout << "The History of Computers \n";
line 4 }
The program's main function includes the following code segment.
line 12 for (int count = 0; count <3; count ++)
line 13 { printHeading ();
line 14 cout << "I called printHeading \n|;
line 15 }
#2 Does line 13 contain a function header or a function call?
3.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
A program includes the following function.
line 1 void printHeading()
line 2 {
line 3 cout << "The History of Computers \n";
line 4 }
The program's main function includes the following code segment.
line 12 for (int count = 0; count <3; count ++)
line 13 { printHeading ();
line 14 cout << "I called printHeading \n|;
line 15 }
#3 How many times is the printHeading function called? (a number)
4.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
A program includes the following function.
line 1 void printHeading()
line 2 {
line 3 cout << "The History of Computers \n";
line 4 }
The program's main function includes the following code segment.
line 12 for (int count = 0; count <3; count ++)
line 13 { printHeading ();
line 14 cout << "I called printHeading \n|;
line 15 }
#4 Which line number has code that causes the program to leave the printHeading function and return to main? (a number)
5.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
A program includes the following function.
line 1 void printHeading()
line 2 {
line 3 cout << "The History of Computers \n";
line 4 }
The program's main function includes the following code segment.
line 12 for (int count = 0; count <3; count ++)
line 13 { printHeading ();
line 14 cout << "I called printHeading \n|;
line 15 }
#5 When the program returns to main, which line's code is executed next? (a number)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
How many return values may a function have? (a number)
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write a header for a function named distance. The function should return a double and have two double parameters: rate and time
8.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Write a header for a function named days. The function should return an int and have three int parameters: years, months, and weeks
Similar Resources on Wayground
10 questions
Materi 3 - HTML

Quiz
•
University
12 questions
Top Notch 1 - U5 - L0

Quiz
•
2nd Grade - Professio...
10 questions
ICT Quiz

Quiz
•
5th Grade - University
5 questions
Comandos esenciales de red de CMD

Quiz
•
University
11 questions
Go Pointers

Quiz
•
University
10 questions
JavasCript

Quiz
•
1st Grade - University
10 questions
Microsoft Sway

Quiz
•
3rd Grade - Professio...
12 questions
Quiz sobre Etiquetas en HTML

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade