
swe111 quiz 1
Authored by Riham KamalAbdelAziz
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is function overloading?
Define same functions with the same name but different return types.
Define multiple functions with the same name but different parameter lists.
Using too many functions in a program.
Calling the same function multiple times in main().
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about function overloading is FALSE?
Functions can be overloaded based on the number of parameters.
Functions can be overloaded based on the return type alone
Functions can be overloaded based on different parameter types.
Functions with same names can be overloaded.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the output ?
Inside function: 15 After function call: 15
Inside function: 15 After function call: 10
Compilation error
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when we pass an argument by value?
The function gets a copy of the variable.
The original variable is modified.
The function directly accesses the memory of the original variable.
The compiler generates an error.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this overloaded function call?
7
6.0
7
6
Compilation error
Undefined behavior
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of function overloading?
Reduces the need for multiple function names.
Increases code complexity.
Makes it harder to understand the code.
Prevents the use of different data types in a function.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is the error ?
cout statement needs to be written after the return statement
Cannot return a value since the function is of type void
Need to pass both x and y parameters by reference
Cannot multiply x with y and return the answer in the same line
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
15 questions
AWS ACF Módulo 2 - Economia e Faturamento na Nuvem
Quiz
•
University
10 questions
CHAPTER 1: COMPUTER SECURITY REVIEW
Quiz
•
University
13 questions
Chap 1: What is a program made of?
Quiz
•
University
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
10 questions
POP QUIZ 4 (DFC40243)
Quiz
•
University
10 questions
Introduction to NumPy (easy)
Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
10 questions
BIOMETRICS-UNIT-I
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University