Which of the following describes the member date 0 if it is part of a class defi
ID: 3582021 • Letter: W
Question
Which of the following describes the member date 0 if it is part of a class definition? a constructor for class date a destructor for class date a pointer of an object of class date a friend of class date which are true about static variables are declared within the class and defined outside the class every object has its own copy of a static member variable a static member variable comes into existence in memory after any instance class static member functions are usually called using the scope resolution which of the following statements are true the stremp () function combines 2 c-strings the cstring h header file is needed to use c-string library functions in the strchr() functions searches in a c-string for the first occurrence of the toupper () function translates a c-string from lower case to upp which of the following expressions can be used to test if the file fstream ob reached the EOF of the external file myfile myfile.fail myfile.eof myfile.end which of the foExplanation / Answer
Question-11: Your answer is correct
ans: b
Question-12:
ans: a , b, d
Option c is incorrect because a static variable can be accessed without creation of object(instance).
Question-13:
Ans: c
Explanation : option b is incorrect ,as cstring.h is written, but in reality it is cstring.
Option b would correct it is cstring
#include<cstring> is correct
Option d is incorrect because toupper() translates s single character to upper case, not a string.
Question-14: Your answer is correct
Ans : a , c
Question-15: correct
Ans: a
int x=5;
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.