
Chapter 6 - Part 3 Quiz
Authored by Kevin Tinsley
Instructional Technology
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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?
Similar Resources on Wayground
10 questions
Lesson 4 Worksheet Formatting
Quiz
•
6th Grade - University
10 questions
Manufacturing of Brickcs & Categories of Bricks
Quiz
•
12th Grade - University
10 questions
QUIZ 2 NDJ10303 v1
Quiz
•
University
10 questions
MS Word Quiz 1
Quiz
•
University
10 questions
Khám Phá Mạch Điện và Cảm Biến
Quiz
•
9th Grade - University
10 questions
Creating tables in HTML
Quiz
•
University
10 questions
Quiz 1: Power Electronics
Quiz
•
University
11 questions
EMTECH Q4 M6: PUBLISHING AN ICT PROJECT
Quiz
•
11th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Instructional Technology
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University