You are on page 1of 75

s.

no

3
4
5
6

7
8

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

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
questio
Is the following code correct to create a structure?_x000D_
typedef struct{...}x2;

How to read a charecter from the keyboard and will store it in the variable "a"

From which of the following libraries below, calloc belongs to?


Can getch() can be used to echo the input?
will immediatly jump to the end of the current block of code
Can include files be nested?

How do we declare a float pointer?


Exit() is same as return()?

What function should be used to release allocated memory which is no longer needed?

What is the purpose of getc() for?


How is logical AND represent in C?

Which of the following below list is/are C keywords?

What will be the output of the following programmer


float x=3.3
int i;
i=(int)x;
print i;

what will be the output of following programmer


void main()
{
char str="z";
printf(???%c???,str);
}

what will be the output of following program

#include<stdio.h>
int main()
{
printf("%d\t",sizeof(6.5));
printf("%d\t",sizeof(90000));
printf("%d",sizeof("A"));
return 0;
}
what will be the output of the following programmer

void main()
{
int a=5,b=10;
char ch="c";
float x=1.4;
if(a,b,ch,x)
{
Printf(???Hello???);
}
}

Is the format below correct to create a pointer?_x000D_


_x000D_
i=*pi;_x000D_

what will the out put of below_x000D_


void main()_x000D_
{_x000D_
int i;printf(???%d???,i^i);_x000D_
}_x000D_
which of the following below operator have the highest priority when evaluating?

what will be the out put of the below programmer


int main()
{
int i=-1;
-i;
printf("i = %d, -i = %d \n",i,-i);
}

what will be the output of the below programmer


int main()
{
printf("%x",-1<<4);
}

What is output of the following program?


int main()
{
Extern int I;
i=20;
Printf(???%d???,sizeof (i));
}
What is output of the following snipt?
void main()
{
static int i=5;
if(--i)
{
main();
printf("%d ",i);
}
}

What is output of the following snipt?


void main()
{
char *str1="abcd";
char str2[]="abcd";
printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd"));
}

The operator -> is same as the combination of the operators

What is output of the following snipt?


void Main()
{
int i = 257;
int *iPtr = &i;
printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );

What is the output for the following program.


main()
{
char p[ ]="%d\n";
p[1] = "c";
printf(p,65);
}

Which of the following is the syntax of pointer to an array?

Can we use a switch statement to switch on strings?

Is **p and &(*p) same?


Which bitwise operater is suitable for turning off a particular bit in a number
Which bitwise operator is suitable for checking whether a particular bit is on/off?
The maximum combined length of the command-line arguments including the spaces between
adjacent arguments is
What do the "c" and "v" in argv stands for?

By default a real number is treated as a


Is the following statement a declaration or definition _x000D_
extern int i;
Which of the following function is more appropriate for reading in a multi-word string?
Which of the following cannot be checked in a switch-case statement?
Which of the following is not logical operator?

What is output of the following program? _x000D_


main(){ _x000D_
Extern int I; _x000D_
i=20; _x000D_
Printf(???%d???,sizeof (i)); _x000D_
}

What is output of the following program? _x000D_


void main() _x000D_
{ _x000D_
char *p; _x000D_
p="%d\n"; _x000D_
p++; _x000D_
++p; _x000D_
printf(p-2,300); _x000D_
}

What would be output of the following program? _x000D_


main() _x000D_
{ _x000D_
const int i=4; _x000D_
float j; _x000D_
j = ++i; _x000D_
printf("%d %f", i,++j); _x000D_
}
Which of the following is the correct operator to compare two variables?

Which is not a proper prototype?


What would be the output of this program? _x000D_
main()_x000D_
{_x000D_
int x = 20;_x000D_
{_x000D_
int x = 10;_x000D_
printf ("%dn", x);_x000D_
}_x000D_
printf ("%d", x);_x000D_
}_x000D_

What is the output of the following program if its command line arguments were . . . sample 1 5 7
_x000D_
main(int argc, char *argv[])_x000D_
{_x000D_
int x;_x000D_
x = argv[1] + argv[2] + argv[3];_x000D_
printf ("%d", x);_x000D_
}

What is the output of the following program? _x000D_


main() _x000D_
{_x000D_
int a = -3, b = 2, c= 0, d;_x000D_
d = ++a && ++b || ++c;_x000D_
printf ("a = %d, b = %d, c = %d, d = %d", a, b, c, d);_x000D_
}

What is the output of the following program? _x000D_


main() _x000D_
{_x000D_
printf ("Hermione" "Granger");_x000D_
} _x000D_

How will you print \n on the screen?


What is size of void pointer?
The I/O port that does not have a dual-purpose role is

To interface external EPROM memory for applications, it is necessary to demultiplex the address/data
lines of the 8051

An alternate function of port pin P3.1 in the 8051 is

The internal RAM memory of the 8051 is


The 8051 has ________ 16-bit counter/timers
The 8051 can handle ________ interrupt sources
An alternate function of port pin P3.4 in the 8051 is

The I/O ports that are used as address and data for external memory are
The number of data registers is
Which port is used for AD0-AD7 lines in expanded mode of operations

If IP register only has the default priorities,then which of the following has the highest priority

When the 8051 is reset and the EA line is LOW, the program counter points to the first program
instruction in the

What is the difference between the 8031 and the 8051


The total amount of external code memory that can be interfaced to the 8051 is

What is an In-circuit emulator


When 8051 wakes up then 0x00 is loaded to which register

If we push data onto the stack then the stack pointer

What is the time taken by one machine cycle if crystal frequency is 20MHz

To initialise any port as an output port what value is to be given to it?


Which out of the four ports of 8051 needs a pull-up resistor for using it is as an input or an output
port?
Which of the following registers are not bit addressable?
What is the frequency of the clock that is being used as the clock source for the timer?
Auto reload mode is allowed in which mode of the timer?
TF1, TR1, TF0, TR0 bits are of which register?

If Timer 0 is to be used as a counter, then at what particular pin clock pulse need to be applied?

What is the difference between UART and USART communication?

Which of the following signal control the flow of data?

Which of the following is the logic level understood by the micro-controller/micro-processor?

What is the function of SCON register?

What should be done if we want to double the baud rate?


Pipe A can fill a tank in 12 hours. Due to a leak at the bottom it takes 20 hours to fill the tank. In what
time the leak alone can empty the full tank?
A is twice as good a workman as B and together they complete a work in 12 days. In how many days A
alone can do the work?
A can do a work in 14 days and working together A and B can do the same work in 10 days. In what
time?can B alone do the work?
The sum of three prime numbers is 100. If one of them exceeds another by 36, then one of the
numbers is:

If x is a whole number, then x2(x2-1) is always divisible by:


The profit obtained? by? selling? an? article? for? Rs.? 56? is? the? same? as? the? loss? obtained? by?
selling? it? for? Rs.? 42.? What? is? the? cost? price? of? the? article?

Ramya? sells? an? article? at? three- fourth? of? its? list? price? and? makes? a? loss? of? 10%.? Find?
the? profit? percentage? if? she? sells? at? the? list? price.

A boy runs 200 metres? in 24 seconds. What is his speed ?

In a 1000 m race Usha beats Shiny by 50 m. In the same race, by what time margin Shiny beat Mercy
who runs at 4 m/s ?
How many words with or without meaning, can be formed by using all the letters of the word, ?
ORANGE?, using each letter exactly once?
A bag contains 2 yellow balls, 3 white balls and 5 red balls. In how many ways can two balls be drawn
from the bag?

What is the angle between the two hands of a clock when the time shown by the clock is 5.30 p.m. ?
If? today is Thursday , after 730 days which will be the day of the week ?

In a 1000 m race Usha beats Shiny by 50 m. In the same race, by what time margin Shiny beat Mercy
who runs at 4 m/s ?

Pointing to Manju, Raju said, ?The son of her only brother is the brother of my wife?. How is Manju
related to Raju?
A is the husband of B. E is the daughter of C. A is the father of C. How is B related to E?

If 15th August is Monday, 17th November comes on which day?

A? man? bought? a? horse? and? a? carriage? for? Rs.? 3000.? He? sold?? the? horse? at? a? gain? of?
20%? and? the? carriage? at? a? loss? of? 10%,? thereby? gaining? 2%? on? the? whole.? Find? the?
cost? of? the? horse
A and B started a business investing Rs. 90,000 and Rs 20,000 respectively. In what ratio the profit
earned after 2 years be divided between A and B respectively?
Find the? average? of? first? 40? natural? numbers.
Is the following code correct to create a structure?_x000D_
typedef struct{...}x2;

How to read a charecter from the keyboard and will store it in the variable "a"

From which of the following libraries below, calloc belongs to?


Can getch() can be used to echo the input?
will immediatly jump to the end of the current block of code
Can include files be nested?

How do we declare a float pointer?


Exit() is same as return()?

What function should be used to release allocated memory which is no longer needed?

What is the purpose of getc() for?


How is logical AND represent in C?

Which of the following below list is/are C keywords?

What will be the output of the following programmer


float x=3.3
int i;
i=(int)x;
print i;

what will be the output of following programmer


void main()
{
char str="z";
printf(???%c???,str);
}

what will be the output of following program

#include<stdio.h>
int main()
{
printf("%d\t",sizeof(6.5));
printf("%d\t",sizeof(90000));
printf("%d",sizeof("A"));
return 0;
}
what will be the output of the following programmer

void main()
{
int a=5,b=10;
char ch="c";
float x=1.4;
if(a,b,ch,x)
{
Printf(???Hello???);
}
}

Is the format below correct to create a pointer?_x000D_


_x000D_
i=*pi;_x000D_

what will the out put of below_x000D_


void main()_x000D_
{_x000D_
int i;printf(???%d???,i^i);_x000D_
}_x000D_
which of the following below operator have the highest priority when evaluating?

what will be the out put of the below programmer


int main()
{
int i=-1;
-i;
printf("i = %d, -i = %d \n",i,-i);
}

what will be the output of the below programmer


int main()
{
printf("%x",-1<<4);
}

What is output of the following program?


int main()
{
Extern int I;
i=20;
Printf(???%d???,sizeof (i));
}
What is output of the following snipt?
void main()
{
static int i=5;
if(--i)
{
main();
printf("%d ",i);
}
}

What is output of the following snipt?


void main()
{
char *str1="abcd";
char str2[]="abcd";
printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd"));
}

The operator -> is same as the combination of the operators

What is output of the following snipt?


void Main()
{
int i = 257;
int *iPtr = &i;
printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );

What is the output for the following program.


main()
{
char p[ ]="%d\n";
p[1] = "c";
printf(p,65);
}

Which of the following is the syntax of pointer to an array?

Can we use a switch statement to switch on strings?

Is **p and &(*p) same?


Which bitwise operater is suitable for turning off a particular bit in a number
Which bitwise operator is suitable for checking whether a particular bit is on/off?
The maximum combined length of the command-line arguments including the spaces between
adjacent arguments is
What do the "c" and "v" in argv stands for?

By default a real number is treated as a


Is the following statement a declaration or definition _x000D_
extern int i;
Which of the following function is more appropriate for reading in a multi-word string?
Which of the following cannot be checked in a switch-case statement?
Which of the following is not logical operator?

What is output of the following program? _x000D_


main(){ _x000D_
Extern int I; _x000D_
i=20; _x000D_
Printf(???%d???,sizeof (i)); _x000D_
}

What is output of the following program? _x000D_


void main() _x000D_
{ _x000D_
char *p; _x000D_
p="%d\n"; _x000D_
p++; _x000D_
++p; _x000D_
printf(p-2,300); _x000D_
}

What would be output of the following program? _x000D_


main() _x000D_
{ _x000D_
const int i=4; _x000D_
float j; _x000D_
j = ++i; _x000D_
printf("%d %f", i,++j); _x000D_
}
Which of the following is the correct operator to compare two variables?

Which is not a proper prototype?


What would be the output of this program? _x000D_
main()_x000D_
{_x000D_
int x = 20;_x000D_
{_x000D_
int x = 10;_x000D_
printf ("%dn", x);_x000D_
}_x000D_
printf ("%d", x);_x000D_
}_x000D_

What is the output of the following program if its command line arguments were . . . sample 1 5 7
_x000D_
main(int argc, char *argv[])_x000D_
{_x000D_
int x;_x000D_
x = argv[1] + argv[2] + argv[3];_x000D_
printf ("%d", x);_x000D_
}

What is the output of the following program? _x000D_


main() _x000D_
{_x000D_
int a = -3, b = 2, c= 0, d;_x000D_
d = ++a && ++b || ++c;_x000D_
printf ("a = %d, b = %d, c = %d, d = %d", a, b, c, d);_x000D_
}

What is the output of the following program? _x000D_


main() _x000D_
{_x000D_
printf ("Hermione" "Granger");_x000D_
} _x000D_

How will you print \n on the screen?


What is size of void pointer?
Pipe A can fill a tank in 12 hours. Due to a leak at the bottom it takes 20 hours to fill the tank. In what
time the leak alone can empty the full tank?
A is twice as good a workman as B and together they complete a work in 12 days. In how many days A
alone can do the work?
A can do a work in 14 days and working together A and B can do the same work in 10 days. In what
time?can B alone do the work?
The sum of three prime numbers is 100. If one of them exceeds another by 36, then one of the
numbers is:

If x is a whole number, then x2(x2-1) is always divisible by:


The profit obtained? by? selling? an? article? for? Rs.? 56? is? the? same? as? the? loss? obtained? by?
selling? it? for? Rs.? 42.? What? is? the? cost? price? of? the? article?
Ramya? sells? an? article? at? three- fourth? of? its? list? price? and? makes? a? loss? of? 10%.? Find?
the? profit? percentage? if? she? sells? at? the? list? price.

A boy runs 200 metres? in 24 seconds. What is his speed ?

In a 1000 m race Usha beats Shiny by 50 m. In the same race, by what time margin Shiny beat Mercy
who runs at 4 m/s ?
How many words with or without meaning, can be formed by using all the letters of the word, ?
ORANGE?, using each letter exactly once?
A bag contains 2 yellow balls, 3 white balls and 5 red balls. In how many ways can two balls be drawn
from the bag?

What is the angle between the two hands of a clock when the time shown by the clock is 5.30 p.m. ?
If? today is Thursday , after 730 days which will be the day of the week ?

In a 1000 m race Usha beats Shiny by 50 m. In the same race, by what time margin Shiny beat Mercy
who runs at 4 m/s ?

Pointing to Manju, Raju said, ?The son of her only brother is the brother of my wife?. How is Manju
related to Raju?
A is the husband of B. E is the daughter of C. A is the father of C. How is B related to E?

If 15th August is Monday, 17th November comes on which day?

A? man? bought? a? horse? and? a? carriage? for? Rs.? 3000.? He? sold?? the? horse? at? a? gain? of?
20%? and? the? carriage? at? a? loss? of? 10%,? thereby? gaining? 2%? on? the? whole.? Find? the?
cost? of? the? horse
A and B started a business investing Rs. 90,000 and Rs 20,000 respectively. In what ratio the profit
earned after 2 years be divided between A and B respectively?
Find the? average? of? first? 40? natural? numbers.

Which of the following ways is a pre-order traversal?


The time required in best case for search operation in binary tree is

A ___________ tree is a tree where for each parent node, there is only one associated child node

In a heap, element with the greatest key is always in the ___________ node
Can stack be described as a pointer?

Key value pair is usually seen in

Which of the following linked list below have last node of the list pointing to the first node?

In _____________tree, the heights of the two child subtrees of any node differ by at most one
AVL trees have a faster __________

On which principle does stack work?

Which of the following statements hold true for binary trees?

On which principle does queue work?

An empty list is the one which has no

Which of the following ways is a in-order traversal?

A ___________ tree is a tree where for each parent node, there is only one associated child node
Which value we cannot assign to reference?
Identify the incorrect statement

Which reference modifier is used to define reference variable?

What does a reference provide?

Identify the correct sentence regarding inequality between reference and pointer.

Void pointer can point to which type of objects?

When does the void pointer can be dereferenced?

What we can?t do on a void pointer?

The data elements in structure are also known as what?

What will happen when the structure is declared?


Which of the following is a properly defined structure?
Which of the following accesses a variable in structure *b?
Which operator is having the highest precedence?

What is this operator called ?: ?

What is the use of dynamic_cast operator?


Is the following code correct to create a structure?_x000D_
typedef struct{...}x2;

How to read a charecter from the keyboard and will store it in the variable "a"

From which of the following libraries below, calloc belongs to?


Can getch() can be used to echo the input?
will immediatly jump to the end of the current block of code
Can include files be nested?

How do we declare a float pointer?


Exit() is same as return()?

What function should be used to release allocated memory which is no longer needed?

What is the purpose of getc() for?


How is logical AND represent in C?

Which of the following below list is/are C keywords?

What will be the output of the following programmer


float x=3.3
int i;
i=(int)x;
print i;
what will be the output of following programmer
void main()
{
char str="z";
printf(???%c???,str);
}

what will be the output of following program

#include<stdio.h>
int main()
{
printf("%d\t",sizeof(6.5));
printf("%d\t",sizeof(90000));
printf("%d",sizeof("A"));
return 0;
}

what will be the output of the following programmer

void main()
{
int a=5,b=10;
char ch="c";
float x=1.4;
if(a,b,ch,x)
{
Printf(???Hello???);
}
}

Is the format below correct to create a pointer?_x000D_


_x000D_
i=*pi;_x000D_

what will the out put of below_x000D_


void main()_x000D_
{_x000D_
int i;printf(???%d???,i^i);_x000D_
}_x000D_
which of the following below operator have the highest priority when evaluating?

what will be the out put of the below programmer


int main()
{
int i=-1;
-i;
printf("i = %d, -i = %d \n",i,-i);
}
what will be the output of the below programmer
int main()
{
printf("%x",-1<<4);
}

What is output of the following program?


int main()
{
Extern int I;
i=20;
Printf(???%d???,sizeof (i));
}

What is output of the following snipt?


void main()
{
static int i=5;
if(--i)
{
main();
printf("%d ",i);
}
}

What is output of the following snipt?


void main()
{
char *str1="abcd";
char str2[]="abcd";
printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd"));
}

The operator -> is same as the combination of the operators

What is output of the following snipt?


void Main()
{
int i = 257;
int *iPtr = &i;
printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );

What is the output for the following program.


main()
{
char p[ ]="%d\n";
p[1] = "c";
printf(p,65);
}
Which of the following is the syntax of pointer to an array?

Can we use a switch statement to switch on strings?

Is **p and &(*p) same?


Which bitwise operater is suitable for turning off a particular bit in a number
Which bitwise operator is suitable for checking whether a particular bit is on/off?
The maximum combined length of the command-line arguments including the spaces between
adjacent arguments is

What do the "c" and "v" in argv stands for?

By default a real number is treated as a


Is the following statement a declaration or definition _x000D_
extern int i;
Which of the following function is more appropriate for reading in a multi-word string?
Which of the following cannot be checked in a switch-case statement?
Which of the following is not logical operator?

What is output of the following program? _x000D_


main(){ _x000D_
Extern int I; _x000D_
i=20; _x000D_
Printf(???%d???,sizeof (i)); _x000D_
}

What is output of the following program? _x000D_


void main() _x000D_
{ _x000D_
char *p; _x000D_
p="%d\n"; _x000D_
p++; _x000D_
++p; _x000D_
printf(p-2,300); _x000D_
}
What would be output of the following program? _x000D_
main() _x000D_
{ _x000D_
const int i=4; _x000D_
float j; _x000D_
j = ++i; _x000D_
printf("%d %f", i,++j); _x000D_
}
Which of the following is the correct operator to compare two variables?

Which is not a proper prototype?

What would be the output of this program? _x000D_


main()_x000D_
{_x000D_
int x = 20;_x000D_
{_x000D_
int x = 10;_x000D_
printf ("%dn", x);_x000D_
}_x000D_
printf ("%d", x);_x000D_
}_x000D_

What is the output of the following program if its command line arguments were . . . sample 1 5 7
_x000D_
main(int argc, char *argv[])_x000D_
{_x000D_
int x;_x000D_
x = argv[1] + argv[2] + argv[3];_x000D_
printf ("%d", x);_x000D_
}

What is the output of the following program? _x000D_


main() _x000D_
{_x000D_
int a = -3, b = 2, c= 0, d;_x000D_
d = ++a && ++b || ++c;_x000D_
printf ("a = %d, b = %d, c = %d, d = %d", a, b, c, d);_x000D_
}

What is the output of the following program? _x000D_


main() _x000D_
{_x000D_
printf ("Hermione" "Granger");_x000D_
} _x000D_

How will you print \n on the screen?


What is size of void pointer?
Pipe A can fill a tank in 12 hours. Due to a leak at the bottom it takes 20 hours to fill the tank. In what
time the leak alone can empty the full tank?
A is twice as good a workman as B and together they complete a work in 12 days. In how many days A
alone can do the work?
A can do a work in 14 days and working together A and B can do the same work in 10 days. In what
time?can B alone do the work?
The sum of three prime numbers is 100. If one of them exceeds another by 36, then one of the
numbers is:

If x is a whole number, then x2(x2-1) is always divisible by:


The profit obtained? by? selling? an? article? for? Rs.? 56? is? the? same? as? the? loss? obtained? by?
selling? it? for? Rs.? 42.? What? is? the? cost? price? of? the? article?

Ramya? sells? an? article? at? three- fourth? of? its? list? price? and? makes? a? loss? of? 10%.? Find?
the? profit? percentage? if? she? sells? at? the? list? price.

A boy runs 200 metres? in 24 seconds. What is his speed ?

In a 1000 m race Usha beats Shiny by 50 m. In the same race, by what time margin Shiny beat Mercy
who runs at 4 m/s ?
How many words with or without meaning, can be formed by using all the letters of the word, ?
ORANGE?, using each letter exactly once?
A bag contains 2 yellow balls, 3 white balls and 5 red balls. In how many ways can two balls be drawn
from the bag?

What is the angle between the two hands of a clock when the time shown by the clock is 5.30 p.m. ?
If? today is Thursday , after 730 days which will be the day of the week ?

In a 1000 m race Usha beats Shiny by 50 m. In the same race, by what time margin Shiny beat Mercy
who runs at 4 m/s ?

Pointing to Manju, Raju said, ?The son of her only brother is the brother of my wife?. How is Manju
related to Raju?
A is the husband of B. E is the daughter of C. A is the father of C. How is B related to E?

If 15th August is Monday, 17th November comes on which day?

A? man? bought? a? horse? and? a? carriage? for? Rs.? 3000.? He? sold?? the? horse? at? a? gain? of?
20%? and? the? carriage? at? a? loss? of? 10%,? thereby? gaining? 2%? on? the? whole.? Find? the?
cost? of? the? horse
A and B started a business investing Rs. 90,000 and Rs 20,000 respectively. In what ratio the profit
earned after 2 years be divided between A and B respectively?
Find the? average? of? first? 40? natural? numbers.
Which of the following ways is a pre-order traversal?
The time required in best case for search operation in binary tree is

A ___________ tree is a tree where for each parent node, there is only one associated child node

In a heap, element with the greatest key is always in the ___________ node

Can stack be described as a pointer?

Key value pair is usually seen in

Which of the following linked list below have last node of the list pointing to the first node?

In _____________tree, the heights of the two child subtrees of any node differ by at most one
AVL trees have a faster __________

On which principle does stack work?

Which of the following statements hold true for binary trees?

On which principle does queue work?

An empty list is the one which has no


Which of the following ways is a in-order traversal?

A ___________ tree is a tree where for each parent node, there is only one associated child node
Which value we cannot assign to reference?

Identify the incorrect statement

Which reference modifier is used to define reference variable?

What does a reference provide?

Identify the correct sentence regarding inequality between reference and pointer.

Void pointer can point to which type of objects?

When does the void pointer can be dereferenced?

What we can?t do on a void pointer?


The data elements in structure are also known as what?

What will happen when the structure is declared?

Which of the following is a properly defined structure?


Which of the following accesses a variable in structure *b?
Which operator is having the highest precedence?

What is this operator called ?: ?

What is the use of dynamic_cast operator?


options1 options2 options3 options4 answs

Yes No Both None


getchar(&
a=getchar(stdin); a=getchar(); a=getc(); a);
both a
stdlib.h malloc.h calloc.h and b
Yes No Both None
Continue Exit Goto Break
Yes No Both None

None of
float *ptr float ptr *float ptr the above
Yes No Both None
Dropmem
Free() Dealloc() Release() ()
Read a character from Read a character
STDIN from a file Both None
|| && @@ AND
Both A &
Integer int Null B

3 3.3 3 3

26 Z z Error

421 821 441 844


CompilerE
Error Hello rror None

Yes No Both None

Unexpecte Runtime
Cannot compile 0d error
() [] * ->

i=-1, i=-1 i = -1,-i = 1 -i=1 ,i=-1 i=1,-i=1

ffff fff fff0 0fff

Error 20 4 2
5432 0 1234 1111

255 0 123 111

None of
* and & and | and the above

00 22 45 11

C A a c

int *p[10] int[10]*p int(*p)[10] None


Wrong
Yes No Question None
Wrong
Yes No Question None
&& operator & || !
&& operator & || !

128 256 0 OS specific


"c" means
"c" means argument
argument configurati
"c" means count "v" on "v"
"c" means argument argument count "v" means means
control "v" means means argument argument argument
argument vector vertex vector visibility
long
float double double fardouble

Declaration Definition Funtion Error


printf(); scanf(); gets(); puts();
Character Integer Float Float
& || && !

Error 20 4 2

Error cant increment p 2 300

Runtime
5,5.0 Compiler error 5.0 5.0 error
= != equal ==
double funct(char void
int funct(char x, char y); x) funct(); char x();
Both a Runtime
20,10 10,20 and b error

3 13 Error None

-3 2 1 0 -2301 Error None

HermioneGranger GrangerHermione Error None


printf(" echo " printf("\n"
"); "; ); echo "\n";
8; 2; 3; 4;
port 0 Port 1 Port 2 Port 3

None of
1 0 Both the above

memory memory
write read
serial port input serial port output strobe strobe

32 bytes 64 bytes 256 bytes 128 bytes


2 1 4 3
3 4 5 7
Interrupt
Timer 0 Timer 1 interrupt 0 1
ports 0 ports 0
ports 1 and 2 ports 1 and 3 and 2 and 3
8; 16 32 64
P0 P1 P2 P3
SERIAL
INT0 INT1 TIMER COMM

external internal
internal code data data
external code memory memory memory memory

The 8051
has 64
bytes The 8051
The 8031 has no more is ROM-
The 8031 is ROM-less. interrupts. memory. less.
32k 64k 128K 256k

It is an
embedde
d
applicatio
It replaces the n with real A tool that
It is a hardware device microprocessor time allows
that connects to the with a simulated operating external
microprocessor equivalent system debugging
SP DPTR PSW PC

none of both of
the the
increases with every decreases with mentione mentione
push every push d d

0.75 micro 1 micro


1.085 micro seconds 0.60 micro seconds seconds seconds

A port is
by default
an output
0xFF 0x00 0x01 port

PORT 0 Port 1 PORT 2 PORT 3


SCON PCON A PSW
controller externally
?s crystal applied
some externally applied controller?s crystal frequency frequency
frequency f? frequency f /12 /12
Mode 0 Mode 1 Mode 2 Mode 3
TMOD SCON TCON SMOD

P3.3 P3.4 P3.5 P3.6

one uses
asynchron
ous means
of
communic one uses
ation and angular
the other means of
one uses uses the
asynchronous asynchron communic
means of ous and ation and
they are the names of communication synchrono the other
the same particular and the other uses us means uses linear
thing, just the synchronous of means of
difference of A and S is means of communic communic
there in it communication ation ation

None of Both of
the the
mentione mentione
RTS DTR d d

None of Both of
the the
mentione mentione
TTL logic level RS232 logic level d d

to program the none of both of


start bit, stop bit, the the
to control SBUF and and data bits of mentione mentione
SMOD registers framing d d

change a change a
bit of the bit of the
change a bit of the change a bit of the SCON SBUF
TMOD register PCON register register register

18 hours 23 hours 28 hours 30 hours

32 34 35 36
25 days 35 days 23 days 30days

7 29 41 67
multiple
12 24 12-x of 12
None of?
Rs. 40 Rs. 50 Rs. 49 these

None? of?
these????
20% 25% 15% ?????
28.5
20 km/hr 24 km/hr? km/hr 30 km/hr

Data not
100 sec 50 sec 25 sec sufficient

700 720 750 800

2C2 10C2 8C2 5C2

0 5 3 15
Thursday Friday? Saturday Monday

Data not
100 sec. 50 sec??? 25 sec?? sufficient

Sister of
Mother- father-in-
Mother?s sister Grandmother in-law law
Mother Grandmother Aunt Cousin
Wednesda
Thursday. Monday y saturday

2200 1800 1200 . 1000

09:02 03:02:00 18:20 18:04


20.5 18 19.5 19

Yes No Both None


getchar(&
a=getchar(stdin); a=getchar(); a=getc(); a);
both a
stdlib.h malloc.h calloc.h and b
Yes No Both None
Continue Exit Goto Break
Yes No Both None

None of
float *ptr float ptr *float ptr the above
Yes No Both None
Dropmem
Free() Dealloc() Release() ()
Read a character from Read a character
STDIN from a file Both None
|| && @@ AND
Both A &
Integer int Null B

3 3.3 3 3

26 Z z Error

421 821 441 844


CompilerE
Error Hello rror None

Yes No Both None

Unexpecte Runtime
Cannot compile 0d error
() [] * ->

i=-1, i=-1 i = -1,-i = 1 -i=1 ,i=-1 i=1,-i=1

ffff fff fff0 0fff

Error 20 4 2
5432 0 1234 1111

255 0 123 111

None of
* and & and | and the above

00 22 45 11

C A a c

int *p[10] int[10]*p int(*p)[10] None


Wrong
Yes No Question None
Wrong
Yes No Question None
&& operator & || !
&& operator & || !

128 256 0 OS specific


"c" means
"c" means argument
argument configurati
"c" means count "v" on "v"
"c" means argument argument count "v" means means
control "v" means means argument argument argument
argument vector vertex vector visibility
long
float double double fardouble

Declaration Definition Funtion Error


printf(); scanf(); gets(); puts();
Character Integer Float Float
& || && !

Error 20 4 2

Error cant increment p 2 300

Runtime
5,5.0 Compiler error 5.0 5.0 error
= != equal ==
double funct(char void
int funct(char x, char y); x) funct(); char x();
Both a Runtime
20,10 10,20 and b error

3 13 Error None

-3 2 1 0 -2301 Error None

HermioneGranger GrangerHermione Error None


printf(" echo " printf("\n"
"); "; ); echo "\n";
8; 2; 3; 4;

18 hours 23 hours 28 hours 30 hours

32 34 35 36

25 days 35 days 23 days 30days

7 29 41 67
multiple
12 24 12-x of 12
None of?
Rs. 40 Rs. 50 Rs. 49 these
None? of?
these????
20% 25% 15% ?????
28.5
20 km/hr 24 km/hr? km/hr 30 km/hr

Data not
100 sec 50 sec 25 sec sufficient

700 720 750 800

2C2 10C2 8C2 5C2

0 5 3 15
Thursday Friday? Saturday Monday

Data not
100 sec. 50 sec??? 25 sec?? sufficient

Sister of
Mother- father-in-
Mother?s sister Grandmother in-law law
Mother Grandmother Aunt Cousin
Wednesda
Thursday. Monday y saturday

2200 1800 1200 . 1000

09:02 03:02:00 18:20 18:04


20.5 18 19.5 19

right sub left sub


tree-> left tree->
Root->left sub tree-> Root->right sub sub tree- right sub
right sub tree tree-> left sub tree >Root tree->Root
O(n) O(1) O(2n) O(2)

complete
rooted complete binary degenerat
balanced binary tree binary tree tree e tree

first node first node


of left sub of right
leaf root tree sub tree
none of
Yes NO the above 0
Both a
Hash tables Heaps and b Skip list

circular
circular doubly linked singly doubly
list circular linked list linked list linked list

Binary tree Red black tree Splay tree AVL tree


Insertion Deletion Updation Retrieval
LIFO or
FILO FIFO LILO FILO

Noth left
and right
subtree
nodes
contains
only
The right subtree nodes
The left subtree of a of a node contains with keys
node contains only only nodes with less than
nodes with keys less keys greater than Both a the node's
than the node's key the node's key. and b key
Both a
FILO FIFO LILO and b
both a
nodes data and b address

right sub left sub


tree-> left tree->
Root->left sub tree-> Root->right sub sub tree- root->right
right sub tree tree-> left sub tree >Root sub tree

complete
rooted complete degenerat binary
balanced binary tree binary tree e tree tree
integer floating unsigned null
A
reference
value once None of
Reference is the A reference value defined the
alternate name of the once defined can cannot be mentione
object be reassigned reassigned d

none of
the
mentione
& $ # d

Alternate None of
name for the
Alternate name for the Alternate name for the mentione
class the variable pointer d

we can
use none of
reference the
we can not create the we can create the to mentione
array of reference Array of reference reference d

all of the
mentione
int float double d

none of
when it cast to using the
when it doesn?t point another type of delete mentione
to any value object keyword d

both of none of
the the
mentione mentione
pointer arithemetic pointer functions d d

none of
the
mentione
objects members datas d

it will be none of
declared the
it will not allocate any it will allocate the and mentione
memory memory initialized d
struct struct
struct a_struct {int a_struct a_struct
struct {int a;} a;} int a; {int a;};
b->var; b.var; b-var; b>var;
postfix unary shift equality

none of
the
casting mentione
conditional relational operator d

it will
convert
the
operator none of
it converts virtual based on the
it converts virtual base base object to precedenc mentione
class to derived class derived objeccts e d

Yes No Both None


getchar(&
a=getchar(stdin); a=getchar(); a=getc(); a);
both a
stdlib.h malloc.h calloc.h and b
Yes No Both None
Continue Exit Goto Break
Yes No Both None

None of
float *ptr float ptr *float ptr the above
Yes No Both None
Dropmem
Free() Dealloc() Release() ()
Read a character from Read a character
STDIN from a file Both None
|| && @@ AND
Both A &
Integer int Null B

3 3.3 3 3
26 Z z Error

421 821 441 844

CompilerE
Error Hello rror None

Yes No Both None

Unexpecte Runtime
Cannot compile 0d error
() [] * ->

i=-1, i=-1 i = -1,-i = 1 -i=1 ,i=-1 i=1,-i=1


ffff fff fff0 0fff

Error 20 4 2

5432 0 1234 1111

255 0 123 111

None of
* and & and | and the above

00 22 45 11

C A a c
int *p[10] int[10]*p int(*p)[10] None
Wrong
Yes No Question None
Wrong
Yes No Question None
&& operator & || !
&& operator & || !

128 256 0 OS specific

"c" means
"c" means argument
argument configurati
"c" means count "v" on "v"
"c" means argument argument count "v" means means
control "v" means means argument argument argument
argument vector vertex vector visibility
long
float double double fardouble

Declaration Definition Funtion Error


printf(); scanf(); gets(); puts();
Character Integer Float Float
& || && !

Error 20 4 2

Error cant increment p 2 300


Runtime
5,5.0 Compiler error 5.0 5.0 error
= != equal ==
double funct(char void
int funct(char x, char y); x) funct(); char x();

Both a Runtime
20,10 10,20 and b error

3 13 Error None

-3 2 1 0 -2301 Error None

HermioneGranger GrangerHermione Error None


printf(" echo " printf("\n"
"); "; ); echo "\n";
8; 2; 3; 4;
18 hours 23 hours 28 hours 30 hours

32 34 35 36

25 days 35 days 23 days 30days

7 29 41 67
multiple
12 24 12-x of 12
None of?
Rs. 40 Rs. 50 Rs. 49 these

None? of?
these????
20% 25% 15% ?????
28.5
20 km/hr 24 km/hr? km/hr 30 km/hr

Data not
100 sec 50 sec 25 sec sufficient

700 720 750 800

2C2 10C2 8C2 5C2

0 5 3 15
Thursday Friday? Saturday Monday

Data not
100 sec. 50 sec??? 25 sec?? sufficient

Sister of
Mother- father-in-
Mother?s sister Grandmother in-law law
Mother Grandmother Aunt Cousin
Wednesda
Thursday. Monday y saturday

2200 1800 1200 . 1000

09:02 03:02:00 18:20 18:04


20.5 18 19.5 19
right sub left sub
tree-> left tree->
Root->left sub tree-> Root->right sub sub tree- right sub
right sub tree tree-> left sub tree >Root tree->Root
O(n) O(1) O(2n) O(2)

complete
rooted complete binary degenerat
balanced binary tree binary tree tree e tree

first node first node


of left sub of right
leaf root tree sub tree

none of
Yes NO the above 0
Both a
Hash tables Heaps and b Skip list

circular
circular doubly linked singly doubly
list circular linked list linked list linked list

Binary tree Red black tree Splay tree AVL tree


Insertion Deletion Updation Retrieval
LIFO or
FILO FIFO LILO FILO

Noth left
and right
subtree
nodes
contains
only
The right subtree nodes
The left subtree of a of a node contains with keys
node contains only only nodes with less than
nodes with keys less keys greater than Both a the node's
than the node's key the node's key. and b key
Both a
FILO FIFO LILO and b
both a
nodes data and b address
right sub left sub
tree-> left tree->
Root->left sub tree-> Root->right sub sub tree- root->right
right sub tree tree-> left sub tree >Root sub tree

complete
rooted complete degenerat binary
balanced binary tree binary tree e tree tree
integer floating unsigned null

A
reference
value once None of
Reference is the A reference value defined the
alternate name of the once defined can cannot be mentione
object be reassigned reassigned d

none of
the
mentione
& $ # d

Alternate None of
name for the
Alternate name for the Alternate name for the mentione
class the variable pointer d

we can
use none of
reference the
we can not create the we can create the to mentione
array of reference Array of reference reference d

all of the
mentione
int float double d

none of
when it cast to using the
when it doesn?t point another type of delete mentione
to any value object keyword d

both of none of
the the
mentione mentione
pointer arithemetic pointer functions d d
none of
the
mentione
objects members datas d

it will be none of
declared the
it will not allocate any it will allocate the and mentione
memory memory initialized d

struct struct
struct a_struct {int a_struct a_struct
struct {int a;} a;} int a; {int a;};
b->var; b.var; b-var; b>var;
postfix unary shift equality

none of
the
casting mentione
conditional relational operator d

it will
convert
the
operator none of
it converts virtual based on the
it converts virtual base base object to precedenc mentione
class to derived class derived objeccts e d

You might also like