Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Problem Solving with C++ Study Set 1
Quiz 5: Functions for All Sub Tasks
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
If a function needs to modify more than one variable, it must
Question 42
Multiple Choice
Which of the following comments would be the best post-condition for this swap function void swap int& left, int&right) ;
Question 43
Multiple Choice
When a void function is called, it is known as
Question 44
Multiple Choice
Given the following function definitions and program fragments, what is the output? Void f1int& z, int &q) { Int temp; Temp=q; Q=z; Z=temp; } Void f2 int& a, int& b) { If a<b) F1a,b) ; Else A=b; } Int x=3, y=4; F2y,x) ; Cout << x <<" " << y << endl;
Question 45
Multiple Choice
What is the output of the following code fragments? Int trial int& a, int b) { Ifb > a) { A=b; Return -a; } Else { Return 0; } } Float x=0, y=10,z; Z=trialy,x) ; Cout << z << " " << x <<" " << y << endl;
Question 46
Multiple Choice
Testing your program should be done
Question 47
Multiple Choice
A simplified version of a function which is used to test the main program is called
Question 48
Multiple Choice
Given the following function declaration and local variable declarations, which of the following is not a correct function call? Int myInt; Float myFloat; Char ch; Void someFunctionint& first, float second, char third) ;