Unit 4 Day 8 Opener - C++ Function Concepts

Unit 4 Day 8 Opener - C++ Function Concepts

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Arduino Programming

Arduino Programming

7th - 12th Grade

12 Qs

Java Methods

Java Methods

12th Grade

10 Qs

Java Arithmetic Operations

Java Arithmetic Operations

11th Grade

10 Qs

Java Recursion

Java Recursion

9th - 12th Grade

10 Qs

AP CSA Unit 10 Recursion

AP CSA Unit 10 Recursion

9th - 12th Grade

10 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

Programming

Programming

1st - 10th Grade

10 Qs

POLYMORPHISM IN C++

POLYMORPHISM IN C++

11th - 12th Grade

10 Qs

Unit 4 Day 8 Opener - C++ Function Concepts

Unit 4 Day 8 Opener - C++ Function Concepts

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Richard Ghiorse

Used 5+ times

FREE Resource

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

8.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the following statement.


The C++ main function has a return type of