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
12 questions
Java G10 IT 1 - intro and conditionals

Quiz
•
10th Grade
10 questions
Week 3 Arduino Basics Quiz

Quiz
•
7th - 12th Grade
10 questions
Introduction to Arrays

Quiz
•
KG - University
10 questions
Simulasi 3

Quiz
•
10th Grade
12 questions
Topic 1 C++ Programming

Quiz
•
12th Grade
10 questions
AP Computer Science-Quiz 2(G10)

Quiz
•
9th - 12th Grade
8 questions
Introduction to Computer Science

Quiz
•
12th Grade
10 questions
Programming

Quiz
•
1st - 10th 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
Appointment Passes Review

Quiz
•
6th - 8th 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
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade