×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
41 .
What is the output of this program ?
#include <`iostream`> (Please neglect `` this signs)
using namespace std;
int main()
{
int a;
a = 5 + 3 * 5;
cout << a;
return 0;
}
A.
10
B.
20
C.
30
D.
40
View Answer
Ans: 20
42 .
What will happen if a string is empty ?
A.
It can not be created
B.
Raises an error
C.
It can be used
D.
None of the mentioned
View Answer
Ans: It can be used
43 .
Where does the execution of the program starts ?
A.
main function
B.
void function
C.
user-defined function
D.
None of the mentioned
View Answer
Ans: main function
44 .
What are mandatory parts in function declaration ?
A.
return type,function name
B.
function name,declaration type
C.
both a and b
D.
none of the mentioned
View Answer
Ans: return type,function name
45 .
Which is more effective while calling the functions ?
A.
call by value
B.
call by pointer
C.
call by reference
D.
none of the mentioned
View Answer
Ans: call by reference
1
2
3
4
5
6
7
8
9
10
11