Chapter 6 - Part 3 Quiz

Chapter 6 - Part 3 Quiz

University

8 Qs

quiz-placeholder

Similar activities

Oracle Database

Oracle Database

University

10 Qs

Comenzando HTML

Comenzando HTML

University

10 Qs

Diseño de programas

Diseño de programas

University

10 Qs

Fundamentos de JavaScript y DOM

Fundamentos de JavaScript y DOM

University

10 Qs

CSS Text Property by Cash and Mason

CSS Text Property by Cash and Mason

University

13 Qs

Reading a ruler in Inches

Reading a ruler in Inches

4th Grade - Professional Development

10 Qs

Mijn lessen bezoeken

Mijn lessen bezoeken

University

10 Qs

Creación de paginas web usando páginas html y html5

Creación de paginas web usando páginas html y html5

University

10 Qs

Chapter 6 - Part 3 Quiz

Chapter 6 - Part 3 Quiz

Assessment

Quiz

Instructional Technology

University

Hard

Created by

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

Discover more resources for Instructional Technology