Search Header Logo

Unit 4 Day 8 Opener - C++ Function Concepts

Authored by Richard Ghiorse

Computers

9th - 12th Grade

Used 5+ times

Unit 4 Day 8 Opener - C++ Function Concepts
AI

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.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the most appropriate type of function for calculating the circumference of a circle?

int

double

void

bool

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the most appropriate type of function for displaying the instructions to a program?

int

double

void

bool

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the most appropriate type of function for determining and returning the letter grade (A, B, C, etc.) associated with a numerical average?

char

double

void

bool

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct function declaration for the function calculateHypotenuse that takes the two legs of a right triangle and calculates the hypotenuse.

double calculateHypotenuse();

double calculateHypotenuse(double a, double b);

void calculateHypotenuse(double a, double b);

double calculateHypotenuse(double a, b)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the most appropriate function declaration for a function displayProgramInfo that prints out the introduction to a program?

int displayProgramInfo(int x);

void displayProgramInfo(int x);

void displayProgramInfo();

int displayProgramInfo();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False?


A function can have no formal parameters.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False?


A function must have a return statement.

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?