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

1.3.5 Pemboleh ubah

1.3.5 Pemboleh ubah

10th Grade

13 Qs

Computer Applications

Computer Applications

10th Grade

7 Qs

Logic Building in Java Part 1

Logic Building in Java Part 1

6th - 9th Grade

10 Qs

5oClockJava

5oClockJava

10th Grade

11 Qs

Recursion in Java

Recursion in Java

9th - 12th Grade

10 Qs

Informatik - Objekt vs. Klasse

Informatik - Objekt vs. Klasse

10th Grade

10 Qs

FUN PRODAS

FUN PRODAS

10th Grade

10 Qs

C++ Recursion

C++ Recursion

8th - 12th Grade

12 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