|
|
Page | 14/57 | Date | 09.01.2017 | Size | 9.46 Mb. | | #8172 |
| Q.114 Find the output of the following program?
#include Void main()
{
char letter=’ ’
printf(“\n%d” letter)
}
(a) ‘s ascii value (b)68 (c)Error (d)Garbage value
Q.115 Find the output of the following program?
#include<stdio.h>
#include<conio.h>
void main()
{
int i=4,z=12;
clrscr();
if(i=5 || z>50)
printf("\n Samosa");
else
printf("\n Dosa");
getch();
}
a) Samosa b)Dosa c) Error d) None of above
Q.116 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int i=4,z=12;
clrscr();
if(i=5 && z>50)
printf("\n Let us C");
else
printf("\n Let us Not C");
getch();
}
a) Let us C b)Let us Not C c) Error
Q.117 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int p=8,q=20;
if(p==5 && q>5)
printf("\n Why not C");
else
printf("\n Why C");
getch();
}
d) None of above
a) Why not C b) Why C c) Why Not C & Why C d) None
Q.118 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int j=4,k;
k=!5 &&j;
printf("\n k= %d",k);
}
a) 4 b)5 c)0 d)45
Q.119 Find the output of the following program?
#include
#include
void main()
{
int i=0; clrscr(); for(;i<=2;)
printf("%d",++i);
getch();
}
a) 1 2 3 b)0 1 2 c) 2 3 4 d) error
Q.120 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int i=4; clrscr(); printf("%d\t%d\t%d\t",i,i--,--i); getch();
}
a) 2 3 3 b) 4 3 2 c) 2 2 2
Q.121 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int i=4;
clrscr();
printf("%d",i); printf("\n%d",i--); printf("\n%d",--i); getch();
}
d) 3 3 3
a) 4 4 2 b) 4 4 3
Q.122 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int i=4; clrscr(); printf("%d\t%d\t%d\t",i,i++,++i);
getch();
c) 4 4 4 d) 4 3 2
a) 6 5 5 b) 6 5 4 c) 6 6 6 d) 5 5 5
Q.123 Find the output of the following program?
#include<stdio.h>
#include<conio.h>
void main()
{
int x=5,y; y=x++; printf("%d%d",x,y); getch();
}
a) 6 5 b)5 6 c) 6 6
Q.123 Find the output of the following program?
#include
#include<conio.h>
void main()
{
int x=5;
if(i=0)
{
d) 5 5
Printf(“ = am in Zero”)
}
Else
{
Printf(“ = am in :ero”)
}
getch();
}
a) I am in Hero b) I am in Zero c) Error d) None of Above
Q. 124 Why this program runs infinite times
#include
#include<conio.h>
void main()
{
int i;
for(i=32200;i<=32768;i++)
{
printf(" The Value I %d",i);
}
}
a) The range of Integer b) It will not infinite c) Error d) None of above
Answer Key :
-
Que No
|
Ans
|
Que No
|
Ans
|
Que No
|
Ans
|
Que No
|
Ans
|
Que No
|
Ans
|
1
|
A
|
31
|
B
|
61
|
C
|
91
|
D
|
121
|
A
|
2
|
D
|
32
|
B
|
62
|
B
|
92
|
C
|
122
|
A
|
3
|
C
|
33
|
C
|
63
|
A
|
93
|
D
|
123
|
A
|
4
|
B
|
34
|
A
|
64
|
D
|
94
|
A
|
124
|
A
|
5
|
A
|
35
|
B
|
65
|
D
|
95
|
B
|
|
|
6
|
C
|
36
|
C
|
66
|
C
|
96
|
D
|
|
|
7
|
A
|
37
|
D
|
67
|
C
|
97
|
B
|
|
|
8
|
A
|
38
|
C
|
68
|
A
|
98
|
C
|
|
|
9
|
C
|
39
|
D
|
69
|
B
|
99
|
C
|
|
|
10
|
A
|
40
|
C
|
70
|
B
|
100
|
C
|
|
|
11
|
C
|
41
|
A
|
71
|
B
|
101
|
B
|
|
|
12
|
B
|
42
|
A
|
72
|
B
|
102
|
A
|
|
|
13
|
A
|
43
|
B
|
73
|
B
|
103
|
C
|
|
|
14
|
D
|
44
|
B
|
74
|
C
|
104
|
A
|
|
|
15
|
D
|
45
|
C
|
75
|
C
|
105
|
A
|
|
|
16
|
A
|
46
|
D
|
76
|
B
|
106
|
C
|
|
|
17
|
B
|
47
|
B
|
77
|
A
|
107
|
D
|
|
|
18
|
B
|
48
|
A
|
78
|
B
|
108
|
D
|
|
|
19
|
A
|
49
|
C
|
79
|
B
|
109
|
B
|
|
|
20
|
D
|
50
|
C
|
80
|
D
|
110
|
C
|
|
|
21
|
B
|
51
|
A
|
81
|
D
|
111
|
B
|
|
|
22
|
B
|
52
|
B
|
82
|
B
|
112
|
A
|
|
|
23
|
A
|
53
|
D
|
83
|
D
|
113
|
A
|
|
|
24
|
D
|
54
|
B
|
84
|
A
|
114
|
A
|
|
|
25
|
C
|
55
|
C
|
85
|
B
|
115
|
A
|
|
|
26
|
A
|
56
|
A
|
86
|
D
|
116
|
A
|
|
|
27
|
C
|
57
|
D
|
87
|
B
|
117
|
B
|
|
|
28
|
A
|
58
|
A
|
88
|
D
|
118
|
A
|
|
|
29
|
A
|
59
|
B
|
89
|
C
|
119
|
A
|
|
|
30
|
C
|
60
|
B
|
90
|
C
|
120
|
A
|
|
|
Share with your friends: |
The database is protected by copyright ©ininet.org 2024
send message
|
|