C++ simple multiple choice questions for study guide. Want to make sure I\'m rev
ID: 3915272 • Letter: C
Question
C++ simple multiple choice questions for study guide. Want to make sure I'm reviewing correct answers.
I'm posting a few more in separate questions. Any help would be greatly appreciated.
Question 7 1 pts Question 11 A variable defined before main (i.e. a global variablel: Consider the following code: O will be visible only to functions outside of main O will be visible only inside main O will be visible to all functions in the program O none of the above int print stristring str, int& i) for (int x= 1: xExplanation / Answer
Question 7:
will be visible to all functions in the program
A variable defined before main will be visible to all functions including main in the program as its scope is global
Question 8:
print_the_ints(2,5);
As per the function prototype print_the_ints(int,int), there are two arguments of type int.
Question 9:
It accepts an address of a double variable as an argument
&double as an argument is used for address of double variable
Question 10:
True
Overloading includes same function with different number of arguments.
Question 11:
A function definition
All the code is wrriten so it is function definition. Function declaration has only arguments and return types.
Question 12:
A string by value and an integer by reference
Question 13:
An integer
the return type is int
Do ask if any doubt. Please upvote.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.