0% found this document useful (0 votes)
268 views

Technical Questions

The document contains technical questions related to computer science topics like programming, operating systems, data structures, algorithms and networking. Some sample questions include: 1. The format specifier "-%d" is used for left justifying a string in C. 2. Virtual functions allow functions from derived classes to be called from a base class pointer. 3. Quicksort can have best or worst time complexity depending on the input, making it a good and bad sorting algorithm.

Uploaded by

cse_solo
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
268 views

Technical Questions

The document contains technical questions related to computer science topics like programming, operating systems, data structures, algorithms and networking. Some sample questions include: 1. The format specifier "-%d" is used for left justifying a string in C. 2. Virtual functions allow functions from derived classes to be called from a base class pointer. 3. Quicksort can have best or worst time complexity depending on the input, making it a good and bad sorting algorithm.

Uploaded by

cse_solo
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 15

technical

Technical Questions

1.The format specifier "-%d" is used for which purpose in C


(a) Left justifying a string (b) Right justifying a string
(c) Removing a string from the console (d) Used for the scope specification of a char[] variable Ans. (a)

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)

5. In an absolute loading scheme, which loader function is accomplished by assembler


a] Reallocation (b) Allocation (c) Linking (d) Both (a) and (b) Ans. (d)

6. Banker's algorithm for resource allocation deals with


a] Deadlock avoidance (b) Deadlock avoidance (c) Deadlock recovery (d) None of these Ans. (b)

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)

11.Which of the following is a broadband communications channel? (a) Coaxial cable


(b) Fiber optic cable (c) Microwave circuits (d) All of the above Ans. (d)

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

26. C program code


> int zap(int n)
> {
> if(n<=1)then zap=1;
> else zap=zap(n-3)+zap(n-1);
> }
> then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15 Ans: b

27. Which of the following exchanges positive ions (a).cl- (b) nh2- (c) ch2 Ans. (b)

28. After execution of CMP, a instruction in Intel 8085 microprocessor


(a) ZF is set and CY is reset. (b) ZF is set CY is unchanged
(c) ZF is reset, CY is set (d) ZF is reset , CY is unchanged . Ans. ZF is set and CY is reset

29. The best tool for editing a graphic image is ?

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.

36. Assignment operator targets to Ans. l-value

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

39. Picard's method uses _______? Ans. Successive Differentiation.

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) +

41. Where is LINUX being developed? a) US b) UK c) Finland d) France

42. Which is not an OS? a) Win 3.1 b) Win 95 c) Win 98 d) Win 2000

2
technical

43. Which is heart of all Software Activity? a) Database b) OS c) Memory d) Application

44. What is PROM? Programmable Read On Memory

45. What is Tally? Accounting package

46. What would be consequence if Processing Speed is doubled?


Execution time of double the job will be done in the same time as in original speed.

47. Where does the emulation of Terminal occurs?


a) Tranport Layer b) Application Layer c) Network Layer d) Session Layer

48. struct te
{
int i;
float j;
char c[25];
};
p={"TIGER"}
printf("%d %f",i,j); Ans:0 0.000000

49. int x = 10,y=15,z = 5;


int i;
i = x<y<z;
printf("%d",i)

50. What will be the output ?


main()<br>
{<br>
struct xyz<br>
{int i:<br>
}<br>
struct xyz *p;<br>
struct xyz a;<br>

p=&amp;a;<br>

p-&gt;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=&amp;x;(*y)++;<br>

<br>

printf(“%d,%d\n”,*y);<br> (A)5 (B) 4 (C) 0 (D) syntax error.

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

54.what is the drawback in the threaded binary tree?


(A)null links are replaced with thread links (B)does’nt contain null links.
(C)extra memory is required. (D)no extra memory is required.

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

59.What is the difference between public and private inheritance?


(A) under the public inheritance ,public and protected members of the base class have the same status in the derived class.
(B)under private inheritance ,public and protected members of the base class all become private members of the derived
class. (C)both A &B (D) none of these.

60 .inheritance facilitates reusability because (A) child object cannot be modified.


(B)the base class need not be modified to derive a new class.
(C)derived class objects inherit only the desirable feature of the base class.
(D) objects of the base class can be treated as objects of the derived class.

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)

70. which feature in ANSI C but not in JAVA.??ANS variable arguments.

71. preprocessor does not do one of the following??ANS type checking.

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

77. f(n) f(x)


{
if(x
5
technical

<=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)

81. #define VALUE 1+2


main()
{
printf(”%d and %d\n”,VALUE/VALUE,VALUE*3);
} ANS:: 5,7

82. What is the value assigned to the variable a if b is 7 a=b>8?b<<2:b>4?b>>1:b; ANS::3

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.

86. in C parameters are passed by ANS:: value only.

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)

91. A certain radioactive element A, has a half life = t seconds.


In (t/2) seconds the fraction of the initial quantity of the element so far decayed is nearly
(a) 29% (b) 15% (c) 10% (d) 45% Ans. (a)
92. . Which of the following plots would be a straight line ?
(a) Logarithm of decay rate against logarithm of time
(b) Logarithm of decay rate against logarithm of number of decaying nuclei (c) Decay rate against time

6
technical

(d) Number of decaying nuclei against time Ans. (b)

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)

111. An electron moving in an electromagnetic field moves in a


(a) In a straight path (b) Along the same plane in the direction of its propagation

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)

113. The following unit measure energy: (a) Kilo-watt hour.


(b) Volt*volt/sec*ohm. (c) Pascal*foot*foot (d) (Coulomb*coulomb)*farad 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)

116. During an isothermal expansion of an ideal gas


(a) Its internal energy increases. (b) Its internal energy decreases.
(c) Its internal energy does not change. (d) The work done by the gas is not equal to the quantity of heat
absorbed by it. 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)

128. Which of the following statements is not true?


(a) The ratio of the mean speed to the rms speed is independent of temperature

(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)

129. Which of the following statements represent Raoult's Law


(a) Mole fraction of solvent = ratio of vapour pressure of the solution to vapour pressure of the solvent
(b) Mole fraction of solute = ratio of vapour pressure of the solution to vapour pressure of the solvent
(c) Mole fraction of solute = lowering of vapour pressure of the solution
(d) Mole fraction of solvent = lowering of vapour pressure of the solution Ans. (a)

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

131.Which is the most acidic amongst


(a) Nitrophenol (b) O-toulene (c) Phenol (d) Cresol

132. Pure water does not conduct electricity because it is


(a) Almost not ionized (b) Low boiling (c) Neutral (d) Readily decomposed Ans. (a)

133. In a salt bridge, KCl is used because (a) It is an electrolyte


(b) The transference number of K+ and Cl¯ is nearly the same
(c) It is a good conductor of electricity (d) All of the above Ans. (d)

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

149. The C language terminator is


(a) semicolon (b) colon (c) period (d) exclamation mark

150. What is false about the following -- A compound statement is


(a) A set of simple statements (b) Demarcated on either side by curly brackets

(c) Can be used in place of simple statement (d) A C function is not a compound statement.

151. What is true about the following C Functions


(a) Need not return any value (b) Should always return an integer
(c) Should always return a float (d) Should always return more than one value

152. Main must be written as


(a) The first function in the program (b) Second function in the program
(c) Last function in the program (d) Any where in the program

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));

155. Which of the following about the C comments is incorrect ?


(a) Comments can go over multiple lines
(b) Comments can start any where in the line
(c) A line can contain comments with out any language statements
(d) Comments can occur within comments

156. What is the value of y in the following code?


x=7;
y=0;
if(x=6) y=7;
else y=1;
(a) 7 (b) 0 (c) 1 (d) 6

157. Read the function conv() given below


conv(int t)
{
int u;
u=5/9 * (t-32);

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

159. Which of the following is not an infinite loop ?


(a) while(1)\{ ....} (b) for(;;){...}

(c) x=0; (d) # define TRUE 0

do{ /*x unaltered within the loop*/ ...


.....}while(x = = 0); while(TRUE){ ....}

159. What does the following function print?


func(int i)
{
if(i%2)return 0;
else return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);
}
(a) 3 (b) 1 (c) 0 (d) 2

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;

For questions 161,162,163,164 use the following alternatives:


a.int b.char c.string d.float
161. '9'
162. "1 e 02"
163. 10e05
164. 15
165. Read the folllowing code
# define MAX 100

# define MIN 100


....
....
if(x>MAX)
x=1;
else if(x x=-1;
x=50;
if the initial value of x=200,what is the value after executing this code?
(a) 200 (b) 1 (c) -1 (d) 50

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

167. Given the piece of code


int a[50];
int *pa;
pa=a;
To access the 6th element of the array which of the following is incorrect?
(a) *(a+5) (b) a[5] (c) pa[5] (d) *(*pa + 5}

168. Consider the following structure:


struct num nam
{
int no;
char name[25];
}
struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};
.....
.....
printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);
What does the above statement print?
(a) 8,9 (b) 9,9 (c) 8,8 (d) 8,unpredictable value

169. Identify the in correct expression


(a)a=b=3=4; (b)a=b=c=d=0; (c)float a=int b= 3.5; (d)int a; floatb;a=b=3.5;

170. Regarding the scope of the varibles;identify the incorrect statement:


(a) automatic variables are automatically initialized to 0 (b) static variables are are automatically initialized to 0
(c) the address of a register variable is not accessible (d) static variables cannot be initialized with any expression

171. cond 1?cond 2?cond 3?:exp 1:exp 2:exp 3:exp 4;


is equivalent to which of the following?
(a) if cond 1
exp 1;
else if cond 2
exp 2;
else if cond 3
exp 3;
else exp 4;
(b) if cond 1
if cond 2
if cond 3
exp 1;
else exp 2;
else exp 3;
else exp 4;
(c) if cond 1 && cond 2 && cond 3
exp 1 |exp 2|exp 3|exp 4;
(d) if cond 3
exp 1;
else if cond 2 exp 2;
else if cond 3 exp 3;
else exp 4;
172 . The operator for exponentiation is
(a) ** (b) ^ (c) % (d) not available

173. Which of the following is invalid


(a) a+=b (b) a*=b (c) a>>=b (d) a**=b

174. What is y value of the code if input x=10


y=5;
if (x==10)
else if(x==9)
else y=8;
(a)9 (b)8 (c)6 (d)7

175. What does the following code do?


fn(int n, int p, int r)
{

12
technical

static int a=p;


switch(n)
{
case 4:a+=a*r;
case 3:a+=a*r;

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

177. How many times does the loop iterated ?


foi=0;i=10;i+=2)
printf("Hi\\n");
(a)10 (b) 2 (c) 5 (d) None of these

178. What is incorrect among the following


A recursive function
(a) calls itself (b) is equivalent to a loop
(c) has a termination condition (d) does not have a return value at all

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;..\}

180. Consider the following program


main()
{
unsigned int i=10;
while(i>=0)
{
printf("%u",i)
i--;
}
}
How many times the loop will get executed
(a)10 (b)9 (c)11 (d) infinite

181.Pick out the odd one out


(a) malloc() (b) calloc() (c) free() (d) realloc()

182. consider the following program


main()
{
int a[5]={1,3,6,7,0};
int *b;
b=&a[2];
}
The value of b[-1] is
(a) 1 (b) 3 (c) -6 (d) none

183. # define prod(a,b)=a*b


main()
{
int x=2;

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

184.Consider the following program segment


int n,sum=1;
switch(n)
{
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;
}
If n=2, what is the value of sum
(a) 0 (b) 6 (c) 3 (d) None of these

185. Identify the incorrect one


1.if(c=1)
2.if(c!=3)
3.if(a 4.if(c==1)
(a) 1 only (b) 1&3 (c) 3 only (d) All of the above

186. The format specified for hexa decimal is


(a) %d (b) %o (c) %x (d) %u

187. Find the output of the following program


main()
{
int x=5, *p;
p=&x

printf("%d",++*p);
}
(a) 5 (b) 6 (c) 0 (d) none of these

188.Consider the following C code


main()
{
int i=3,x;
while(i>0)
{
x=func(i);
i--;
}
int func(int n)
{
static sum=0;
sum=sum+n;
return(sum);
}
}
The final value of x is
(a) 6 (b) 8 (c) 1 (d) 3

189. Int *a[5] refers to


(a) array of pointers (b) pointer to an array (c) pointer to a pointer (d) none of these

190.Which of the following statements is incorrect


(a) typedef struct new
{
int n1;
char n2;
} DATA;

14
technical

(b) typedef struct


{
int n3;
char *n4;
}ICE;

(c) typedef union


{
int n5;
float n6;
} UDT;

(d) #typedef union


{
int n7;
float n8;
} TUDAT;

15

You might also like