Download - Technical Aptitude - 2
-
5/22/2018 Technical Aptitude - 2
1/29
completedNOTE: The questions are of multiple choice format in the paper
1. What is the number of functions of a three variable boolean function?
2. Which is the most commonly used replacement alorithm?
!ns. "#$
%. Which memory manaement technique involves dividin the memory into fi&ed si'ed
bloc(s?!ns. )ain
*. What is video resolution ?
+. The processin speed of a microprocessor depends on ,,,,,?
!ns. data bus -idth
E/T0ON %: / TET
NOTE: The questions are of multiple choice format in the paper
1. What is the output of the proram iven belo-
includestdio.h3
main45 6
char i789 for49i3789i5 9 printf4;i59
2. What is the output of the follo-in proram
includestdio.h3 main45
6
int i789 for(459
printf4;i59
for(459 printf4;i59
for(459
-ait459
-
5/22/2018 Technical Aptitude - 2
2/29
%. What is the memory allocated by the follo-in definition ? int 4@&5A18B9
*. What is the memory allocated by the follo-in definition ?
int 4@&5459
+. 0n the follo-in proram sement
includestdio.h3 main45
6
int a729
int b7C9 int c719
-hile4b5 6
if4odd4b55
c7c@a9 a7a@a9
b7bD29
printf4;c59
o- many times is c7c@a calculated?
F. 0n the proram sement in question + -hat is the value of a at the end of the -hileloop?
G. What is the output for the proram iven belo-
typedef enum rade6HOOI>J!I>WO#T>J!I9
main45 6
J!I 19
1719printf4;159
-
5/22/2018 Technical Aptitude - 2
3/29
K. Hive the output for the follo-in proram.
define TL"E1 char main45
6
typedef char TL"E29 TL"E1 &9
TL"E2 y9
clrscr459 &72++9
y72++9
printf4;y59
C. Hive the output for the follo-in proram sement.
ifdef T#$E
int 0789endif
main456
int M789
printf4;M59
18. 0n the follo-in proram
includestdio.h3
main456
char @pIestn>@pource7;0 "ove Lou Iaddy;9
pIestn7malloc4strlen4pource559
strcpy4pIestn>pource59printf4;pIestn59
free4pIestn59
4a5ree45 fails
4b5trcpy45 fails4c5prints 0 love Lou Iaddy
4d5error
-
5/22/2018 Technical Aptitude - 2
4/29
11. What is the output for the follo-in proram
includestdio.h3 main45
6
char aA+BA+B>fla9 aA8BA8B7!9
fla744a77@a5PP4@a77aA8B559
printf4;fla59
28. ind the output of the follo-in proram
int @p>@q9
p74int @518889
q74int @528889printf4;4qQp559
!ns: +88
21. What does the statement int4@&AB545 indicate?
22. Which addressin mode is used in the follo-in statements:
4a5 RS0 J>++4b5 ROS J>!4c5 ROS R>!
!ns. 4a5 0mmediate addressin mode.4b5 #eister !ddressin Rode
4c5 Iirect addressin mode
2%. #Q2%2/ standard is used in ,,,,,,,,,,,,,.
!ns. erial 0DO
2*. o- are parameters passed to the main function?
2+. What does the file stdio.h contain?
-
5/22/2018 Technical Aptitude - 2
5/29
a5 functin definition
b5 function decleration
c5 both func. defn P func. decleration.
2F. sscanf is used for ?
2G. Remory. Ranaement in Operatin ystems is done by
a5 Remory Ranaement $nit
b5 Remory manaement soft-are of the Operatin ystem
c5 ernel
!ns: 4b5
2K. What does the statement strcat42>15 do?
2C. T/)4Transmission /ontrol )rotocol5 is /onnection Oriented and used in
,,,,,,,,,,,,,, layer?
%8. 0)40nternet )rotocol5 is connectionless and used in ,,,,,,,,,,,,,,,,, layer?
%1. or "!N Net-ro( layer is not required. Why?
%2. What is done for a )ush opertion?
!ns: ) is decremented and then the value is stored.
%%. Iescribe the follo-in structures as "0OD0"OD0OD"0"O
4a5 tac(
4b5 Uueue
/ prorams are as(ed in this section
1.Write a proram to insert a node in a sorted lin(ed list.
2.Write a proram to implement the ibonacci series.
-
5/22/2018 Technical Aptitude - 2
6/29
%.Write a proram to concatenate t-o circular lin(ed lists into a sinle circular list.
*.! function even,odd,difference45passes the array of elements.Write a proram tocalculate the difference of the t-o sums of -hich one sum adds the elements of odd ones
and another adds the elments of even ones.
+.Write a proram to reverse a lin(ed list.
ection /
Uuestions on / are as(ed here
Jase class has some virtual method and derived
class has a method -ith the same name. 0f -e initiali'e the base class pointer -ith
derived
obMect>.callin of that virtual method -ill result in -hich method bein called?
a. Jase methodb. Ierived method..
!ns. b
!lmost all questions are of this (ind. Ho throuh virtual functions concepts in / and
ho- the pointers to functions -ould be handled.
1. The startin location of an array is 1888. 0f the arrayA1..+D...*B is stored in ro- maMororder> -hat is the location of element A*>%B. Each -ord occupies * bytes.
2. 0n a tertiary tree> -hich has three childs for every node> if the number of internal nodesare N> then the total number of leaf nodes are
%. E&plain the term ;locality of reference; ?
*. What is the lanuae used for !rtificial 0ntellience
!ns: lisp
+. What is the character set used in V!S! 2.8 ?
!ns: $nicode
-
5/22/2018 Technical Aptitude - 2
7/29
F. char a 78&!! 9 int b 9
b 7 4int5 a 9
b 7 b 33 * 9 printf4;b59
What is the output of the above proram sement ?
G. struct s1 6 struct 6 struct 6 int &9 s2 s% y9
o- does one access & in the above iven structure definition ?
K. Why there is no recursion in ortran ?
!ns. There is no dynamic allocation.
C. What is the -orst case comple&ity of Uuic( sort?
!ns. O4n25
18. What -ill be sequence of operatin system activities -hen an interrupt occurs ?
11. 0n a sequential search> -hat is the averae number of comparisons it ta(es to searchthrouh n elements ?
!ns: 4n15D2.
12. What is the si'e of the array declared as double @ A+B ?
!ns. + @ si'eof 4 double @ 5
1%. ! binary search tree -ith node information as 1>2>%>*>+>F>G>K is iven. Write the result
obtained on preorder traversal of the binary search tree ?
!ns : +%12*GFK
1*. 0f si'e of the physical memory is 2%2Q1> then -hat is the si'e of the virtual
-
5/22/2018 Technical Aptitude - 2
8/29
memory ?
1+. Q3 !8J
!Q3 JJX8
JQ3 !!X1o- many strins of lenth + are possible -ith the above productions?
1F. 4%@*8CF1+@2+F%@1F%5. o- many 1s are there in the binary representation of
the result ?
!ns. 18
1G. 0n memory mapped 0DO ho- is 0DO is accessed ?
1K. What is the use of !"E in K8K+ ?
!ns To latch the lo-er byte of the address.
1C. 0f the loical memory of K 182* is mapped into %2 frames> then the number of bits
for the loical address are,,,, ?
!ns. 1%
28. /onte&t free rammar is useful for -hich purpose ?
21. 0n ternary number representation> numbers are represented as 8>1>Q1.4ere Q1 isrepresented as 1 bar.5 o- is %+2DC represented in ternary number representation?
22. There are processes -hich ta(e *>1>K>1 machine cycles respectively. 0f these aree&ecuted in round robin fashion -ith a time quantum of 1> -hat is the time it ta(e for
process * to complete ?
!ns. C
2%. The minimum frequency of operation is specified for every processor because......
a5for interfacin slo- peripherals
b5dynamic memory refreshin.
c5to ma(e compatible -ith other processor.
-
5/22/2018 Technical Aptitude - 2
9/29
2*. or lin(ed list implementation > -hich search is not applicable ?
!ns: Jinary search.
2+. Each character is represented by G bits> 1 bit is used to represent error bit and another
bit for parity. 0f total number of bits transmitted is 1288 bits> then -hat is the number ofsymbols that can be transmitted ?
!ns: 1%%
2F. E&plain set associativity of cache ?
2G. Write the postfi& form of the follo-in e&pression .
!AA4J/54IE5@BDHB
2K. What is the function of the lin(er?
2C. void f4int y5
6 struct s @ptr9
ptr 7 malloc 4si'eof 4struct5CC@si'eof4int559
struct s6
int i9 float p9
9
-hen free 4ptr5 is e&ecuted> then -hat -ill happen?
%8. To concatenate t-o lin(ed lists strins> the order is O415 is obtained for -hat (ind of
list?
1. Hiven the follo-in statement
enum day 7 6 Man 7 1 >feb7*> april> may
What is the value of may?
-
5/22/2018 Technical Aptitude - 2
10/29
4a5 *
4b5 +
4c5 F4d5 11
4e5 None of the above
2. ind the output for the follo-in / proram
main
6int &>M>(9
M7(7F9&729
&7M@(9printf4; &59
%. ind the output for the follo-in / proram
fn f4&56 if4&785
return9
-
5/22/2018 Technical Aptitude - 2
11/29
-
5/22/2018 Technical Aptitude - 2
12/29
-
5/22/2018 Technical Aptitude - 2
13/29
-
5/22/2018 Technical Aptitude - 2
14/29
-
5/22/2018 Technical Aptitude - 2
15/29
-
5/22/2018 Technical Aptitude - 2
16/29
-
5/22/2018 Technical Aptitude - 2
17/29
-
5/22/2018 Technical Aptitude - 2
18/29
-
5/22/2018 Technical Aptitude - 2
19/29
-
5/22/2018 Technical Aptitude - 2
20/29
-
5/22/2018 Technical Aptitude - 2
21/29
else f4&Q15&9
*. ind the output for the follo-in / proram
i728>(789
for4M719Mi9M71*@4iDM556(7M18?*:%9
printf4; (59
!ns. (7*
+. ind the output for the follo-in / proram
int i 718main45
6int i 728>n9
for4n789n7i956int i7189
i9
printf4; i59
!ns. i728
-
5/22/2018 Technical Aptitude - 2
22/29
F. ind the output for the follo-in / proram
int &7+9
y7 &Py
G.ind the output for the follo-in / proram
L7189
if4 L3C PP LY718 PP L3185
6printf4; L59
elseprintf4; L59
!ns. 1%
K. ind the output for the follo-in / proram
f74&3y5?&:y
a5 f points to ma& of & and y
b5 f points to min of & and y
c5error
!ns. 4a5
C. What is the si'eof4lon int5
4a5 * bytes
4b5 2 bytes
4c5 compiler dependent
4d5 K bytes
18. Which of the function operator cannot be over loaded
4a5 74b5 ?:
4c5 77
4d5 @
-
5/22/2018 Technical Aptitude - 2
23/29
11. ind the output for the follo-in / proram
main45
6int &72>y7F>'7F9
&7y77'9printf4&5
ection / 4)rorammin (ills5
!ns-er the questions based on the follo-in proram
T#$/T IO$J"E"0T
6 IO$J"E /"0NEI0NT IET9 "0T SO0I
T#$/T )#ES0O$9 4JE H0SEN !NI ! )#O/EI$#E TO IE"ETE5T#$/T NEW9 4!N E"ERENT W0"" JE H0SEN5
IE"ETE4T#$/T NOIE56NOIEQ)#ESQNET NOIEQNET9
NOIEQNETQ)#ES NOIEQ)#ES9
04NOIE77E!I5
NOIE
U. 0n -hat case the prev -as
4a5 !ll cases
4b5 0t does not -or( for the last element4c5 0t does not for the first element
4d5 None of these
!ns-er the questions based on the follo-in proram
SO0I $N/T0ON40NT 5
67289
SO0I $N/T0ON 40NT 5
0NT RR>N7PR
N 7
NQ7189
-
5/22/2018 Technical Aptitude - 2
24/29
U. What is the output of the follo-in proram
main456 int var72+>varp9
varp7Pvar9
varp p 7 189fnc4varp5
printf4;varp59
4a5 28>++
4b5 %+>%+
4c5 2+>2+
4d5++>++
ection I
1. a72> b7%> c7F
ind the value of cD4ab5Q4ab5Dc
2. What does the he&anumber EGK in radi& G.
4a5 12*++4b5 1*1+%
4c5 1*2+F
4d5 1%+*14e5 1%1112
!ns. 4d5
%. 18 : * seconds :: ? : F minutes
!ns. C88
*. U is not equal to 'ero and ( 7 4U & n Q s5D2.What is n?
4a5 42 & ( s5DU
4b5 42 & s & (5DU
-
5/22/2018 Technical Aptitude - 2
25/29
4c5 42 & ( Q s5DU
4d5 42 & ( s & U5DU
4e5 4( s5DU
+. rom the follo-in statements determin the order of ran(in
R has double the amount as I
L has % rupess more than half the amount of I!ns. Iata insuffiecient
Uuestions F Q 18 are to be ans-ered on the follo-in data
! causes J or /> but not both
occurs only if J occurs
I occurs if J or / occursE occurs only if / occurs
V occurs only if E or occursI causes H> or both
occurs if E occurs
H occurs if occursF. 0f ! occurs -hich of the follo-in must occurs
0. and H
00. E and 000. I
4a5 0 only4b5 00 only
4c5 000 only
4d5 0>00> P 0004e5 0 P 00 4or5 00 P 000 but not both
!ns. 4e5
G. 0f J occurs -hich must occur
4a5 I
4b5 I and H
4c5 H and 4d5 and H
4e5 V
!ns. 4a5
-
5/22/2018 Technical Aptitude - 2
26/29
K. 0f V occurs -hich must have occured
4a5 E
4b5 either J or /4c5 both E P
4d5 J
4e5 both J P /
!ns. 4b5
C. Which may occurs as a result of cause not mentioned
0. I
00. !000.
4a5 0 only
4b5 00 only
4c5 0 P 004d5 00 P 000
4e5 0>00 P 000
!ns. 4c5
18. E occurs -hich one cannot occurs
4a5 !
4b5
4c5 I4d5 /
4e5 V
!ns. 4b5
Jac( to top
main456
int aAB76 2>*>F>K>18 9
int i9
chane4a>+59
-
5/22/2018 Technical Aptitude - 2
27/29
for4 i 7 89 i 7 *9 i5
printf4;=n aAiB59
chane4 int @b> int n56
int i9
for4 i 7 89 i n9 i5 @4bi5 7 @4bi5 +9
1*. Hiven the follo-in c proram
func45
6
static int i 7 189
printf4;i59i9
What is the value of i if the function is called t-ice ?
1+. Hiven the follo-in c proram
func4int @i> int@M56@i7@i @ @i9
@M7@M@ @M9
main45
6 int i 7 +> M 7 29 func4Pi>PM59
printf4; M59
What is the output?
1F. Hiven pae table> pae si'e and offset find the correspondin physical address ?
1G. 0n a memory chip *( si'e and 1Fbit -ords are to be stored. No of address and data lines required is:
%K. What is the difference bet-een c and c?
-
5/22/2018 Technical Aptitude - 2
28/29
a50n c -e can define variables in the middle
b5dynamic scopin
%C. Which of the follo-in is correct
a5 ynchronous tranmission needs more bad-idth than !sychronous.
b5 0nasychronous transmission > the time is associated -ith data itself.....
Jac( to top
28. Output of the follo-in proram is
main45
6int i789
for4i789i289i56s-itch4i5
case 8:i7+9case 1:i729
case +:i7+9
default i7*9brea(9
printf4;;>i59
a5 8>+>C>1%>1Gb5 +>C>1%>1Gc5 12>1G>22
d5 1F>21
e5 ynta& error
!ns. 4d5
21. What is the ouptut in the follo-in proram
main456char c7QF*9
int i7Q%2
unsined int u 7Q1F9if4c3i5
6printf4;pass1>;59
if4cu5
printf4;pass2;59
-
5/22/2018 Technical Aptitude - 2
29/29
else
printf4;ail2;59
else
printf4;ail159
if4iu5printf4;pass2;59
else
printf4;ail2;5
a5 )ass1>)ass2
b5 )ass1>ail2c5 ail1>)ass2
d5 ail1>ail2
e5 None of these
!ns. 4c5