McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2025
→
Computer Science Engineering (CSE)
→
Object Oriented Programming (OOP)
→
What is value of size?
Q.
What is value of size?
A.
28
B.
32
C.
20
D.
24
Answer» C. 20
2k
0
Do you find this helpful?
15
View all MCQs in
Object Oriented Programming (OOP)
Discussion
No comments yet
Login to comment
Related MCQs
Which of the following is true about the following program #include <iostream> class Test { public: int i; void get(); }; void Test::get() { std::cout <<"Enter the value of i: "; std::cin >>i; } Test t; // Global object int main() { Test t; // local object t.get(); std::cout <<"value of i in local t: "<<t.i<<'\n'; ::t.get(); std::cout <<"value of i in global t: "<<::t.i<<'\n'; return 0; }
In an assignment statement, the value on the left of the equal sign is always equal to the value on the right.
Which type of class has only one unique value for all the objects of that same class?
A variable of type char can hold the value 301.
When arguments are passed by value, the function works with the original arguments in the calling program.
When a function returns a value, the entire function call can appear on the right side of the equal sign and be assigned to another variable.
What value will be printed for data.i?