MCQOPTIONS
Bookmark
Saved Bookmarks
→
Computer Science Engineering (CSE)
→
Software Design Modeling
→
#include using namespace std;int main(){int a;a =...
1.
#include using namespace std;int main(){int a;a = 5 + 3 * 5;cout
A.
35
B.
20
C.
25
D.
30
Answer» C. 25
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Predict the output of following C++ program#include using namespace std;class Empty {}; int main(){cout
class Test { int x;};int main(){Test t; cout
Which of the following statements is correct for a static member function?1. It can access only other static members of its class. It can be called using the class name, instead of objects
Which of the following is true about the following program#include class Test{public:int i;void get();};void Test::get(){std::cout i;}Test t; // Global object int main(){Test t; // local object t.get();std::cout
Predict the output?#include using namespace std;class Test{int x;Test() { x = 5;}};int main(){Test *t = new Test; cout
Is it fine to call delete twice for a pointer?#include using namespace std;int main(){int *ptr = new int; delete ptr;delete ptr; return 0;}
What will be the output of following program?#include using namespace std;class Test{public:Test() { cout
Which of the following operators are overloaded by default by the compiler?1) Comparison Operator ( == )2) Assignment Operator ( = )
Which of the following is true about constructors. They cannot be virtual. They cannot be private. They are automatically called by new operator
In C++, const qualifier can be applied to Member functions of a class Function arguments To a class data member which is declared as static Reference variables
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies