McqMate
Sign In
Hamberger menu
McqMate
Sign in
Sign up
Home
Forum
Search
Ask a Question
Sign In
McqMate Copyright © 2026
→
Computer Science Engineering (CSE)
→
Object Oriented Programming (OOP)
→
Which of the following data type does no...
Q.
Which of the following data type does not return anything?
A.
int
B.
short
C.
long
D.
void
Answer» D. void
1.5k
0
Do you find this helpful?
16
View all MCQs in
Object Oriented Programming (OOP)
Discussion
No comments yet
Login to comment
Related MCQs
Which one of the following is not a fundamental data type in C++?
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; }
What will be the output of following program? #include <iostream> using namespace std; class Test{ public: Test() { cout <<"Hello from Test() "; } } a; int main() { cout <<"Main Started "; return 0; }
Predict the output of following C++ program #include<iostream> using namespace std; class Empty {}; int main() { cout <<sizeof(Empty); return 0; }
Output of following program? #include<iostream> using namespace std; class Point { Point() { cout <<"Constructor called"; } }; int main() { Point t1; return 0; }
C++ programmers concentrate on creating , which contain data members and the member functions that manipulate those data members and provide services to clients.
#include <iostream> using namespace std; int main() { int a; a = 5 + 3 * 5; cout <<a; return 0; }
class Test { int x; }; int main() { Test t; cout <<t.x; return 0; }
Is it fine to call delete twice for a pointer? #include<iostream> using namespace std; int main() { int *ptr = new int; delete ptr; delete ptr; return 0; }
#include<iostream> using namespace std; class Point { public: Point() { cout <<"Constructor called"; } }; int main() { Point t1, *t2; return 0; }