Technical Questions
Technical Questions
Technical Questions
2. Virtual functions allow you to (a) Create an array of type pointer-to-base-class that can hold pointers to derived classes (b)
Create functions that have no body (c) Group objects of different classes so they can all be accessed by the same function
code (d) Use the same function call to execute member functions to objects from different classes
3. A sorting algorithm which can prove to be a best time algorithm in one case and a worst time algorithm in worst case is (a)
Quick Sort (b) Heap Sort (c) Merge Sort (d) Insert Sort Ans. (a)
4. What details should never be found in the top level of a top-down design?
a] Details (b) Coding (c) Decisions (d) None of the above Ans. (c)
7. Thrashing can be avoided if a] The pages, belonging to the working set of the programs, are in main memory (b) The
speed of CPU is increased (c) The speed of I/O processor are increased (d) All of the above Ans. (a)
8. Which of the following communications lines is best suited to interactive processing applications?(a) Narrowband channels
(b) Simplex channels (c) Full-duplex channels (d) Mixedband channels Ans. (b)
9. A feasibility document should contain all of the following except (a) Project name
(b) Problem descriptions (c) Feasible alternative (d) Data flow diagrams Ans. (d)
10. What is the main function of a data link content monitor? (a) To detect problems in protocols
(b) To determine the type of transmission used in a data link (c) To determine the type of switching used in a data link (d) To
determine the flow of data Ans. (a)
12. Which of the following memories has the shortest access time? (a) Cache memory
(b) Magnetic bubble memory (c) Magnetic core memory (d) RAM Ans. (a)
13. A shift register can be used for (a) Parallel to serial conversion (b) Serial to parallel conversion
(c) Digital delay line (d) All the above Ans. (d)
14. In which of the following page replacement policies, Balady's anomaly occurs? (a) FIFO
(b) LRU (c) LFU (d) NRU Ans. (a)
15.Subschema can be used to (a) Create very different, personalised views of the same data
(b) Present information in different formats
(c) Hide sensitive information by omitting fields from the sub-schema's description
(d) All of the above Ans. (d)
16. If the time quantum is too large, Round Robin scheduling degenerates to (a) Shortest Job First Scheduling (b)
Multilevel Queue Scheduling (c) FCFS (d) None of the above Ans. (c)
17. Transponders are used for which of the following purposes (a) Uplinking (b) Downlinking
(c) Both (a) and (b) (d) None of the above Ans. (c)
18. abcD+abcd+aBCd+aBCD then the simplified function is ( Capital letters are copliments of corresponding letters
A=compliment of a) [a] a [b] ab [c] abc [d] a(bc)* [e] mone (bc)*=compliment of bc Ans: e
19. A 12 address lines maps to the memory of [a] 1k bytes [b] 0.5k bytes [c] 2k bytes [d] none Ans: b
20. In a processor these are 120 instructions . Bits needed to impliment this instructions
[a] 6 [b] 7 [c] 10 [d] none Ans: b
21.In 8085 microprocessor READY signal does.which of the following is incorrect statements
[a]It is input to the microprocessor [b] It sequences the instructions Ans : b
1
technical
22. Return address will be returned by function to [a] Pushes to the stack by call Ans : a
23. n=7623
> {
> temp=n/10;
> result=temp*10+ result;
> n=n/10
> } Ans : 3267
24. If A>B then F=F(G);else B>C then F=G(G); in this , for 75% times A>B and 25% times B>C then,is 10000
instructions are there ,then the ratio of F to G [a] 7500:2500 [b] 7500:625 [c] 7500:625 if a=b=c else 7500:2500
. In a compiler there is 36 bit for a word and to store a character 8bits are needed. IN this to store a character two words are
appended .Then for storing a K characters string, How many words are needed.
[a] 2k/9 [b] (2k+8)/9 [c] (k+8)/9 [d] 2*(k+8)/9 [e] none Ans: a
27. Which of the following exchanges positive ions (a).cl- (b) nh2- (c) ch2 Ans. (b)
30. Network scheme defines a.)one to one b.) many to many c.) one to ,many ?
31. A person wants to measures the length of a rod. First he measures with standing ideally then he measures by moving
parallel to the rod (a)the length will decrease in second case
(b)length will be same (c) length will increase in the second case.
32. One U-230 nucleus is placed in a train moving by velocity emitting alpha rays .When the train is at rest the distance
between nucleus and alpha particle is x . One passenger is observing the particle . When the train is moving what is the
distance between particle and nucleus ? (a) x (b) x + vt (c) x – vt
33. What sorting algos have their best and worst case times equal ?
Ans. O(nlogn) for merge sort and heap sort
34. What page replacement algo . has minimum number of page faults ? Ans. Optimality algorithm
35. What is the use of virtual base class in c++ Ans. Multiple lines between derived classes.
37. A byte addressable computer has memory capacity of 2 power m Kbytes and can perform 2 power n operations an
instruction involving three operands and one operator needs maximum of ---bitsAns. 3m + n
38. In round robin scheduling, if time quatum is too large then it degenerates to Ans. FCFS
40. Which of the following is a recursive set of production (a) S --> a|A, A --> S
(b) S --> a|A, A --> b (c) S -->aA, A-->S (d) None of these Ans. (c)
Which is not a Relational Operator? a)!= b)> c)< d) +
42. Which is not an OS? a) Win 3.1 b) Win 95 c) Win 98 d) Win 2000
2
technical
48. struct te
{
int i;
float j;
char c[25];
};
p={"TIGER"}
printf("%d %f",i,j); Ans:0 0.000000
p=&a;<br>
p->i=50;<br>
printf(“%d”,*p,i);<br>
}<br> (A) compile time error (B) 0 (C)50 (D) garbage value
51. A two dimensional array A is declared as int A[4][2]={0}. What values would be printed after execution the following
statement? Printf(“%d”, size of (A)); (A)4 (B)8 (C) 32 (D) none of these.
52. the output of the code fragment isint x=4,*y;<br>
<br>
y=&x;(*y)++;<br>
<br>
53.In the link list implementation of the queue class,where does the insert method place the new entry on the linked
list.? (A)at the head (B) at the tail (C) after the other entries that are greater than the other entry. (D)after all other entry
that are smaller than the new entry.
3
technical
55. which of the following option of the ls command prints non-graph character in octal.
(A) ls-a (B) ls-b (C) ls-I (D) ls-r
56.which of the following are essential operating system services that are general purpose ,multipurpose ,multi user
computer operating system should support
(A) interface support for computer operators
(B) performance analysis software for tuning the file system,process scheduling ,memory management and device driver
characteristics
(C)facilities for making an inventory if installed software and hardware on the platform (D)none of these.
57.when pack command is used the original file size is reduced by__________.
(A)25-40% (B) 50-70% (C) 80% (D) none of these.
58. The __________ command extracts the fixed string and displace it.
(A) egrep (B) fgrep (C)grep (D) sgrep
61.the ability for the processor to delegate its use by application is called?
(A) cooperative multitasking (B) preemptive multitasking (C) time slicing (D)sharing
62.a thread differs from a lightweight process in that : (A)threads have a parent process
(B)threads share process’s resources but light weight process do not.
(D)threads run in user space ,but light weight thread run in kernel space.
63.the login prompt can be changed by changing the contents of the file (A)initab
(B) init (C) passwd (D)gettydefs
4
technical
64. which command is used to delete all files in the current directory as well as all files and sub directories in its sub
directory? (A)rm* (B)rm-r* (C)rm all (D)rm *.*
65. when all the elements above the main diagonal of a square matrix are zero ,then the matrix is said to be ‘lower
triangular matrix’ .consider that such a matrix A is represented in an array A[1:n*(n+1)/2)], such that the elements
aij are stored by rows in the array ,what is the addressing formula for element aij.(i.j=[1:n]) (A)(j*(j+1)/2)+1 (B)
(i*(i+1)/2)+j (C)(i*(i-1)/2)+j (D) (j*(j-1)/2)+1
66. an algorithm for searching a large sorted array for a specific entry x compares every fourth item in the array to x
until it finds one that is larger than or equal to x. whenever a larger item is found ,the algorithm examines the
preceding three entries .if the array is sorted smallest to the largest ,which of the following describes all cases when
this algorithm might use fewer comparisons to find x than would a binary tree search?
(A)it will never use fewer comparisons. (B)when x is very close to the beginning of the array .
(C)when x is in the middle position in the array (D)when x is very close to the end of the array
67. Piggy backing is a technique for a) Flow control b) sequence c) Acknowledgment d) Retransmission ans: c
68. The layer in the OST model handles terminal emulation a) session b) application c) presentation d) transport ans: b
application
69. In signed magnitude notation what is the minimum value that can be represented with 8 bits a) -128 b) -255 c) -127 d) 0
ANS a)
72. x=2,y=6,z=6
x=y==z;
printf(%d”,x) ?ANS 1
73. class c : public A,publicB a)2 members in class a,b can have member functions with same name.
b)2 members in class a,c can have member functions with same name. c)both d)none(ANS)
74. main()
{
char *p;
p=malloc(10);
free(p);
printf(”%d”,p);
}
ANS compilation error
75. a=(10,15)
b=10,15
what are the values of a & b in ANSI C
ANS 15,10
76. main(){
int x=10,y=15,z=16;
x=y==z;
printf(”%d”,x);
ANS 0
<=0)
return;
else f(x-1)+x;
}
find the value of fn(5)? ANS 15.
78. struct {
int det;
struct prevoius;
struct new;
}
delete(struct node)
{
node-prev-next=node-next;
node-next-prev=node-prev;
if(node==head)node
} one element will be given.
ANS::it does not work when rp is the last element in the link list.
79. A code will be given which searches a particular char in the string. ANS:: it always works.
80. main()
{
int var =25,varp;
varp=&var;
varp p=10;
fnc(varp);
printf(”%d%d”,var,varp);
}
ANS::55,55 (check this out)
83. the value of the following expr (2^3)+(a^a) is a) 1 b)2 c) 3 d) insufficient data
84. which of the following is not basic data type ANS char*
85. the declaration of the variable does not result in one of the following ANS allocatrion of the storage space for the
varable.
87. 2 variables cannot have the same name if they are ANS:: in the same block.
88. a static funct. say s(),in as file f.c can be invoked from ANS all functs. in f.c after the definitions of s.
89. macros and functions do not differ in the following aspects ANS::variable no of arguments.
90. When a bicycle is in motion,the force of friction exerted by the ground on the two wheels is such that it acts(a) In the
backward direction on the front wheel and in the forward direction on the rear wheel.
(b) In the forward direction on the front wheel and in the backward direction on the rear wheel.
(c) In the backward direction on both the front and rear wheels.
(d) In the backward direction on both the front and rear wheels. Ans. (d)
6
technical
93. A radioactive element x has an atomic number of 100. It decays directly into an element y which decays directly into
element z. In both processes a charged particle is emitted. Which of the following statements would be true? (a) y has an
atomic number of 102 (b) y has an atomic number of 101
(c) z has an atomic number of 100 (d) z has an atomic number of 101 Ans. (b)
94. If the sum of the roots of the equation ax2 + bx + c=0 is equal to the sum of the squares of their reciprocals then a/c, b/a,
c/b are in (a) AP(b) GP c) HP d) None of these Ans. (c)
95. How many bonds are present in CO2 molecule? (a) 1 (b) 2 (c) 0 (d) 4 Ans. (d)
96. In a balanced chemical equation (a) Atoms are conserved (b) Molecules are conserved
(c) Moles are conserved (d) Reactant and product molecules are preserved Ans. (a)
97. . How many grams of NaOH will react with 0.2 equivalent of HCl?
(a) 0.59 (b) 0.285 (c) 1.18 (d) none of these Ans. (a)
98. Which of the following is least acidic (a) Ortho-cresol (b) Para-cresol (c) Phenol (d) Meta-cresol A b]
99. In Reimer-Tiemann's reaction, the reaction intermediate is (a) Carbene (b) Dichloro carbene
(c) Carbonion (d) Carbonium ion Ans. (b)
100. Which of the following is most acidic? (a) C2H5OH (b) CH3CHOHCH3 (c) Ethanol (d) CH3OH Ans. (b)
101.A catalyst (a)always slows down the reaction (b)always starts a rection that would not have ocurred at all otherwise
(c)causes changes in the rate of the reaction (d)changes the quantities of the products formed
Ans. (c)
102 .The rate of the first order reaction depends on the (a) Concentration of the reactant
(b) Concentration of the product (c) Time (d) Temperature Ans. (d)
103. The most abundant element in the universe is (a) Hydrogen (b) Helium (c) Oxygen
(d) Silicon Ans. (a)
104. Which of the following parameters is the same for molecules of all gases at a given temperature?
(a) Mass (b) Momentum (c) Speed (d) Kinetic energy Ans. (d)
105. A solid is completely immersed in liquid. The force exerted by the liquid on the solid will
(a) Increase if it is pushed deeper inside the liquid (b) Change if its orientation is changed
(c) Decrease if it is taken partially out of the liquid (d) None of the above Ans. (c)
106. Select the correct statements (a) A simple harmonic motion is necessarily periodic
(b) An oscillatory motion is necessarily periodic
(c) A periodic motion is necessarily oscillatory (d) All of the above Ans. (a)
107. An elecrton is injected into a region of uniform magnetic flux density with the components
of velocity parallel to and normal to the flux.What is the path of the electron?
(a) Helix (b) Parabola (c) Circle (d) Rectangle Ans. (a)
108. A constant voltage is applied between the 2 ends of a uniform metallic wire. Some heat is developed in it. The heat
developed is doubled if (a) both the length and radius of the wire are halved.
(b) both the length and radius of the wire are doubled (c) the radius of the wire is doubled
(d) the length of the wire is doubled Ans. (b)
109. If Young's double slit experiment is performed in water (a) the fringe width will decrease
(b) the fringe width will increase (c) the fringe width remains unchanged (d) there will be no fringeAns. (a)
110. The shape of a spot of light produced when bright sunshine passes perpendicular
through a hole of very small size is (a) Square, because the hole is a square
(b) Round, because it is an image of the sun (c) Round with a small penumbra around it
(d) Square with a small penumbra Ans. (b)
7
technical
(c) Opposite to the original direction of propagation (d) In a sine wave Ans. (b)
112. The total work done on the particle is equal to the change in its kinetic energy
(a) Always (b) Only if the forces acting on the body are conservative.
(c) Only if the forces acting on the body are gravitational. (d) Only if the forces acting on the body are elastic. Ans. (a)
114. Astronauts in stable orbits around the earth are in a state of weightlessness because
(a) There is no gravitational force acting on them.
(b) The satellite and the air inside it have an acceleration equal to that of gravitational acceleration there.
(c) The gravitational force of the earth and the sun balance giving null resultant.
(d) There is no atmosphere at the height at which the satellites move. Ans. (b)
115. An organ pipe, open at both ends and another organ pipe closed at one end, will resonate with each other, if their
lengths are in the ratio of (a) 1:1 (b) 1:4 (c) 2:1 (d) 1:2 Ans. (c)
117. A parallel plate capaciator is charged and the charging battery is then disconnected.
If the plates of the capacitor are moved further apart by means of insulating handles
(a) The charge on the capacitor increases. (b) The voltage across the plates increases.
(c) The capacitance increases. (d) The electrostatic energy stored in the capacitor decreases.Ans. (b)
118. Two equal negative charges q are fixed at point (0,a) and (0,-a) on the y-axis.
A positive charge Q is released from rest at the point (2a,0) on the x-axis. The charge Q will (a) Execute simple harmonic
motion about the origin (b) Move to the origin and remain at rest
(c) Move to infinity (d) Execute oscillatory but not simple harmonic motion Ans. (d)
119. A square conducting loop of length Lon a side carries a current I. The magnetic field at the centre of the loop is (a)
Independant of L (b) Proportional to L*L (c) Inversely proportoinal to L (d) Directly proportional to L Ans. (c)
120. The focal length of a convex lens when placed in air and then in water will
(a) Increase in water with respect to air (b) Increase in air with respect to water
(c) Decrease in water with respect to. air (d) Remain the same Ans. (a)
121. The maximum kinectic energy of the photoelectron emitted from the surface is dependant on
(a) The intensity of incident radiation (b) The potential of the collector electrode
(c) The frequency of incident radiation (d) The angle of incidence of radiation of the surface Ans. (c)
122. An electron orbiting in a circular orbit around the nucleus of the atom
(a) Has a magnetic dipole moment (b) Exerts an electric force on the nucleus equal to that on it by the nucleus (c) Does not
produce a magnetic induction at the nucleus (d) All of the above Ans. (d)
123. The X-rays beam coming from an X-ray tube will be: (a) Monochromatic
(b) Having all wavelengths smaller than a certain minimum wavelength
(c) Having all wavelengths larger than a certain minimum wavelength
(d) Having all wavelengths lying between a minimum and a maximum wavelength Ans. (c)
124. The mass number of a nucleus is (a) Always less than its atomic number
(b) Always more than its atomic number (c) Always equal to its atomic number
(d) Sometimes more and sometimes equal to its atomic number Ans. (d)
125. Two successive elements belonging to the first transition series have the same number
of electrons partially filling orbitals. They are (a) V and Cr
(b) Ti and V (c) Mn and Cr (d) Fe and Co Ans. (c)
126. When n+l has the same value for two or more orbitals,the new electron enters the orbital where
(a) n is maximum (b) n is minimum (c) l is maximum (d) l is minimum Ans. (b)
127. A balloon filled with ethylene is pricked with a sharp pointed needle and quickly placed in a tank
full of hydrogen at the same pressure. After a while the balloon would have (a) Shrunk
8
technical
(b) Enlarged (c) Completely collapsed (d) Remain unchanged in size Ans. (b)
(b) Tthe square of the mean speed of the molecules is equal to the mean squared speed at a certain temperature(c) Mean
kinetic energy of the gas molecules at any given temperature is independant of the mean speed (d) None Ans. (b)
130. Elements having the same atomic number and the same atomic mass are known as
(a) Isotopes (b) Isotones (c) Isomers (d) None of the above
134. A depolarizer used in the dry cell batteries is (a) KCl(b) MnO2(c) KOH (d)None of the above Ans. (b)
135. The hydrolysis of alkyl halides by aqueous NaOH is best termed as (a) Electrophylic substitution reaction (b)
Electrophylic addition reaction (c) Nnucleophylic addition reaction
(d) Nucleophylic substitution reaction Ans. (d)
136. The hydrocarbon that gives a red precipitate with ammoniacal cuprous chloride is (where 'º' means a triple bond)a) CH3-
CH2-CH2-CH3 (b CH3-CºC-CH3(c) CH2=CH-CH=CH2 (d) CH3-CH2-CºCH Ans. (d)
137. Which of the following reagents is neither neutral nor basic (a) Lucas' reagent
(b) Tollen's reagent (c) Bayer's reagent (d) Fehling's solution Ans. (a)
138. The substance which is most easily nitrated (a) Toluene (b) Bbenzene (c) Nitrobenzene
(d) Chlorobenzene Ans. (a)
139. Carbylamine reaction is a test for (a) Primary amine (b) Secondary amine
(c) Tertiary amine (d) Quarternary ammonium salt Ans. (a)
140. Which of the following oxides cannot be reduced by carbon to obtain metal
(a) ZnO (b) Al2O3 (c) Fe2O3 (d) PbO Ans. (b)
141. Which of the following is not an oxide ore?a) Cassiterite (b) Siderite (c) Pyrolusite (d) BauxiteAns. (b)
142. Which among the following is called philosopher's wool (a) Cellulose (b) Calamine
(c) Stellite (d) Cerussite Ans. (c)
143. A solid is completely immersed in liquid. The force exerted by the liquid on the solid will
(a) Increase if it is pushed deeper inside the liquid (b) Change if its orientation is changed
(c) Decrease if it is taken partially out of the liquid (d) None of the above Ans. (c)
144. Select the correct statements (a) A simple harmonic motion is necessarily periodic
(b) An oscillatory motion is necessarily periodic
(c) A periodic motion is necessarily oscillatory (d) All of the above Ans. (a)
9
technical
145. An elecrton is injected into a region of uniform magnetic flux density with the components
of velocity parallel to and normal to the flux.What is the path of the electron? (a) Helix
(b) Parabola (c) Circle (d) Rectangle Ans. (a)
146. A constant voltage is applied between the 2 ends of a uniform metallic wire. Some heat is developed in it. The heat
developed is doubled if (a) both the length and radius of the wire are halved.
(b) both the length and radius of the wire are doubled
(c) the radius of the wire is doubled (d) the length of the wire is doubled Ans. (b)
147. If Young's double slit experiment is performed in water (a) the fringe width will decrease
(b) the fringe width will increase (c) the fringe width remains unchanged (d) there will be no fringe
Ans. (a)
148. The shape of a spot of light produced when bright sunshine passes perpendicular
through a hole of very small size is (a) Square, because the hole is a square
(b) Round, because it is an image of the sun (c) Round with a small penumbra around it
(d) Square with a small penumbra Ans. (b
(c) Can be used in place of simple statement (d) A C function is not a compound statement.
153. Which of the following about automatic variables within a function is correct ?
(a) Its type must be declared before using the variable (b) They are local
(c) They are not initialized to zero (d) They are global
154. Write one statement equivalent to the following two statements: x=sqr(a); return(x);
Choose from one of the alternatives
(a) return(sqr(a)); (b) printf("sqr(a)");
(c) return(a*a*a); (d) printf("%d",sqr(a));
10
technical
return(u);
}
What is returned
(a) 15 (b) 0 (c) 16.1 (d) 29
158. Which of the following represents true statement either x is in the range of 10 and 50 or y is zero
(a) x >= 10 && x <= 50 || y = = 0 (b) x<50
(c) y!=10 && x>=50 (d) None of these
160. How does the C compiler interpret the following two statements
p=p+x;
q=q+y;
(a) p= p+x; (b)p=p+xq=q+y; (c)p= p+xq; (d)p=p+x/q=q+y;
q=q+y; q=q+y;
166. A memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed:
s="Entrance"
l=strlen(s);
what is the value of l ?
(a)20 (b)8 (c)9 (d)21
11
technical
12
technical
case 2:a+=a*r;
case 1:a+=a*r;
}
}
(a) computes simple interest for one year (b) computes amount on compound interest for 1 to 4 years
(c) computes simple interest for four year (d) computes compound interest for 1 year
176.
a=0;
while(a<5)
printf("%d\\n",a++);
How many times does the loop occurs?
(a) infinite (b)5 (c)4 (d)6
179. Which of the following go out of the loop if expn 2 becoming false
(a) while(expn 1)\{...if(expn 2)continue;} (b) while(!expn 1)\{if(expn 2)continue;...}
(c) do{..if(expn 1)continue;..}while(expn 2); (d) while(!expn 2)\{if(expn 1)continue;..\}
13
technical
int y=3;
printf("%d",prod(x+2,y-10));
}
the output of the program is
(a) 8 (b) 6 (c) 7 (d) None
printf("%d",++*p);
}
(a) 5 (b) 6 (c) 0 (d) none of these
14
technical
15