Vous êtes sur la page 1sur 24

114.

In the closing days of the civil War, President Abraham Lincoln was planning to
graciously welcome the defeated confederate states bac into the !nion. After Lincoln was
assassinated, however, the "#adical #epublicans" in $ongress imposed martial law in the
%outh, creating resentment that caused problems well into this century. &ad Lincoln lived,
the history of regional conflict in '(th century America would have been considerably
different.
All of the following assumptions underline the argument above )*$)P+ +he imposition of
martial law in the %outh was primarily responsible for the resentment felt in the %outh &ad he
lived, lincoln would have treated hte defeated %outh as he had planned Lincoln would have
been able to prevent the #adical #epublicans in $ongress from imposing martial law in the
%outh ,actors other than the imposition of martial law in the %outh affected the history of
regional conflicts in '(th century America
11- A politician wrote the following. "I reali/e there are shortcomings to the 0uestionaire
method. &owever, since I send a copy of the 0uetionnaire to every home in the district, I
believe the results are 0uite representative.... I thin the numbers received are so large that
it is 0uite accurate even though the survey is not done scientifically" 1ost people who
received the 0uestionnaire have replied 1ost people in the district live in homes. the
0uestionnaire method of data collection is unscientific A large, absolute number of replies is
synonymous with accuracy
112 A worldwide ban on the production of certain o/one3destroying chemicals would
provide only an illusion of protection. 4uantities of such chemicals, already produced, e5ist
as coolants in millions of refrigerators. When they reach the o/one layer in the atmosphere,
their action cannot be halted. %o there is no way to prevent these chemicals from damaging
the o/one layer further.
Which of the following, if true, most seriously weaens the argument above6
It is impossible to measure with accuracy the 0uantity of o/one3destroying chemicals that
e5ist as coolants in refrigerators.
In modern societies, refrigeration of food is necessary to prevent unhealthy and potentially
life3threatening conditions.
)ven if people should give up the use of refrigerators, the coolants already in e5isting
refrigerators are a threat to atmospheric o/one.
+he coolants in refrigerators can be fully recovered at the end of the useful life of the
refrigerators and reused.
117 )very town with a pool hall has its share of unsavory characters. +his is because the
pool hall attracts gamblers and all gamblers are unsavory.
Which of the following, if true cannot be inferred from the above6 All gamblers are
unsavory.All pool halls attract gamblers. )very town has unsavory characters. All gamblers
are attracted by pool halls.
8irections.3 +he worwee in a small business is a five3day worwee
running from 1onday through ,riday. In each worwee, activities L,1,9,: and
P must all be done.+he wor is sub;ect to the following restrictions.
L must be done earlier in the wee than : and earlier than P
1 must be done earlier in the wee than 9 and earlier than :
9o more than one of the activities can ever be done on any one day
11< Which of the following is an acceptable schedule starting from 1onday to
,riday6
L, 1, 9, :, P =3333333333333ans
1, 9, :, 9, 1
:, 9, L, P, 1
P, :, L, 1, L
11> In a game, e5actly si5 inverted cups stand side by side in a straight
line, and each has e5actly one ball hidden under it. +he cups are numbered
consecutively 1 through 2. )ach of the balls is painted a single solid
color. +he colors of the balls are green, magenta, orange, purple, red, and
yellow. +he balls have been hidden under the cups in a manner that conforms
to the following conditions.
+he purple ball must be hidden under a lower3numbered cup than the orange
ball.
+he red ball must be hidden under a cup immediately ad;acent to the cup
under which the magenta ball is hidden.
+he green ball must be hidden under cup -.
Which of the following could be the colors of the balls under the cups, in
order from 1 through 26
?reen, yellow, magenta, red, purple, orange
1agenta, green, purple, red, orange, yellow
1agenta, red, purple, yellow, green, orange =3333333333333ans
:range, yellow, red, magenta, green, purple
8irections.3 In a group there are five students coded as P 4 # % +.4 and #
are intelligent in mathematics and geology. P and # are intelligent in
mathematics and hindi. 4 and % are intelligent in psychology and buddhist
studies.+ is intelligent in buddhist studies hindi and psychology
1'( who is intelligent in psychology, geology and buddhist studies
4 =3333333333333ans
+
#
%
8irections.3 +he following 0uestions are based on the following situations.
Asha, @abli, $harn, 8eepti, )ira, ,arha are cousins. 9o two cousins are of
the same age , but all have birth days on the same date in that year .+he
youngest is 17 years old and the oldest is )ira is ''.,arha is somewhere
between @abli and 8eepti in age.Asha is older than @abli. $harn is older
than 8eepti
1'1 If asha is one year older than charn the number of logically possible
orderins of all si5 cousins by increasing age is
' =3333333333333ansA @abli,Asha, ,arha, $harn, 8eepti, )iraB
C
4
-
1'' It is easier to swim in the sea water than in river water because
sea is vast mass of water
sea water is generally calm
the density of sea water is higher than river water =3333333333333ans
they water of sea is cool and greenish
1'C starting from a point 5 ;ayant waled 1-metres towards the west he
turned to his left and waled '( metres he then turned to his left and
waled 1- metres he then further turned to his right and waled 1' metres
how far is ;ayant from the point 5 and in which direction6 9
C' metres south 3
47 metres east W3333333)
4' metres north 3
'7 metres south =3333333333333ans %
1'4 #oc and roll music started in the 1>-(s as a young mans medium and roc
is still best performed by men in their twenties and thirties. As roc
performers grow into their forties and even fifties, they are simply less
physically capable of producing the ind of e5citing music they did when
they were younger. All of the following assumptions underline the argument
above )*$)P+.
As roc performers mature, their performances tend to become less e5citing
#oc music is dominated by male performers
Women performers have always played a significant role in roc music
+he physical demands of performing roc are better met by the young =3333333333333ans
1athematical Problems
1'- Which of the following statements are true, if
5 D y D / E 1( y FE - and 4 FE / FE C
1. 5 = /
'. 5 F y
C. 5 D / =E y
1 only
' only
C only
1 and C only =3333333333333ans
1'2 +he solution of the e0uation 4 3 -A'y D 4B E 4 is
3'G-
<
4
3' =3333333333333ans
1'7 When 5- D 1 is divided by A5 3 'B, the remainder is
1-
17
C1
CC
1'< &ow many terms of the series 3> , 32 , 3C ,.........must be taen such
that the sum may be 226
11
1C
> =3333333333333ans
1(
1'> +he side of a rectangle are whole numbers. What must their lengths be
for the perimeter for the rectangle to be numerically e0ual to its area6
C and 2
4 and -
4 and 2
- and -
1C( A path 7 metres wide surrounds a circular lawn whose diameter is '-'m.
What is the area of path6
-2>< s0.mtrs.
-((( s0.mtrs.
--(( s0. mtrs.
9one of these
1C1 If the negative of the sum of two consecutive odd numbers is less than
3C-, which of the following may be one of the numbers6
1< =3333333333333ans
12
1-
1C
1C' What is the perimeter of a rectangle that is twice as long as it is wide
and has the same area as a circle of diameter <6
<APB1G'
<P
1'A'PB1G'
1'P
1CC +owns A and $ are connected by a straight highway which is 2( miles
long. +he straight line distance between town A and town @ is -( miles, and
the straight line distance from town @ to town $ is -( miles. &ow many miles
is it from town @ to the point on the highway connecting town A and $ which
is closest to town @6
C(
4(
-(
2(
1C4 A batsman played 17 innings during a season and he was not out. +he
score of <- improves his average by C runs in the 17th innings. &is average
score after 12th innings is
C7
C-
C4
C2
1C- If paper costs 1 paisa per sheet, and a buyer gets a 'H discount on all
the paper he buys after the first 1((( sheets, how much will it costs to buy
-((( sheets of paper6
#s 4>.C(
#s -(.((
#s C>.'(
#s 4>.'(
1C2 +he income of a broer remains unchanged though the rate of commission
is increased from 4H to -H. +he percentage of slump in business is
<H
1H
'(H
<(H
1C7 +here are 4 0uarts in a gallon. A gallon of motor oil sells for #s.1'
and a 0uart of the same oil sells for #s.-. +he owner of a rental agency has
2 machines and each machine needs - 0uarts of oil. What is the minimum
amount of money she must spend to purchase enough oil 6
#s.<4
#s.>4
#s.>2
#s.1('
1C< A truc departed from 9ewton at 11.-Ca.m. and arrived in ,ar $ity, '4(
miles away, at 4.41 p.m. on the same day. What was the appro5imate average
speed of the truc on this trip6
12G1,'(( 1P&
4(G'<< 1P&
1,4>4G'4( 1P&
-( 1P&
1C> A girl rode her bicycle from home to school, a distance of 1- miles, at
an average speed of 1- miles per hour. %he returned home from school by
waling at an average speed of - miles per hour. What was her average speed
for the round trip if she too the same route in both directions6
7.- miles per hour
1( miles per hour
1'.- miles per hour
1C miles per hour
14( A is thrice as good a worman as @. If the time taen by @ to do piece
of wors e5ceeds that taen by A by < days. In how many days A does the
wor.
<
4
1'
1(
141 +he population of a town was -4,((( in the last census. It has increased
'GC since then. Its present population is
1<,(((
C2,(((
7',(((
>(,(((
14' :ne hundred ;ob applicants show up in response to a classified ad. If 2(
percent of them are female and if CG4 of the female applicants are willing
to relocate if the ;ob demands it, how many are not willing to relocate6
--
4-
1-
It cannot be determined from the information given
14C 1r. %mith drove at an average speed of -(mph for the first two hours of
his trip. ,or the ne5t three hours, he averaged '( mph. What was 1r. %mithIs
average speed for the five3hour trip 6
'( mph
C' mph
C- mph
C< mph
144 A postal truc leaves its station and heads for $hicago, averaging
4(mph. An error in the mailing schedule is spotted and '4 minutes after the
truc leaves, a car is sent to overtae the truc. If the car averages
-(mph, how long will it tae to catch the postal truc6
1.2 hours
C hours
' hours
1.- hours
14- +he length breadth and height of a cuboid are in the ratio 1 . ' . C.
+he length, breadth and height of the cuboid are increased by 1((H, '((H and
'((H respectively. +hen the increase in the volume of the cuboid is
- times
2 times
1' times
17 times
142 An Automobile covers the distance between two cities at a speed of 2(m.
per hour and on the return ;ourney it covers at a speed of 4( m. per hour.
,ind the average speed.
2(
-(
4<
--
147 A man buys '(( shares Apar value of #s.1(B of a company, which pays 1'H
per annum as dividend, at such a price he gets 1-H on his money. ,ind the
maret valueAapp.B of a share.
#s. >
#s. 1'
#s. <
#s. 7.-(
14< An old picture has dimensions CC inches by '4 inches. What one length
must be cut from each dimension so that the ratio of the shorter side to the
longer side is '.C6
' inches
2 inches
> inches
1( 1G' inches
14> &iralal earned a profit of #s. C(( by selling 1(( g of mi5ture of A and
@ types of rice at a total price of #s. 11((. What was the proportion of A
and @ types of rice in the mi5ture if the cost prices of A and @ types of
rice are #s. 1( and #s. - per g respectively 6
C . '
' . -
' . 77C
- . '
1-( A fraction has a value of 'G-. If the numerator is decreased by ' and
the denominator increased by 1, then the resulting fraction is 1G4. What is
the value of the numerator of the original fraction 6
-
2
7
<
)nglish Language Ability
8irections.3 +he given pair of words contains a specific relationship to
each other. %elect the best pair of choices which e5presses the same
relationship as the given.
1(C I?9:1I9J . 8I%L:JAL+J ..
fame . heroism
death . victory
derelict . fool
martyr . man
1(4 )*PL:%I:9 . 8)@#I% ..
flood . water
famine . food
fire . ashes
disease . germ
1(- @land . Pi0uant ..
inane . relevant
charlatan . genuine
slavish . servile
terse . serious
1(2 9)?LI?)9+ . #)4!I#)1)9+ ..
remiss . duty
cogent .argument
easy . hard
careful . position
8irections.3 $hoose the best word, which is most opposite in the meaning to
the given word.
1(7 ,)++)# .
delay
stretch
comply
thrive
1(< %)8!L:!% .
rampant
esoteric
morose
indolent
1(> %!$$!L)9+ .
ordinary
tasteless
ine5pensive
invigorating
11( 8:#1A9+ .
authoritative
elastic
active
uninteresting
111 $:!#+ .
re;ect
uncover
infect
sub;ect
8irections.3 +he given pair of words contains a specific relationship to
each other. %elect the best pair of choices which e5presses the same
relationship as the given.
11' I9+I1I8A+) . ,)A# ..
1aintain . satisfaction
Astonish . wonder
%oothe . concern
Lion . tame
8irections.3 Pic out the best choice which can complete the incomplete
stem correctly and meaningfully
11C It was an e5tremely pleasant surprise for the hutment3dweller when the
?overnment officials told him thatKKKKKKKKKK
he had to vacate hutment which he had been unauthori/ed occupying
he had been gifted with a furnished apartment in a multistoried building
he would be arrested for wrongly encroaching on the pavement outside his
dwelling
they would not accede to his re0uest
:: Programming $oncepts
<< +he ability to reuse ob;ects already defined, perhaps for a different
purpose, with modification appropriate to the new purpose, is referred to as
Information hiding.
Inheritance.
#edefinition.
:verloading
<> +he term given to the process of hiding all the details of an ob;ect that
do not contribute to its essential characteristics is called KKKKKKKKKKKKK.
data3hiding
pacaging
encapsulation
abstraction
>( :b;ect3oriented technologyIs KKKKKK feature means that a small change in
user re0uirements should not re0uire large changes to be made to the system.
Abstraction
1odularity
)ncapsulation
1odelling
>1 An ob;ect has KKKKK.
%tate
@ehaviour
Identity.
All of these options.
>' Which of the following is true.
$lass is an ob;ect of an ob;ect.
$lass is meta class.
$lass cannot have /ero instances.
9one of these options.
>C If a derived class ob;ect is e5plicitly destroyed by applying the delete
operator to a base3class pointer to the ob;ect, the KKKKK function is
automatically called on the ob;ect
8erived3class destructor.
@ase3class destructor.
@ase3class constructor.
8erived3class constructor.
>4 In ob;ect orientated programming a class of ob;ects can KKKKKKKKKKKKK
properties from another class of ob;ects
utili/e
borrow
inherit
adapt
>- $ontracts are not meant to be used in cases of KKKKKKK.
$omposition.
Ihas3aI relationship.
Iis3aI relationship.
@oth $omposition and Ihas3aI relationship.
>2 Inheritance through interface is called KKKKKKKK
Implementation inheritance.
8efinition inheritance.
8elegation inheritance.
Interface inheritance model.
>7 When a class uses dynamic memory, what member functions should be
provided by the class6
An overloaded assignment operator.
+he copy constructor.
A destructor.
All of these options0
>< KKKKKK means that both the data and the methods which may access it are
defined together in the same unit.
8ata hiding.
)ncapsulation
8ata @inding
9one of these options
>> +he term given to the process of hiding all the details of an ob;ect that
do not contribute to its essential characteristics is called KKKKKKKKKKKKK.
data3hiding.
pacaging.
encapsulation.
grouping
1(( $ar contains a steering wheel is e5ample of KKKKKKKK
$omposition
Association
$omposition and Association
9one of these options
1(1 $an two classes contain member functions with the same name6
9o.
Jes, but only if the two classes have the same name.
Jes, but only if the main program does not declare both inds.
Jes, this is always allowed.
1(' A contract is implemented through.
$lass
Interface.
Abstract $lass.
Interface and Abstract $lass
Programming in $
C< +he #eal constants in $ can be e5pressed in which of the following forms
,ractional form only
)5ponential form only
A%$II form only
@oth ,ractional and )5ponential forms=333333ans
C> +he program, which translates high3level program into its e0uivalent
machine language program, is called
+ransformer
Language processor
$onverter
9one of these options=333333ans
4( $onsider the following statements.
i.1ultiplication associates left to right
ii.8ivision associates left to right
iii.!nary 1inus associates right to left
iv.subtraction associates left to right
All are true=333333ans
only i and ii are true
all are false
only iii and iv are true
41 What will be the value of variable a in the following code6
unsigned char aL
a E (5,, D 1L
printfA"Hd", aBL
(5,,
(51((
( =333333ans
(5(
4' What is the output of the following program 6
Minclude =stdio.hF
void mainAB
N
printfA"On1(PE> . H-d",1(PE>BL
Q
1 =333333ans
(
)rror
9one of these options
4C Minclude=stdio.hF
void mainAB
N
int 5E1(L
A5=(B6Aint a E1((B.Aint a E1(((BL
printfA" Hd",aBL
Q
)rror =333333ans
1(((
1((
9one of these options
44 Which of the following shows the correct hierarchy of arithmetic
operations in $
AB, RR, R or G, D or 3
AB, RR, R, G, D, 3
AB, RR, G, R, D, 3
AB, G or R, 3 or D =333333ans
4- What is the output of the following code6
Minclude=stdio.hF
void mainAB
N
int aE14L
a DE 7L
a 3E -L
a RE 7L
printfA"OnHd",aBL
Q
11' =333333ans
><
<>
9one of these options
42 What is the output of the following code6
Minclude=stdio.hF
Mdefine + t
void mainAB
N
char + E I+IL
printfA"OnHcOtHcOn",+, tBL
Q
)rror
+ t
+ + =333333ans.I didSnt get d correct ans
t t
47 +he statement that prints out the character set from A3T, is
forA a E I/IL a = IaIL a E a 3 1B
printfA"Hc", UaBL
forA a E IaIL a =E I/IL a E a D 1B
printfA"Hc", UaBL
forA a E IAIL a =E ITIL a E a D 1B =33333ans
printfA"Hc", aBL
forA a E ITIL a =E IAIL a E a D 1B
printfA"Hc", aBL
4< +he statement which prints out the values 1 to 1( on separate lines, is
forA count E 1L count =E 1(L count E count D 1B printfA"HdOn", countBL
forA count E 1L count = 1(L count E count D 1B printfA"HdOn", countBL=333333ans
forA count E (L count =E >L count E count D 1B printfA"Hd ", countBL
forA count E 1L count =F 1(L count E count D 1B printfA"HdOn", countBL
4> What does the term Icall3by3referenceI refer to6
Passing a copy of a variable into a function.
Passing a pointer to a variable into a function. =333333ans
$hoosing a random value for a variable.
A function that does not return any values.
-( What is the output of the following code6
Minclude=stdio.hF
void swapAintU, intUBL
void mainAB
N
int a E 1(,bE'(L
swap AaDD,bDDBL
printfA"OnHdOtHdOt",a, bBL
Q
void swapAintU 5, intU yB
N
5DE'L
yDECL
Q
14, '4
11, '1 =333333ans
1(, '(
)rror
-1 What is the output of the following program code
Minclude=stdio.hF
void abcAint aVWB
N
aDDL
aV1WE21'L
Q
mainAB
N
char aV-WL
abcAaBL
printfA"Hd",aV4WBL
Q
1((
21'
)rror =333333ans
9one of these options
-' which of the following is true about recursive function
i. it is also called circular definition
ii. it occurs when a function calls another function more than once
iii. it occurs when a statement within the function calls the function
itself
iv. a recursive function cannot have a return statement within it"
i and iii=333333ans
i and ii
ii and iv
i, iii and iv
-C What will happen if you assign a value to an element of an array whose
subscript e5ceeds the si/e of the array6
+he element will be set to (
9othing, its done all the time
:ther data may be overwritten
)rror message from the compiler
-4 What is the output of the following code6
Minclude=stdio.hF
void mainAB
N
int arrV'WVCWV'WENNN',4Q,N7,<Q,NC,4Q,Q, NN','Q,N',CQ,NC,4Q, QQL
printfA"OnHd",RRARarrD1BD'D7BL
Q
12 =333333ans
7
11
)rror
-- If int sV-W is a one dimensional array of integers, which of the
following refers to the third element in the array6
RA s D ' B =333333ans
RA s D C B
s D C
s D '
-7 Minclude"stdio.h"
mainAB
N
int Rp1,iE'-L
void Rp'L
p1EUiL
p'EUiL
p1Ep'L
p'Ep1L
printfA"Hd",iBL
Q
+he output of the above code is .
Program will not compile =333333ans
'-
?arbage value
Address of I
-< What is the output of the following code 6
void mainAB
N
int i E 1((, ; E '((L
const int RpEUiL
p E U;L
printfA"Hd",RpBL
Q
1((
'(( =333333ans
C((
9one of the above
-> void mainAB
N
int iECL
int R;EUiL
clrscrABL
printfA"HdHd",DDR;,RAUiBBL
Q
What is the output of this program6
C C
4 C =333333ans
4,address of i printed
)rror.Lvalue re0uired
2( What is the output of the following code6
Minclude=stdio.hF
void mainAB
N
int arrVW E N1(,'(,C(,4(,-(QL
int Rptr E arrL
printfA"On HdOtHdOt",RptrDD,RptrBL
Q
1( '(
1( 1( =333333ans
'( '(
'( 1(
21 Which of these are reasons for using pointers6
1.+o manipulate parts of an array
'.+o refer to eywords such as for and if
C.+o return more than one value from a function
4.+o refer to particular programs more conveniently
1 U C =333333ans
:nly 1
:nly C
All of the above
2' struct num
N
int noL
char nameV'-WL
QL
void mainAB
N
struct num n1VWENN'-,"rose"Q,N'(,"gulmohar"Q,N<,"geranium"Q,N11,"dahalia"QQL
printfA"HdHd" ,n1V'W.no,ARUn1D'B3FnoD1BL
Q
What is the output of this program6
< <
< > =333333ans
> <
< , unpredictable
2C 8uring initiali/ing a union
:nly one member can be initialised.
All the members will be initialised.
Initialisation of a union is not possible.=333333ans
9one of these options
24 %elf referential structure is one
a. $onsisting the structure in the parent structure
b. $onsisting the pointer of the structure in the parent structure
:nly a
:nly b
@oth a and b
9either a nor b
2- Individual structure member can be initiali/ed in the structure itself
+rue
,alse
$ompiler dependent
9one of these options
22 Which of the following is the feature of stac6
All operations are at one end
It cannot reuse its memory
All elements are of different data types
Any element can be accessed from it directly=333333ans=333333ans
27 When stacs are created
Are initially empty=333333ans
Are initiali/ed to /ero
Are considered full
9one of these options
2< What is time re0uired to insert an element in a stac with lined
implementation6
:A1B
:Alog'nB=333333ans=333333ans
:AnB
:An log'nB
2> Which of the following is the feature of stac6
All operations are at one end
It cannot reuse its memory
All elements are of different data types
Any element can be accessed from it directly=333333ans
7( +ime taen for addition of element in 0ueue is
:A1B
:AnB
:Alog nB=333333ans
9one of these options
71 When is linear 0ueue said to be empty 6
,rontEErear
,rontErear31
,rontErearD1
,rontErear=333333ans
7' When 0ueues are created
Are initially empty=333333ans
Are initiali/ed to /ero
Are considered full
9one of the above
7C What would be the output of the following program6
Minclude =stdio.hF
mainAB
N
printfA"OnHc", "abcdefgh"V4WBL
Q
abcdefgh
d
e =333333ans
error
74 %elect the correct $ code which will read a line of characters
Aterminated by a OnB from inputKfile into a character array called buffer.
9!LL terminate the buffer upon reading a On.
int ch, loop E (L ch E fgetcA inputKfile BL whileA Ach PE IOnIB UU Ach PE
):,B B N bufferVloopW E chL loopDDL ch E fgetcA inputKfile BL Q bufferVloopW
E 9!LLL
int ch, loop E (L ch E fgetcA inputKfile BL whileA Ach E "On"B UU Ach E ):,B
B N bufferVloopW E chL loop33L ch E fgetcA inputKfile BL Q bufferVloopW E
9!LLL
int ch, loop E (L ch E fgetcA inputKfile BL whileA Ach =F "On"B UU Ach PE
):,B B N bufferVloopW E chL loopDDL ch E fgetcA inputKfile BL Q bufferVloopW
E 31L
9one of the above
7- What is the output of the following code 6
void mainAB
N
int aE(L
int bE(L
DDa EE ( XX DDb EE 11L
printfA"OnHd,Hd",a,bBL
Q
(, 1
1, 1 =333333ans
(, (
1, (
72 What is the output of the following program6
Mdefine strA5BM5
Mdefine *strA5BstrA5B
Mdefine oper multiply
void mainAB
N
char RopernameE*strAoperBL
printfA"Hs",opernameBL
Q
opername
*str
multiply =333333ans
*str
77 What is the output of the following code 6
Minclude=stdio.hF
Minclude=string.hF
void mainAB
N
char Ra E "$38A$O(O(A$+%O(On"L printfA"HsOn",aBL
Q
$38A$ A$+%
A$+%
$38A$ =333333ans
9one of these
7< Minclude=stdio.hF
void mainAB
N
while A1B
N
if AprintfA"Hd",printfA"Hd"BBB
breaL
else
continueL
Q
Q
+he output is
$ompile time error
?oes into an infinite loop
?arbage values =333333ans
9one of these options
7> %elect the correct $ statements which tests to see if inputKfile has
opened the data file successfully. If not, print an error message and e5it
the program.
ifA inputKfile EE 9!LL B N printfA"!nable to open file.On"BL e5itA1BL Q
ifA inputKfile PE 9!LL B N printfA"!nable to open file.On"BL e5itA1BL Q
whileA inputKfile E 9!LL B N printfA"!nable to open file.On"BL e5itA1BL Q
9one of these options
<( +he code
int i E 7L
printfA"HdOn", iDD R iDDBL
prints 4>
prints -2 =333333ans
is compiler dependent
e5pression iDD R iDD is undefined
<1 #ecursive procedure are implemented by
Linear list
4ueue
+ree
%tac=333333ans
<' Which of these are reasons for using pointers6
1. +o manipulate parts of an array
'. +o refer to eywords such as for and if
C. +o return more than one value from a function
4. +o refer to particular programs more conveniently
1 U C=333333ans
only 1
only C
9one of these options
<C +he e5pression 5 E 4 D ' H 3< evaluates to
32
2
4
9one of these options
<4 What is the output of the following code6
Minclude=stdio.hF
mainAB
N
register int aE'L
printfA"OnAddress of a E Hd,", UaBL
printfA"OtYalue of a E Hd",aBL
Q
Address of a, ' =333333ans
Liner error
$ompile time error
9one of these options
<- What is the output of the following code6
Minclude=stdio.hF
void mainAB
N
int arrVWEN(,1,',C,4,-,2QL
int i,RptrL
forAptrEarrD4,i E(L i=E4L iDDB
printfA"OnHd",ptrV3iWBL Aas the (E4,for 31 it becomes ECB
Q
)rror
2 - 4 C '
( garbage garbage garbage garbage
4 C ' 1 ( =333333ans
<2 Which of the following is the correct way of declaring a float pointer.
float ptrL
float RptrL =333333ans
Rfloat ptrL
9one of the above
<7 If the following program AnewprogB is run from the command line as.
newprog 1 ' C
What would be the output of the following6
void main Aint argc, charRargvVWB
N
int I,;E(L
for AIE(LI=argcLIDDB
;E; D atoiAargvVIWBL
printfA"Hd",;BL
Q
1'C
2
1'C
$ompilation error =333333ans
,undamentals of Programming
'7 +he programming language that was designed for specifying algorithm
Address
A%$II
AL?:L
9one of these options
'< KKKKK contains the addresses of all the records according to the contents
of the field designed as the record ey.
Inde5 =333333ans
%ubscript
Array
,ile
'> KKKKKKKKK symbol is used for Processing of data.
:val
Parallelogram =333333ans
#ectangle
8iamond
C( KKKKKKKKKK is the analysis tool used for planning program logic
Protocol
9one of these options
P#:L:?
Pseudocode
C1 1achine language has two part format the first part isKKKKKKKKKK and the
second part is KKKKKKKKKK
:P$:8),:P)#A98=333333ans
:P)#A98,:P$:8)
8A+A $:8),:P)#A98
:P)#A98,$:8):P
C' Language Primarily used for internet3based applications
A8A
$DD
ZAYA =333333ans
,:#+#A9
CC KKKKKKKKK is a point at which the debugger stops during program e5ecution
and awaits a further command.
1emory 8ump
Watch point =333333ans
@rea point
9one of these options
C4 KKKKKKKKdo not contain any program logic and are ignored by the language
processor.
Protocol
Yirus
$omment
9one of these options
C- +he component of data base management system is KKKKKKKK
8ata definition Language
8ata manipulation Language
8ata definition Language and 8ata manipulation Language
9one of these options
C2 +he 0uality of Algorithm is ;udged on the basis ofKKKKKKKKK
+ime re0uirement
1emory #e0uirement
Accuracy of solution
All of these options =333333ans
C7 Advantages of using flow charts is
)ffective Analysis
)fficient $oding
+ime consuming
)ffective Analysis and )fficient $oding =333333ans

Vous aimerez peut-être aussi