Clearly write one letter that is the single best choice Illegible answers will b
ID: 3865631 • Letter: C
Question
Clearly write one letter that is the single best choice Illegible answers will be marked as wrong. ____________ When using pass by reference for a function prototype's argument: Include the & symbol for the variable Include the & symbol for the variable except if it is type array or string Include the & symbol for the variable except if it is type array You don't use the & symbol ____________ Consider this declaration and initialization: string str = "cse1222": What data type does the value str[3] belong to? int string char array ____________ You want to define a C++ class to represent students. You decide to define three data members to hold the student's name, GPA (a real number in the range 0.0 to 4.0), and gender (a single letter, i.e. F for female and M for male). What would be appropriate data types needed to define each of the three instance variables, respectively? char, int, string string, double, char string, int, char char, double, string __________ When is it better to use a vector rather than an array? When the size of the list may grow or shrink When the size of the list will not change To store values of certain data types There is never a situation where it is better to use a vector _________ According to its definition, what does a pointer hold? An array A vector A class object A memory addressExplanation / Answer
1 Answer) b
Explantion:- for array and string variables , there is no need to use '&' to get the address
2 Answer) c
3 Answer) b
4 Answer) a
5 Answer) d
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.