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

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 address
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
