#include <iostream> using namespace std; int main() { /* Question 1 void Shoes (
ID: 3814636 • Letter: #
Question
#include <iostream>
using namespace std;
int main() {
/* Question 1
void Shoes (int boots = 16, int& heels = 8, int sneakers =3){
cout<< "there are " << sneakers << "sneakers." <<endl;
cout<< "there are " << heels << "heels." <<endl;
cout<< "there are " << boots << "boots." <<endl;
return;
int main (){
Shoes(7,2,10);
return 0;
}
What is the output of this program?
*/
cout << "Question 1 ";
cout<< "there are " << "CORRECT_ME << " sneakers." <<endl;
cout<< "there are " << "CORRECT_ME" << " heels." <<endl;
cout<< “there are " << "CORRECT_ME" << " boots." <<endl;
__________________________________________________________________________________________
/*Question 2
A local variables scope extends from a function’s opening brace to the functions closing brace.
True , False or Unknown
*/
cout << "Question 2 ";
cout << "Answer #2" << endl;
/* Question 3
Which is the correct assignment of 47 to the fourth element on the 2nd row of array int Numbers[][];
A) Numbers[4][2]; B)Numbers[3][2]; C)Numbers[3][1];
*/
cout << "Question 3 ";
cout << "A,B, or C" << endl;
/* Question 4
What correctly passes two integer arguments for the function call CalcVal(...)?
A) (99,44+5); B) (int 99, 44; C) (int 99, int 44);
*/
cout << "Question 4 ";
cout << "A,B, or C" << endl;
/* Question 5
In order to use pass by reference you must use which type of function?
A) void B)int C)double
*/
cout << "Question 4 ";
cout << "A,B, or C" << endl;
/* Question 5
In order to swap values in two arrays you need _____ ?
A) temp[]; B)for loop C)both
*/
cout << "Question 5 ";
cout << "A,B, or C" << endl;
/* Question 6
Each item in an array is called an ___________?
A) index; B)element C)item
*/
cout << "Question 6 ";
cout << "A,B, or C" << endl;
/* Question 7
___________ means the argument's value is copied into a local variable for the parameter.
A) pass by reference B) pass by value C)neither
*/
cout << "Question 7 ";
cout << "A,B, or C" << endl;
/* Question 8
___________ means parameter does not create a local copy of the argument, but rather the parameter refers directly to the argument variable's memory location.
A) pass by reference B) pass by value C)neither
*/
cout << "Question 8 ";
cout << "A,B, or C" << endl;
return 0;
}
Explanation / Answer
Question 1
Answer:
cout<< "there are " << 3 << " sneakers." <<endl;
cout<< "there are " << 8<< " heels." <<endl;
cout<< “there are " << 16 << " boots." <<endl;
Question 2
Answer: True
Question 3
Answer: C)Numbers[3][1];
Question 4
Answer: C) (int 99, int 44);
Question 5
Answer: C)both
Question 6
Answer: B)element
Question 7
Answer: B) pass by value
Question 8
Answer: A) pass by reference
Question 9
Answer:
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.