×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Video Lectures
21 .
What is the output of this program ?
#include <`stdio.h`> (Please neglect `` this signs)
using namespace std;
int main()
{
int a = 21;
int c ;
c = a++;
cout << c;
return 0;
}
A.
21
B.
22
C.
23
D.
24
View Answer
Ans: 21
22 .
Which of three sizes of floating point types should be used when extended precision is required ?
A.
float
B.
double
C.
long double
D.
extended float
View Answer
Ans: long double
23 .
Which is correct with respect to size of the datatypes ?
A.
char > int < float
B.
int < char > float
C.
char < int < float
D.
char < int < double
View Answer
Ans: char < int < double
24 .
In C++, what is the sign of character data type by default ?
A.
Signed
B.
Unsigned
C.
Implementation dependent
D.
None of these
View Answer
Ans: Implementation dependent
25 .
What is the use of Namespace ?
A.
To encapsulate the data
B.
To structure a program into logical units.
C.
Both a and b
D.
None of the mentioned
View Answer
Ans: To structure a program into logical units.
1
2
3
4
5
6
7
8
9
10