Unit 4 Day 8 Opener - C++ Function Concepts

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
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
Similar Resources on Wayground
10 questions
10 ԹԳՀԳ 2-րդ կիսամյակ ամփոփիչ գրավոր աշխատանք/ֆունկցիաներ/

Quiz
•
10th Grade
9 questions
عناوين العمليات بلغة جافا

Quiz
•
10th Grade - University
11 questions
S1-S5

Quiz
•
11th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
10 questions
Programação em C

Quiz
•
10th - 12th Grade
11 questions
JAVA QUIZ

Quiz
•
1st - 12th Grade
11 questions
while and do while Loop

Quiz
•
10th Grade
7 questions
Pentaksiran T4(menulis kod arahan Java)

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade