
Mastering C++ Functions

Quiz
•
Information Technology (IT)
•
University
•
Hard
Fatma Metwally
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q1. What is the correct syntax for defining a function in C++?
int func_name(int x);
func_name int(int x);
int func_name(int x) { ... };
void func_name { int x };
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q2. Which of the following statements about function overloading is true?
Function overloading requires all functions to have exactly the same parameters.
Function overloading can only be done with return types.
Function overloading allows multiple functions with the same name but different parameters.
Function overloading is not supported in object-oriented programming.
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function that takes two integers as parameters and returns their product.
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a program with a function that calculates and returns the average of three integers.
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a function that swaps the values of two integer variables. Use this function in main.
Evaluate responses using AI:
OFF
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q6. What is the return type of a function that does not return a value?
int
float
void
string
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code. What will be the output?
25
15
30
Error: missing argument for y
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Review PBO

Quiz
•
University
11 questions
CodeQuest TechTopia 2025-26

Quiz
•
University
17 questions
Problem Solving & Programming Design (part 4)

Quiz
•
University
10 questions
Quiz on Basics of C

Quiz
•
University
17 questions
Quiz de Programação em C

Quiz
•
University
15 questions
Массив

Quiz
•
University
16 questions
Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Quiz
•
11th Grade - University
20 questions
Uji Pemahaman Array dan Fungsi

Quiz
•
11th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University