Computer Science - Programming With C
Quiz-summary
0 of 261 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
- 243
- 244
- 245
- 246
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
- 256
- 257
- 258
- 259
- 260
- 261
Information
This is MCQs of Computer Science Subject Programming with C.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 261 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
- 243
- 244
- 245
- 246
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
- 256
- 257
- 258
- 259
- 260
- 261
- Answered
- Review
-
Question 1 of 261
1. Question
Choose the correct statement.
Correct
Incorrect
-
Question 2 of 261
2. Question
Which is true of conditional compilation ?
Correct
Incorrect
-
Question 3 of 261
3. Question
C was primarily developed as a
Correct
Incorrect
-
Question 4 of 261
4. Question
C is a
Correct
Incorrect
-
Question 5 of 261
5. Question
Even if a particular implementation doesn’t limit the number of characters in an identifier, it is advisable to be concise because
Correct
Incorrect
-
Question 6 of 261
6. Question
Tha minimum number of temporary variables needed to swap the contents of two variables is
Correct
Incorrect
-
Question 7 of 261
7. Question
The purpose of the following program fragment
b = s + b;
s = b – s;
b = b – s;
where s,b are two integers is toCorrect
Incorrect
-
Question 8 of 261
8. Question
Consider the function
find (int x, int y)
{return((xCorrect
Incorrect
-
Question 9 of 261
9. Question
Let a,b be two non-negative integers. Which of the following calls, finds the positive difference of a and b ?
Correct
Incorrect
-
Question 10 of 261
10. Question
If integer needs two bytes of storage, then maximum value of an unsigned integer is
Correct
Incorrect
-
Question 11 of 261
11. Question
If integer needs two bytes of storage, then maximum value of a signed integer is
Correct
Incorrect
-
Question 12 of 261
12. Question
printf (“%d”, print f(“tim”));
Correct
Incorrect
-
Question 13 of 261
13. Question
If abc is the input then the following program fragment
char x, y, z;
printf(“%d”, scanf (“%c%c%c”, &x, &y, &z)); results inCorrect
Incorrect
-
Question 14 of 261
14. Question
Consider the statements
putchar (getchar ());
putchar (getchar ());
If
a
b
is the input, the output will beCorrect
Incorrect
-
Question 15 of 261
15. Question
Let a,b be two positive integers, Which of the following options correctly relates / and %?
Correct
Incorrect
-
Question 16 of 261
16. Question
Literal means
Correct
Incorrect
-
Question 17 of 261
17. Question
Length of the string “correct” is
Correct
Incorrect
-
Question 18 of 261
18. Question
Which of the following are true regardless of the implementation?
Correct
Incorrect
-
Question 19 of 261
19. Question
Coercion
Correct
Incorrect
-
Question 20 of 261
20. Question
Choose the correct statements.
Correct
Incorrect
-
Question 21 of 261
21. Question
Consider the following program fragment
char c = ‘a’;
while (c++ <= 'z') putchar (xxx) ; If the required output is abcdefghijklmnopqrstuvwxyz, then xxx should beCorrect
Incorrect
-
Question 22 of 261
22. Question
Which of the following comments are true?
Correct
Incorrect
-
Question 23 of 261
23. Question
If y is of integer type then the expressions
3 * (y – 8 ) / 9 and (y – 8) / 9 * 3Correct
Incorrect
-
Question 24 of 261
24. Question
If y is of integer type then the expressions
3 * (y – 8 ) / 9 and (y – 8) / 9 * 3
Yield the same value ifCorrect
Incorrect
-
Question 25 of 261
25. Question
Integer division results in
Correct
Incorrect
-
Question 26 of 261
26. Question
Which of the following comments about EOF are true ?
Correct
Incorrect
-
Question 27 of 261
27. Question
The value of an automatic variable that is declared but not intialized will be
Correct
Incorrect
-
Question 28 of 261
28. Question
Choose the correct statements.
Correct
Incorrect
-
Question 29 of 261
29. Question
Choose the correct statements.
Correct
Incorrect
-
Question 30 of 261
30. Question
The const feature can be applied to
Correct
Incorrect
-
Question 31 of 261
31. Question
Which of the following operators takes only integer operands ?
Correct
Incorrect
-
Question 32 of 261
32. Question
In an expression involving II operator, evaluation
Correct
Incorrect
-
Question 33 of 261
33. Question
The statement
if (myptr ! = NULL)
*myptr = NULL ;
else
*myptr = NULL ;
has the same effect as the statement(s)Correct
Incorrect
-
Question 34 of 261
34. Question
pick the operators that associate from the left.
Correct
Incorrect
-
Question 35 of 261
35. Question
pick the operators that associate from the right.
Correct
Incorrect
-
Question 36 of 261
36. Question
The operators ., l l , <, = , if arranged in the ascending order of precedence reads
Correct
Incorrect
-
Question 37 of 261
37. Question
pick the operators whose meaning is context dependent.
Correct
Incorrect
-
Question 38 of 261
38. Question
pick the operators that associate from the left.
Correct
Incorrect
-
Question 39 of 261
39. Question
The following code fragment
int x, y = 2, z, a;
x = (y *= 2) + (z = a = y):
printf (“%d”, x);Correct
Incorrect
-
Question 40 of 261
40. Question
If n has the value 3, then the output of the statement printf (“%d %d”, n++, ++n);
Correct
Incorrect
-
Question 41 of 261
41. Question
x -= y + 1; means
Correct
Incorrect
-
Question 42 of 261
42. Question
Which of the following comments about the ++ operator are correct?
Correct
Incorrect
-
Question 43 of 261
43. Question
In standard C, trigraphs in the source program are translated
Correct
Incorrect
-
Question 44 of 261
44. Question
The expression 5 – .2 – 3 * 5 – 2 will evaluate to 18, if
Correct
Incorrect
-
Question 45 of 261
45. Question
printf (“&c”, 100);
Correct
Incorrect
-
Question 46 of 261
46. Question
The program fragment
int i = 263 ;
putchar (i);Correct
Incorrect
-
Question 47 of 261
47. Question
Which of the following comments regarding the reading of a string, using scanf (with %s option) and gets, is true?
Correct
Incorrect
-
Question 48 of 261
48. Question
The following statement
printf (“%f”, 9/5);
printsCorrect
Incorrect
-
Question 49 of 261
49. Question
The statement
printf (“%L”, (float)9/5);
printsCorrect
Incorrect
-
Question 50 of 261
50. Question
Which of the following are not keywords in C?
Correct
Incorrect
-
Question 51 of 261
51. Question
The following program fragment
unsigned i = 1;
int j = -4;
printf (“”%u”, i + j) ;
printsCorrect
Incorrect
-
Question 52 of 261
52. Question
If the following program fragment (assume negative numbers are stored in 2’s complement form)
unsigned i = 1 ;
int j = -4 :
printf (“%u”, i + j) ;
prints x, then printf (“%d”, 8 * sizeof(int));
outputs an integer that is same as (log in the answers are to the base two)Correct
Incorrect
-
Question 53 of 261
53. Question
Choose the statements that are syntactically correct.
Correct
Incorrect
-
Question 54 of 261
54. Question
The following program fragment
for (i = 3; i < 15 ; i += 3) ; printf ("%d", i) ; results inCorrect
Incorrect
-
Question 55 of 261
55. Question
The following program fragment
for (i = 1; i < 5 ; ++ i) if (i == 3) continue ; else printf ("%d ", i ); results in the printing ofCorrect
Incorrect
-
Question 56 of 261
56. Question
The following program fragment
if (a = 0)
printf (“a is zero”) ;
else
printf (“a is not zero”) ;
results in the printing ofCorrect
Incorrect
-
Question 57 of 261
57. Question
The following program fragment
if (a = 7)
printf (“a is seven”) ;
else
print f (‘a is not seven”) ;
results in the printing ofCorrect
Incorrect
-
Question 58 of 261
58. Question
The following program fragmeng
int K = -7 ;
printf (“%d”, 0 < !k);Correct
Incorrect
-
Question 59 of 261
59. Question
The following loop
for (putchar (‘c’); putchar (‘a’); putchar (‘r’))
putchar (r’);
outputsCorrect
Incorrect
-
Question 60 of 261
60. Question
The following loop
for (i = 1, j = 10 ; i < 6 ; ++i, --j) printf ("%dd %d ", i, j) ; printsCorrect
Incorrect
-
Question 61 of 261
61. Question
The following program fragment
int a = 4, b = 6 ;
printf (“%d”, a == b) ;Correct
Incorrect
-
Question 62 of 261
62. Question
The following program fragment
int 1 = 4, b = 6 ;
print (“%d”, a != b) ;Correct
Incorrect
-
Question 63 of 261
63. Question
The following program fragment
int a = 4, b = 6 ;
printf (‘%d”, a = b);Correct
Incorrect
-
Question 64 of 261
64. Question
A possible output of the following program fragment
for (i = getchar () ; ; i = getchar ())
if (i == ‘x’) break ;
else putchar (i) ;
isCorrect
Incorrect
-
Question 65 of 261
65. Question
The following program
main()
{
int i = 5;
if (i == 5) return;
else printf (“i is not five”) ;
printf (“over”) ;
}
results inCorrect
Incorrect
-
Question 66 of 261
66. Question
The following program fragment
int i = 5;
do {putchar (i + 100) ; printf (“d%”, i–);}
while (i) ;
results in the printing ofCorrect
Incorrect
-
Question 67 of 261
67. Question
The following program fragment
int i = 107, x = 5 ;
printf ((x > 7)? “%d”: “%c”, i ) ;
results inCorrect
Incorrect
-
Question 68 of 261
68. Question
Replacing > by < in the previous question results in
Correct
Incorrect
-
Question 69 of 261
69. Question
The following loop
while (printf (“%d”, printf (“az”)))
printf (“by”) ;Correct
Incorrect
-
Question 70 of 261
70. Question
The following statements
for (i = 3 ; i < 15 ; i += 3) { printf("%d ", i) ; ++i ; } will result in the printing ofCorrect
Incorrect
-
Question 71 of 261
71. Question
If a=9, b=5 and c=3, then the expression (a – a/b * b%c) > a%b%c evaluates to
Correct
Incorrect
-
Question 72 of 261
72. Question
In a for loop, if the condition is missing, then,
Correct
Incorrect
-
Question 73 of 261
73. Question
In a for loop, if the condition is missing, then infinite looping can be avoided by a
Correct
Incorrect
-
Question 74 of 261
74. Question
Choose the correct statement.
Correct
Incorrect
-
Question 75 of 261
75. Question
Which of the following comments about for loop are correct ?
Correct
Incorrect
-
Question 76 of 261
76. Question
Which of the following comments about for loop are correct?
Correct
Incorrect
-
Question 77 of 261
77. Question
Choose the correct answers.
Correct
Incorrect
-
Question 78 of 261
78. Question
Consider the following program fragment
if (a > b)
if (b > c)
sl ;
else s2 ;
s2 will be executed ifCorrect
Incorrect
-
Question 79 of 261
79. Question
If switch feature is used , then
Correct
Incorrect
-
Question 80 of 261
80. Question
The switch feature
Correct
Incorrect
-
Question 81 of 261
81. Question
break statement can be simulated by using
Correct
Incorrect
-
Question 82 of 261
82. Question
The following program fragment
if (2 < 1) ; else x = (2 < 0) ? printf ("one") : print f ("four") ; printf ("%d", x) ;Correct
Incorrect
-
Question 83 of 261
83. Question
Consider the following program fragment
if (a > b)
print f (“a > b”) ;
printf (“else part”) ;
printf (“a <= b") ; a <= b will be printed ifCorrect
Incorrect
-
Question 84 of 261
84. Question
(A > b) F (b > c) T (a = 1)
F
(b = 2) F (c > d)
fig. 1.1
Which of the following correctly implements the above flow chart ?Correct
Incorrect
-
Question 85 of 261
85. Question
The body of the following for loop
for (putchar(‘a’); putchar (0) ; putchar (‘c’))
putchar (‘b’) ;
will be executedCorrect
Incorrect
-
Question 86 of 261
86. Question
The following statement
If (a > b)
If (c > b)
print (“one”) ;
else
if (c == a) printf (“two”) ;
else printf (“three”) ;
else printf (“four”) ;Correct
Incorrect
-
Question 87 of 261
87. Question
The above statement can never print
Correct
Incorrect
-
Question 88 of 261
88. Question
The following program fragment
int x = 4, y = x, i ;
for (i = 1; i < 4; ++i) x += x; outputs an integer that is same asCorrect
Incorrect
-
Question 89 of 261
89. Question
using goto inside for loop is equivalent to using
Correct
Incorrect
-
Question 90 of 261
90. Question
Choose the correct statements.
Correct
Incorrect
-
Question 91 of 261
91. Question
Consider the declaration
static char hello []=”hello”;
The output of printf (‘%s\n”, hello);
will be the same as that ofCorrect
Incorrect
-
Question 92 of 261
92. Question
If storage class is missing in the array definition, by default it will be taken to be
Correct
Incorrect
-
Question 93 of 261
93. Question
The following program fragment
int x [5][5] , i, j ;
for (i = 0 ; i <5 ; ++i)
for(j = 0 ; j < 5 ; j++) x[i][j] = x[j][i] ;Correct
Incorrect
-
Question 94 of 261
94. Question
Which of the following features of C is meant to provide reliable access to special memory locations ?
Correct
Incorrect
-
Question 95 of 261
95. Question
Consider the array definition
int num [10] = {3, 3, 3} ;
pic the correct answersCorrect
Incorrect
-
Question 96 of 261
96. Question
Consider the following type definition.
typedef char x[10] ;
x myArray [5] ;
What will sizeof(myArray) be? (Assume one character occupies 1 byte)Correct
Incorrect
-
Question 97 of 261
97. Question
While passing an array as an actual argument, the function call must have the array name
Correct
Incorrect
-
Question 98 of 261
98. Question
The following program
main ( )
{
static int a [] = {7 , 8 , 9};
printf (“%d”, 2[a] + a[2]) ;
}Correct
Incorrect
-
Question 99 of 261
99. Question
The parameter passing mechanism for an array is
Correct
Incorrect
-
Question 100 of 261
100. Question
Consider the statement
int val[2][4] = {1, 2, 3, 4, 5, 6, 7, 8} ;
4 will be the value ofCorrect
Incorrect
-
Question 101 of 261
101. Question
The maximum number of dimension an array can have in C is
Correct
Incorrect
-
Question 102 of 261
102. Question
The following program fragment
int m, n, b = m = n = 8
char wer [80] ;
sprintf (wer, “%d%d%d”, m, n, b) ;
puts (wer) ;Correct
Incorrect
-
Question 103 of 261
103. Question
Under which of the following condition, the size of an one-dimensional array need not be specified?
Correct
Incorrect
-
Question 104 of 261
104. Question
If a two dimensional array is used as a formal parameter, then
Correct
Incorrect
-
Question 105 of 261
105. Question
The following program
main ()
{
static char a [3] [4] = {“abcd”, “mnop”, “fghi”} ;
putchar (**a) ;
}Correct
Incorrect
-
Question 106 of 261
106. Question
C does no automatic array bound checking. This is
Correct
Incorrect
-
Question 107 of 261
107. Question
Printf (“%10.5s”, wer) ;
outputsCorrect
Incorrect
-
Question 108 of 261
108. Question
printf(“%-10.5s”, wer) ;
outputsCorrect
Incorrect
-
Question 109 of 261
109. Question
printf (“%-10.*s”, hh, wer) ;
outputsCorrect
Incorrect
-
Question 110 of 261
110. Question
If n has the value 3, then the statement a[++n] = n++;
Correct
Incorrect
-
Question 111 of 261
111. Question
Choose the statement that best defines an array
Correct
Incorrect
-
Question 112 of 261
112. Question
Choose the correct statements
Correct
Incorrect
-
Question 113 of 261
113. Question
The order in which actual arguments are evaluated in a function call
Correct
Incorrect
-
Question 114 of 261
114. Question
If a global variable is of storage class static, then
Correct
Incorrect
-
Question 115 of 261
115. Question
Which of the following statements are correct?
Correct
Incorrect
-
Question 116 of 261
116. Question
The default parameter passing mechanism is
Correct
Incorrect
-
Question 117 of 261
117. Question
Choose the correct statements.
Correct
Incorrect
-
Question 118 of 261
118. Question
The storage class static can be used to
Correct
Incorrect
-
Question 119 of 261
119. Question
The following program
main ()
{printf(“tim”) ;
main () ; }Correct
Incorrect
-
Question 120 of 261
120. Question
Consider the following program.
main ()
{ putchar )’M’) ;
first () ;
putchar (‘m’) ; }
first ()
{ ______ }
second ()
{ putchar (‘d’) ; }
if Madam is the required output, then the body of first () must beCorrect
Incorrect
-
Question 121 of 261
121. Question
Use of functions
Correct
Incorrect
-
Question 122 of 261
122. Question
Which of the following comments about wide characters is/are true?
Correct
Incorrect
-
Question 123 of 261
123. Question
pick the correct statements.
Correct
Incorrect
-
Question 124 of 261
124. Question
max is a function that returns the larger of the two integers, given as arguments. Which of the following statements finds the largest of three given numbers ?
Correct
Incorrect
-
Question 125 of 261
125. Question
Forward declaration is absolutely necessary
Correct
Incorrect
-
Question 126 of 261
126. Question
Void can be used
Correct
Incorrect
-
Question 127 of 261
127. Question
Any C program
Correct
Incorrect
-
Question 128 of 261
128. Question
The following program
main ()
{ int a = 4 ;
change (a) ;
print f (“d”, a) ;
}
change (a)
int a;
{ printf(“%d”, ++a) ;}
outputsCorrect
Incorrect
-
Question 129 of 261
129. Question
Choose the best answer.
storage class definesCorrect
Incorrect
-
Question 130 of 261
130. Question
Which of the following is true of external variables?
Correct
Incorrect
-
Question 131 of 261
131. Question
The following program
main ()
{
int i = 2;
{ int i = 4, j = 5;
printf (“%dd”, i, j);
}Correct
Incorrect
-
Question 132 of 261
132. Question
The following program
main ()
{
inc (); inc(); inc ();
}
inc ()
{
static int x;
printf (“%d”, ++x) ;
}Correct
Incorrect
-
Question 133 of 261
133. Question
printf (“ab”, “cd, “ef”) ;
printsCorrect
Incorrect
-
Question 134 of 261
134. Question
The expression 4 = 6 / 3 * 2 – 2 + 7 % 3 evaluates to
Correct
Incorrect
-
Question 135 of 261
135. Question
Consider the following program segment
i = 6720 ; j = 4;
while ((i%j) ==0)
{ i = i / j ;
j = j + l ;
}
On termination j will have the valueCorrect
Incorrect
-
Question 136 of 261
136. Question
The output of the following program is
main ()
{ static int x[] = {1, 2, 3, 4, 5, 6, 7, 8};
int i;
for (i = 2; u < 6; ++i) x[x[i]] = x [i]; for (i = 0; i < 8; ++i) printf ("%d ", x[i]); }Correct
Incorrect
-
Question 137 of 261
137. Question
main ()
{int a = 5, b = 2;
printf (“%d”, a++b);
}Correct
Incorrect
-
Question 138 of 261
138. Question
The program fragment
int a = 5, b = 2;
printf (“%d”, a+++++b) ;Correct
Incorrect
-
Question 139 of 261
139. Question
Consider the following program
main ()
{ int x = 2, Y = 5 ;
if (x < Y) return (x = x + y) ; else print f ("zl") ; printf ("zl") ; printf ("z2") ; } Choose the correct statementsCorrect
Incorrect
-
Question 140 of 261
140. Question
Puts (argv[0]);
Correct
Incorrect
-
Question 141 of 261
141. Question
A possible output of the following program fragment
static char wer [][5] = {“harmot”, “merli”, “axari”} ;
printf ({“%d %d %d”, wer, wer[0], &er[0][0]);
isCorrect
Incorrect
-
Question 142 of 261
142. Question
The following program
main ()
{printf(“%u”, main);}
results inCorrect
Incorrect
-
Question 143 of 261
143. Question
The following program
main ()
{ int abc () ;
abc () ;
(*abc) () ;
}
int abc ()
{ printf (“come”); }Correct
Incorrect
-
Question 144 of 261
144. Question
The possible output of printf(“%d %d”, ptr, ptr+1); is
Correct
Incorrect
-
Question 145 of 261
145. Question
The possible output of printf(“%d %d, wer [1], wer[1]+1) is
Correct
Incorrect
-
Question 146 of 261
146. Question
The possible output of printf (“%d %d”, wer, wer+1) ; is
Correct
Incorrect
-
Question 147 of 261
147. Question
putchar (* (wer[1]+1));
Correct
Incorrect
-
Question 148 of 261
148. Question
In which of the following case will the character ‘t’ be printed?
Correct
Incorrect
-
Question 149 of 261
149. Question
Choose the correct statements
Correct
Incorrect
-
Question 150 of 261
150. Question
feature for accessing a variable through is address is desirable because
Correct
Incorrect
-
Question 151 of 261
151. Question
int i = 5;
is a statement in a C program. Which of the following are true?Correct
Incorrect
-
Question 152 of 261
152. Question
Choose the correct statements.
Correct
Incorrect
-
Question 153 of 261
153. Question
Choose the best answer.
prior to using a pointer variableCorrect
Incorrect
-
Question 154 of 261
154. Question
The operators > and < are meaningful when used with pointers, if
Correct
Incorrect
-
Question 155 of 261
155. Question
A set of names can be represented as a
Correct
Incorrect
-
Question 156 of 261
156. Question
If arr is a two dimensional array of 10 rows and 12 columns, then arr[5] logically points to the
Correct
Incorrect
-
Question 157 of 261
157. Question
While sorting a set of names, representing the names as an array of pointers is preferable to representing the names as a two dimensional array of characters because
Correct
Incorrect
-
Question 158 of 261
158. Question
Consider the following declaration.
int a, *b = &a, **c = &b;
The following program fragment
a = 4;
**c = 5;Correct
Incorrect
-
Question 159 of 261
159. Question
The statement
int **a;Correct
Incorrect
-
Question 160 of 261
160. Question
If the statement
b = (int *) **C;
is appended to the above program fragment, thenCorrect
Incorrect
-
Question 161 of 261
161. Question
consider the tow declarations
void *voidptr ;
char *charptr ;
Which of the following assignment are syntactically correct ?Correct
Incorrect
-
Question 162 of 261
162. Question
Which of the following operators can be applied to pointer variable(s)?
Correct
Incorrect
-
Question 163 of 261
163. Question
pointers are of