-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintergraph.txt
More file actions
167 lines (129 loc) · 3.54 KB
/
intergraph.txt
File metadata and controls
167 lines (129 loc) · 3.54 KB
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
Subject: INTERGRAP
7.Interchanging strings and numbers Ans C
8. Matricide:Mother:: Homicide:? AnsHuman
9.Some Mammels are Vertebrates
Some Vertebrates are....... Ans d
10. Figure patteren: --|--.......etc. direction changes problem.
11. work problem.........etc. (not clear).
C TEST
1. main()
{
int arr[100];
int c:
int N;
for(i=-:i<N;i++)
arr[i]=i;
minvalue i = .....
Maxvalue i = ..... Ans 0,100 resp
2. Union Problem ..... Ans : a or c
3. for n=2 the following fn returning value is
int fun(int n)
{
for(i = 1;i<=n;i++)
for(j=i;j<=i;j++)
sum=sum+j;
return(sum);
} Ans 6
4. Calculate sum=1+1+2+1+2+3+1......
Ans i<=x;j<=i
5. for x=2 y=3 z=1
the following fn return
int fun(int n; int y; int z)
{
int sum
for(i=x;i<=y;i++)
for(j=1;j<=z;z++)
sum=sum+z;
return sum
}
Ans 0(check)
6. The values of sum from above fn
for x=0; y=0;z=1 Ans 1
7.how can you insert the following values in stack and numbers 10,20,30,40,50.60
stack [][][][][][]
numb [][][][][][][]
Ans
60 50 40 30 20 10
10 20 30 40 50 60
check.
8. # if ndif XYZ
#include "XYZ.h"
#endif
what is meaning ?
Ans:
if XYZ is not defined then only include the header file XYZ.h.
9. p:malloc(int*sizeof(int));
ans: a
10.a=5 b=10 c=7
(a>c)?a:((b>c)?b:c) ans 10
11. debugging eliminates Ans[c]
ans: both logical & ruin time errors.
12. int term (int x)
{ int sum=0;int i;
for(i=0;i<=5;i++)
sum+=x; /*problel is wrong but Ans is 650.*/
return(sum);
} Ans 650
the above fn value for x=150
13.int x;
scanf("%d",x);
-------------
--------------
what is error in the above program
14.int a[] = { 1, , 9,2.......}
int *p;
p=&a[2];
printf("%s",p);
a)7 b)2 c)4407 d)none
ans: d
15.a[][] = {1,2},{3,4}
b[] [] ={
void fun(A,B)
int i,j;
for(i=1;i<N;i++)
for(j=1;j<N;j++)
sum=sum+A[i][j];
return sum;
}
what is wrong in the above function?
16. OTHER QUESTIONS ARE MAINLY CONCENTRATED ON ERRORS LIKE
(i)syntax (ii) runtime (iii) logical (iv) debugging.
17. A binary tree with depth of '3' has max kof 20 nodes ans: no.
18. breadth search and depth search in binary tree.
ANALYTICAL
1.20%loss;20 % gain Ans 4% loss
2.Order problem Ans : Bo,Ka,A,Tp Ans Bo
3.10%5+3*2-3 ans:5
4.Calls:Tissus::Atom:? Ans:Molecules
5.cube problem( 32 bigger+4 smaller cubes)-> R.S.Aggrawal nonverbal
->pg 92: 5 questions
6 PQRSTU->problem-> Verbal Reasoning -> .......do.......pg 430 : 5 question.
7 problem -> verbal reasoning -> rs aggrawal pg 207 Quest 17 to 21.
C TEST
1. malloc ? 2. char * p =" hwllo world " , what is wrong?
3. char *(*(*a(N))())();?
4.*p++ = ?
5 int i=7
printf( "%d \n",i++ i++) o/p =? ans 56
6.n=2 pow((2.0,n),++n)?
7 #define macro for ( i,g) ?
8. int reg=2 is there any wrong ? write a reason
9. #define max 10
p=&(a+b);
q=*max;
} what is wrong
10. strcat( string,'O');
wrong? werite reason?
11.char *s=char * ....
else (string)....? wrong? write reason?
PSG PAPER: ARITHMETICS
1. Venn diagram for white, clothes,flowers
2.Male members ABCDEF, female members PQRSTU
This problem is same as in rs aggrawal [5questions]
3. not clear.
4. IMS material A sales person problem.
[5 question] conditions: M must visit before P&Q
R " " " MNOPQRS
5. A containor contains 40 lt milk, 8 lt water
ans:( 0.80)^3 * 40 = 20.41lts.
6. direction problem (playing cards) Ams south-west.