×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
36 .
What will be output of the following program ?
#include<`stdio.h`> (Please neglect `` this signs)
int main()
{
float a=0.7;
if(a<0.7)
{
printf("C");
}
else
{
printf("C++");
}
return 0;
}
A.
0.7
B.
C
C.
C++
D.
Compilation error
E.
None of these
View Answer
Ans: C
37 .
The statement which prints out the values 1 to 10 on separate lines, is
A.
for( count = 1; count <= 10; count = count + 1) printf("%d ",count);
B.
for( count = 1; count < 10; count = count + 1) printf("%d ",count);
C.
for( count = 0; count <= 9; count = count + 1) printf("%d ",count);
D.
for( count = 1; count <> 10; count = count + 1) printf("%d ",count);
E.
None of these
View Answer
Ans: for( count = 1; count < 10; count = count + 1) printf("%d ",count);
38 .
The control automatically passes to the first statement after the loop in
A.
continue statement
B.
break statement
C.
switch statement
D.
if statement
E.
None of the above
View Answer
Ans: break statement
39 .
Recursive procedure are implemented by
A.
Queue
B.
Stack
C.
Tree
D.
Linear list
E.
None of the above
View Answer
Ans: Stack
40 .
An array of pointers is same as
A.
pointer to array
B.
pointers to pointers
C.
pointer to function
D.
pointer to structure
E.
None of the above
View Answer
Ans: pointers to pointers
1
2
3
4
5
6
7
8
9
10
11
12