
Mastering C++ Functions
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Fatma Metwally
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
7 класс программирование
Quiz
•
7th Grade - University
10 questions
Chapter Quiz
Quiz
•
University
15 questions
The Linux Vault
Quiz
•
University
15 questions
ITEC 70 - Quiz # 2
Quiz
•
University
10 questions
Chapter 5 Database Management Quiz
Quiz
•
University
20 questions
ISC Week 11
Quiz
•
12th Grade - University
10 questions
MongoDB Concepts 1
Quiz
•
University
15 questions
G4-Microprocessors and Their Uses
Quiz
•
4th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
