You are on page 1of 19

Course Code : MCS-011

Course Title : Problem Solving and Programming


Assignment Number : MCA(1)/011/Assign/2012
Assignment Mars : 100
!eig"tage : 2#$
%ast &ate o' Submission : 1#
t"
A(ril) 2012

('or *anuar+ session)
T"ere are 'ive ,uestions in t"is assignment) -"i." .arries /0 mars0 1est 20 mars
are 'or viva-vo.e0 Ans-er all t"e ,uestions0 2ou ma+ use illustrations and diagrams
to en"an.e t"e e3(lanations0 Please go t"roug" t"e guidelines regarding assignments
given in t"e Programme 4uide 'or t"e 'ormat o' (resentation0

5uestion 1:
(a) Write a simple program to find the size of different basic data types in C. (# Mars)
(b) Write a program in C for showing working of different logical operator in C.
Your program should guide users with proper message/menu on the console. (# Mars)
(c) Write a function to find the area of a triangle whose length of three sides is given.
(# Mars)
5uestion 2:
(a) Write a C program to print the following triangle
!
!!!
!!!!!
!!!!!!!
!!!!!!!!!
!!!!!!!!!!!!
(# Mars)
(b) Write a C program to read the internal test marks of "# students in a class and
show the number of students who have scored more than #$% in the test.
&ake necessary assumptions. (# Mars)
5uestion 6:
(a) What is calling by reference' (ow it is different from call by value'
Write a C function to swap two given numbers using call by
reference mechanism. (# Mars)
(b) Write a C program for addition of two )*) matrices. (# Mars)
(c) Write a C program for finding +C, of two given numbers. (# Mars)
5uestion 7:

(a) Write C programme for followings
i) Counting the number of words in a given string
ii) Concatenating two given strings
(28# 910 Mars)
(b) What is a pointer' -.plain pointer arithmetic with e.ample. /lso e.plain use of
malloc function in C programming with an example (10 Mars)
5uestion #:
(a) -.plain recursion. /lso write a C program for 0ower of (anoi problem with
a e.ample of 1 disks . (10 Mars)
(b) Write a C program using structure to find students grades in a class.
&ake the necessary assumptions. (10 Mars)
"
Course Code : MCS-012
Course Title : Com(uter :rganisation and Assembl+
%anguage Programming
Assignment Number : MCA(1)/012/Assign/2012
Ma3imum Mars : 100
!eig"tage : 2#$
%ast &ates 'or Submission : 1#
t"
A(ril)

2012
T"ere are 'our ,uestions in t"is assignment) -"i." .arries /0 mars0 1est 20 mars
are 'or viva vo.e0 2ou ma+ use illustrations and diagrams to en"an.e t"e
e3(lanations0 Please go t"roug" t"e guidelines regarding assignments given in t"e
Programme 4uide 'or t"e 'ormat o' (resentation0 Ans-er to ea." (art o' t"e
,uestion s"ould be .on'ined to about 600 -ords0
5uestion 1:
(a) 2erform the following arithmetic operations using binary signed "3s complement notation for
integers. You may assume that the ma.imum size of integers is of 4$ bits including the sign
bit. (2lease note that the numbers given here are in decimal notation)
(6
Mars)
i) /dd 5 167 and "8$
ii) 9ubtract 1#8 from 5 #8
ii) /dd "#8 and "##
2lease indicate the overflow if it is occurs.
(b) Convert the he.adecimal number :/ ;; C6 into binary< octal and decimal. (1 Mar)
(c) Convert the following string into e=uivalent /9C>> code 5 ?Copyright @ "$$4 A "$44B.
>nclude /9C>> code of spaces between words in the resultant /9C>>. /re these codes same as
that used in Cnicode'
(2
Mars)
(d) ,esign a logic circuit that accepts a four digit binary input and creates an odd parity bit< a
sign check bit and a more than two zero value test bit. 0he odd parity bit is created for the
four bit data. 0he sign bit is set to 4 if the left most bit of the data is 4. Dero value bit is set to
4 if three of the input bits are zero. ,raw the truth table and use EAmap to design the ;oolean
e.pressions for each of the output bits. ,raw the resulting circuit diagram using /F, 5 GH 5
FG0 gates.
(# Mars)
)
(e ) / se=uential circuit has two , flip flops / and ;< two inputs x and y and one output z. :lip
flops input e=uations and the circuit output are as follows

(# Mars)
,/ I x ;
,; I y / J x /
z I / J ;
(i) ,raw the circuit diagram for the above.
(ii) 0abulate the state table for the flip flops.
(f) ,esign a floating point representation of )" bits closer to >--- K#1 format e.cept that the
e.ponent of the representation should be of 1 bits only. You may assume that the mantissa is
in normalised formL the e.ponent bias of KL and one bit is used for the sign bit. Hepresent the
number (76.4"#) 4$ using this format .

(7 Mars)
5uestion 2:
(a) / H/& has a capacity of 81 E * 81.
(2
Mars)
(i) (ow many data input and data output lines does this H/& need to have'
(ii) (ow many address lines will be needed for this H/&'
(b) Consider a H/& of "#8 words with a word size of 48 bits. /ssume that this memory have a
cache memory of 7 ;locks with block size of )" bits. :or the given memory and Cache in the
statements as above< draw a diagram to show the address mapping of H/& and Cache< if
direct memory to cache mapping scheme is used.
(7
Mars)
(c) You want to read a file from a disk. -.plain how the >/G will be performed if (7 Mars)
(i) >nterrupt ,riven >nput/ Gutput 9cheme is used.
(ii) ,irect &emory /ccess is used.
(d) :ind the average disk access time that reads or writes a #4" byte sector. /ssume that the disk
rotates at 4"$$$ rpmL each track of the disk has 4$$ sectors and data transfer rate of the disk
is 4$$ &;/second. (2lease calculate data transfer time for the disk in addition to the seek
time and latency time). /lso find out what is meant by the controller overhead in the conte.t
of disk access time.
(2 Mars)
(e) What is the purpose of :/0' -.plain. (2 Mars)
(Word limit for the answer is "$$ words GFMY)
1
(f) ,efine each of the following term. -.plain the main purpose / use / advantage of the term.
(Word Mimit for answer of each part is #$ words GFMY)

(; Mars)
(i) ,>&&
(ii) MC, monitors
(iii) Core of a processor
(iv) 9/0/
(v) H/>, level #
(vi) Done ;it Hecording (D;H) in the conte.t of disks
5uestion 6:
(a) /ssume that a new programming language has been developed that have an e.tensive use of
data and instruction arrays. 9uch a programming language re=uires efficient handling of
arrays. 0his language supports call by reference as arrays are being passed by reference. 0he
language does not support recursion. You have been assigned the task to design the
addressing modes for a machine that supports this new programming language. Mist four
addressing mode that must be supported by such a machine. +ive Nustification of the selection
of each of the addressing modes.
(7 Mars)
(b) /ssume a hypothetical machine that has only 2C< /C< &/H< >H< ,H and :lag registers. (you
may assume the roles of these registers same as that are defined in general for a von
Feumann machine) 0he instruction of this machine can take only one direct operand. >t has
an instruction
>FC OL // increments the operand stored at location O. 0he result of increment is left in /C.
9how the steps for fetch and e.ecute operations of the instructions using suitable microA
operations. &ake and state suitable assumptions< if any.
(# Mars)
(c) /ssume that you have a machine as shown in section )."." of ;lock ) having the microA
operations as given in :igure 4$ on page 8" of ;lock ). Consider that H4 and H" both are 7
bit registers and contains 4444$4$4 and $4$44$4$ respectively. What will be the values of
select inputs< carryAin input and result of operation if the following microAoperations are
performed' (:or each microAoperation you may assume the initial value of H4 and H" as
defined above)
(2 Mars)
4) 9ubtract H4 from H"
") >ncrement H4
)) 9hift Meft H4
1) /dd H4< H" with an initial input carry bit as 4

(d) What are the different types of Control Cnits' -.plain the hardwired control
unit with the hep of a diagram. (6 Mars)
(Word limit is 4#$ words)
#
(e) What is an instruction pipeline' What are the problems of an instruction pipeline'
(ow can you optimise the instruction pipeline in H>9C processors' (6 Mars)
(Word limit 4#$ words)
(f) Why do you use large numbers of registers in H>9C processors' /ssume that a H>9C machine
has 81 registers out of which 7 are reserved for the +lobal variables. (ow will these registers
be used for parameter passing for subroutine calls' -.plain with the help of diagram


< (6 Mars)
5uestion 7:
(a) Write an 7$78 assembly Manguage 2rogram with proper comments to concatenate two strings
that are available in the memory. 0he concatenated string is stored in memory location
different from the two strings. You may assume that the end of a string character is PQ3. &ake
suitable assumptions< if any.
(/
Mars)
(b) Write a program in 7$78 assembly language to convert a two digit number< which is stored in
the memory as /9C>> digits in two consecutive bytes< into an e=uivalent packed ;C,
number. 0he ;C, number should be left in the /M register. :or e.ample< if the two memory
locations contain characters P13 and P#3 respectively< the program will output 0100 0101 in the
/M register.
(; Mars)
(c) Write a simple subroutine that accepts a parameter value. 0he subroutine checks if the passed
parameter value is Dero ($). >f the value is D-HG the subroutines output a string ?,ivide
GverflowB and terminates the e.ecution< other wise it allows the calling program to continue.

(; Mars)
8
Course Code : MCS-016
Course Title : &is.rete Mat"emati.s
Assignment Number : MCA(1)/016/Assign/2012
Assignment Mars : 100
!eig"tage : 2#$
%ast &ate o' Submission : 1#
t"
A(ril)2012

T"ere are eig"t ,uestions in t"is assignment) -"i." .arries /0 mars0 1est 20
mars are 'or viva-vo.e0 Ans-er all t"e ,uestions0 2ou ma+ use illustrations and
diagrams to en"an.e t"e e3(lanations0 Please go t"roug" t"e guidelines regarding
assignments given in t"e Programme 4uide 'or t"e 'ormat o' (resentation0
5uestion 1:
Mars ( 7 = 7 =7)

a) &ake truth table for
i) RpS(= R r) Rp =
ii) RpSr R= Rp Rr

b) What are conditional connectives' -.plain use of conditional connectives with an
e.ample.

c) Write down suitable mathematical statement that can be represented by the following
symbolic properties.
i) ( .) ( y) ( z) 2
ii) (.) ( y) ( z) 2
5uestion 2:
Mars (7 = 7)

a) What is proof' -.plain method of direct proof with the help of one e.ample.
b) 9how whether 4K is rational or irrational.

5uestion 6:
Mars (# = #)
K
a) What is ;oolean algebra' -.plain how ;oolean algebra methods are used in logic circuit
design.
b) >f p an = are statements< show whether the statement T(RpS=) (=)U S (p R=)
is a tautology or not.
5uestion 7:
Mars (7 = 7 =2)
a) &ake logic circuit for the following ;oolean e.pressions
i) (.V.y J z) J (.JyJz)V J(.JyJz)
ii) ( .WJy).(yVJ z).(yJzVJ.V)

b) What is dual of a ;oolean e.pression' :ind dual of boolean e.pression of the
output of the following logic circuit
c) 9et /<; and C are
/ I X4< "< )< 1< #<8<6<46<4#Y< ; I X 4<"<#<""<))<66 Y and C X "< #<44<46<4#Y<
:ind / ;C and / ;C
5uestion #: Mars (6=7 =7)
a) ,raw a Zenn diagram to represent followings
7
i) (/ ;) (CR;)
ii) (/;) (; C)
b) +ive geometric representation for following
i) H . X )Y
ii) XA4< A") . (A)< A))
c) What is countere.ample' -.plain the use of countere.ample with the help of an e.ample.
5uestion ;:
Mars (#=7)

a) What is inclusionAe.clusion principle' /lso e.plain one application of inclusionAe.clusion
principle.
b) :ind inverse of the following functions
i) f(.) I
)
#
)

x
x
) x
ii) f(.) I
1
K
"
)

x
x
" x
5uestion >:
Mars ( 7 = 6 = 6)
a) :ind how many 1 digit numbers are even' (ow many 1 digit numbers are composed of odd
digits.
b) (ow many different 4# persons committees can be formed each containing at least
" /ccountants and at least ) &anagers from a set of 4$ /ccountants and 4" &anagers.
c) What is a function' -.plain one to one mapping with an e.ample.
5uestion /:
Mars ( 7 =7 =2)

a) What is ,emorgan3s Maw' /lso e.plain the use of ,emorgen3s law with e.ample'
b) (ow many ways are there to distribute 4# district obNect into # distinct bo.es with
i) /t least two empty bo..
ii) Fo empty bo..
c) >n a fifteen =uestion true false e.amination a student must achieve five correct
answers to pass. >f student answer randomly what is the probability that student will fail.
6
Course Code : MCS-017
Course Title : S+stems Anal+sis and &esign
Assignment Number : MCA(1)/017/Assign/2012
Ma3imum Mars : 100
!eig"tage : 2#$
%ast &ates 'or Submission : 1#t" A(ril) 2012
T"is assignment "as 'our ,uestions0 Ans-er all ,uestions0 ?a." ,uestion is o' 20
mars0 1est 20 mars are 'or viva vo.e0 2ou ma+ use illustrations and diagrams to
en"an.e t"e e3(lanations0 Please go t"roug" t"e guidelines regarding assignments
given in t"e Programme 4uide 'or t"e 'ormat o' (resentation0
5uestion 1: -.plain the =ualifications of a 9ystems /nalyst. (20 Mars)
5uestion 2: ,raw ,:,s (upto )
rd
level) for a 9tudent >nformation 9ystem.
&ake assumptions< wherever necessary. (20 Mars)
5uestion 6: ,raw -H, for a 9tudent >nformation 9ystem. &ake assumptions<
wherever necessary. (20 Mars)
5uestion 7: -.plain the process of implementation of &>9. (20 Mars)
4$
Course Code : MCS-01#
Course Title : Communi.ation Sills
Assignment Number : MCA(1)/01#/Assign/2012
Ma3imum Mars : 100
!eig"tage : 2#$
%ast date o' submission : 1#
t"
A(ril)

2012
Ans-er all ,uestions0 Please go t"roug" t"e guidelines regarding assignments given
in t"e Programme 4uide 'or t"e 'ormat o' (resentation0
5uestion 1:
Head the following passage carefully and answer the =uestions that follow
0hanatos< the god of death< is one of the second generation deities of the +reek pantheon.
:rom 0hanatos we get ?thanatophobiaB the abnormal< irrational fear of death. >t may be
fear of the pain and physical agony of dyingL or the fear of nothingness after death. >f
such fear becomes an obsession that cripples normal life< psychiatric help may be
necessary.
/nother more familiar word from the same root is ?euthanasiaB. >n common language it
is called ?mercy killingB. >t can mean directly causing death by lethal drugs (active) or
withholding of treatment (passive). 0he Fetherlands has been the most liberal in
accepting euthanasia as a measure to help the patient. 0he ,utch e.perience with
euthanasia paved the way for further debate and reform in the Western world.
>n 46K4< the ,utch physician +eertruda 2ostma administered a lethal dose of medication
to end the life of her K7AyearAold mother. 9he reported the matter to the authorities. 9he
was charged with mercy killing and was given a suspended sentence of one week. >n
4671< ,r 2.M. 9choonheim euthanized his 7#AyearAold patient< who had already signed a
?living willB asking to be euthanized if she could not return to a dignified life. When she
knew that her future was bleak< she re=uested to be put to sleep ?as soon as possibleB.
0he doctor acceded to her re=uest and then notified the authorities.
>n his defence< the doctor pleaded that he had a conflict of duties< between his duty to the
patient and his legal duty not to kill. 0he ,utch supreme court accepted the plea of
44
conflict of duty leading to irresistible necessity. &eantime< the Hoyal ,utch &edical
/ssociation listed the criteria to be observed when resorting to euthanasia. 0hese
included the patient3s e.plicit< persistent re=uest based on full informationL hopeless
sufferingL absence of any alternativeL and the concurrence of a second physician.
-uthanasia in the C9 is closely linked to the name ,r Eevorkian. (e introduced ?a death
machineB which terminally ill people can trigger to cause their own death. Eevorkian
called it ?thanatronB. 0wo patients were assisted by this machine. ;ut then his licence
was revoked and he had no access to the chemicals for thanatron. (e introduced
?mercitronB< which uses carbon mono.ide in a gas mask.
Gregon state< while declaring euthanasia illegal< passed the ,eath with ,ignity /ct in
466K. 0his re=uires a patient to voluntarily administer lethal medication himself<
prescribed by a physician. 0he patient< not the relatives< must ask for assistance to die.
0he criteria were stringent to ensure the law was not misused.
Canada3s stand on euthanasia came into focus with the celebrated case of 9ue Hodriguez
in 466". 9he was a victim of a terminal disease. 9he went to court to seek permission to
end her life by euthanasia. >n a famous outburst< she asked< ?Whose body is this' Who
owns my life'B 9he carried her fight to the supreme court of Canada< but didn3t win the
case. 9he committed suicide later.
&eanwhile< >ndia seems to be catching up. 0he law commission has recommended that
?a terminally ill man or a man in a persistent vegetative state can be permitted to
terminate it by premature e.tinction of lifeB. 0he Eerala government has received a
similar recommendation from its law reforms commission. / test case has been filed this
year by K$AyearAold Earibasamma in the Earnataka high court seeking mercy killing.
0o me< the thought of euthanasia has become less disturbing after > read that Eing +eorge
Z of -ngland died in 46)8 after a lethal inNection that Mord ,awson< the royal physician<
administered. (ZH Farayanaswami)
/nswer the =uestions given below
(i) +ive two reasons cited in the passage why people are scared of death. (2 Mars)
(ii) Which county triggered the euthanasia debate in the western world'
What is its status in >ndia today' (Mars 1=6)
(iii) What is the author3s own feeling about euthanasia' 2ick out that line
to illustrate your answer. (2 Mars)
(iv) What is the criteria to be observed when resorting to euthanasia as per the Hoyal
,utch &edical /ssociation' (ow is it different from that of Gregon 9tate'
Which is better and why.
(# Mars)
(v) +ive a title to the passage. 9ay why you decided on the title. (2 Mars)
4"
(vi) What are your own views about euthanasia' Write in about #$ words. (# Mars)
5uestion 2:
Head the following letter and give a reply to it keeping in mind the following points
(10
Mars)
A -.press regret
A +ive a valid reason for not sending the books
A 9ay when you3ll send them by
A 9uggest ade=uate compensation
0he &anager
/shish 2ublishing (ouse
#< /nsari Hoad< ,aryaganN< Few ,elhi< ,elhi 44$$$" $44 ")"K 1$#$ ()
,ear 9ir/&adam
Gn ")
rd
[une > ordered "# copies of P-nglish in Cse3 by /. M. Ehanna to be sent to me at
the above address.
0wo months later< these books have not yet been received.
> would be grateful if you could look into this matter and ensure that the books reach me
soon as possible.
Yours faithfully
+orang Zinayak
,irector
5uestion 6:
0his is the beginning of a presentation on Pmock interviews3. Complete it in about 4$$
words.
(10 Mars)
Mo. @ntervie-
+ood &orning Madies and +entlemen.
4)
Tutelage
-nglish Manguage Mearning
4#< Civil Mines<
,elhi A44$$#8
0el $44A""#$")$7
,ate "# /ugust "$44
/ll of us must have at some stage faced interviews and may have to do so at some point
in life. 0his re=uires one to be well prepared. &any a time people opt for professional
training to enhance communication skills and preparation for the interview. ;ut if one
doesn3t have the time and finances to support that< what does one do'
(erein lies the importance of mock interviews. 0hey simulate an interview setting and
train the person in facing the actual interview with confidence.
5uestion 7:
Cse your imagination and creativity to complete the sentences in the miniAcompositions
below.
(10 Mars)
a) 9tudents often wonder whether it3s worth attending special classes to improve their
-nglish.
> would say it depends on \\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
9ome 9tudents\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
Gthers< however< \\\\\\\\\\\\\\\\\\\\\\\\\\\.
>n some ways<\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
/ll in all< > think \\\\\\\\\\\\\\\\\\\\\\\\\\\..
b) 0here are many reasons why > love \\\\\\\\.\\\\\\\\\\\
Gne reason is\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
/nother..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
What is more<\\\\\\\\\\\\\\\\\\\\\\\\\\\\...
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
/bove all<\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\..
5uestion #:
Complete this paragraph filling up the gaps with suitable words from the bo..
(1# Mars)
developimpact overcome conversation
influences shyness master professional
difficult recognize break start
discovered successful perceive
41
9mall talk is crucial in any relationship. -veryday conversation can make or
AAAAAAAAAAAAAAAA relationships in our personal and AAAAAAAAAAA lives. Cnfortunately<
most people donWt realize how important small talk is< and hence do not do anything to
AAAAAAAAAAAAAAA or improve this skill. ,eveloping the ability to make small talk is not
as AAAAAAAAAAA as many other work related skills once we AAAAAAAAAAA its importance
and worth.
/ 9tanford Cniversity 9chool of ;usiness study showed its AAAAAAAAAAAA on business
success. >t tracked &;/Ws 4$ years after graduation< and AAAAAAAAAAAA]]] that grade
point averages had no bearing on their success but AAAAAAAAAAAAAAA did. &ost
AAAAAAAAAA were those who could make conversation with anyone from strangers< to
secretaries< to bosses to customers.
9mall talk has a great impact on your success in WpersonalW relationships< because it
AAAAAAAAAAAAAAAA how others see you in terms of intelligence and confidence. &ost
people AAAAAAAAAAAAA good conversationalists as more intelligent and confident.
,espite the importance of small talk< most people donWt do it well. Gne maNor reason is
AAAAAAAAAAAAAAAAA and another common reason is not knowing how to AAAAAAAAAAAA
a conversation. 0here are also some who do not have anything to say. /ll of these
difficulties can be AAAAAAAAAAAA< once you decide to AAAAAAAAAAAAAAA this art.
5uestion ;:
;y adding disA< imA< unA< inA and misA to the words given below< form words of opposite
meaning (10 Mars)
i understand vi Nudge .i sane Ovi &ature
ii agree vii movable .ii clear Ovii courteous
iii audible viii comfort .iii necessary .viii conduct
iv voluntary i. rest .iv possible .i. ;ehave
v continue O earthly .v pious .. (uman
5uestion >:
Complete the sentences. Cse must, mustnt, and neednt. (# Mars)

i) (e needs an inNection before he goes on holiday.
(e \\ \.\\make an appointment with the doctor.
ii) You can get your visa to -gypt in a day.
You \ \\\..get it yet< as your trip is late ne.t month.
iii) > need to go to Mondon very early tomorrow.
>\\ \\\.stay up late.
iv) >t isn3t necessary for her to check in at the airport at 8.)$.
9he\\ \\\\.check in until K.$$.
v) >3d like to do a little shopping on the way to the airport.
Fo< you\ \\\\.< or you3ll miss your flight to Few York.
5uestion /:
4#
2ut the verbs given in brackets in the simple past tense (1# Mars)
Gne morning /kbar \\\\..(go) for a walk with 2rince 9alim and ;irbal. /fter some
time they \\\..(come) to the bank of a river. >t \\\\.(be) a hot morning and they
\\\..(sit) down in the shade of a tree. / few minutes later /kbar\\\..(say)< ?9hall
we go and bathe in the river'B ;irbal put his hand into the water and \\\..(say)< ?>
wouldn3t like to bathe.B
/kbar and 2rince 9alim \\\..(take) off their clothes and \\\\.(give) them to
;irbal. 0hen they \\\..(get) into the water and\\\\\(bathe) in it.
/kbar\\\.(say) to 2rince 9alim< ?;irbal is standing in the sun and holding our
clothes. (e looks like a washerman3s donkey.B /kbar\\\\\..(call) out to ;irbal
and \\\\\(say)< PYou3re carrying a donkey3s load.3 ;irbal\\\\.(bow) and very
respectfully \\\\.(say)< ?Fo sir< >3m carrying the loads of two donkeys.B
5uestion B:
:ill in the blanks with the prepositions of time such as in, on, at, by, from,
for, during, until, to: (# Mars)
i) -lectricity failed twice\\\\\..the film show.
ii) Wait here\\\\\\. > come back.
iii) 0he shops are closed\\\\\0uesday.
iv) 9he married\\\\\..the age of "$.
v) 0here was no one to look after him\\\.his old age.
vi) We had finished our homework\\\\\.afternoon.
vii) We can walk this distance\\\\\\\.an hour.
viii) (e learnt to drive a car\\\\.the summer vacation.
i.) 0he shop remains open\\\\\\4$am\\\.Kpm.
.) > hope to finish the work\\\\..tomorrow.
48
Course Code : MCS%-01;
Course Title : @nternet Con.e(ts and !eb &esign
Assignment Number : MCA(1)/%01;/Assign/2012
Ma3imum Mars : 100
!eig"tage : 2#$
%ast &ates 'or Submission : 60
t"
A(ril)

2012
T"is assignment "as one ,uestion0 5uestion .arries 70 mars0 2our %ab 1e.ord -ill
.arr+ 70 Mars0 1est 20 mars are 'or viva vo.e0 2ou ma+ use illustrations and
diagrams to en"an.e t"e e3(lanations0 Please go t"roug" t"e guidelines regarding
assignments given in t"e Programme 4uide 'or t"e 'ormat o' (resentation0 Submit
t"e s.reens"ots also along -it" t"e .oding and do.umentation0
5uestion 1: Ans-er t"e 'ollo-ing ,uestions:
(i) Write the (0&M code for creating the following frames
(ii) Write a program to create to add a live clock in your web page using [ava9cript
(iii) ,evelop a web page having a rollover effect when an image changes if the user places the
mouse over it using Z;9cript.
(iv) Write a code in (0&M to create a table with 4$ records to show the
status of railway reservation having the following information
0rain Fo.
9tarting from
,estination



4K
,eparture 0ime
/rrival 0ime
(v) ,esign a web page with pull down menu with each option linking to specific page. /lso
show integration of images <audio and animation in one page.
>t should display the current date and time.
Course Code : MCS%-01>
Course Title : C and Assembl+ %anguage Programming
Assignment Number : MCA(1)/%01>/Assign/2012
Ma3imum Mars : 100
!eig"tage : 2#$
%ast &ates 'or Submission : 60
t"
A(ril)

2012
T"is assignment "as t-o se.tions0 Ans-er all ,uestions in ea." se.tion0 ?a." Se.tion
is o' 20 mars0 2our %ab 1e.ords -ill .arr+ 70 Mars0 1est 20 mars are 'or viva
vo.e0 2ou ma+ use illustrations and diagrams to en"an.e t"e e3(lanations0 Please
go t"roug" t"e guidelines regarding assignments given in t"e (rogramme guide 'or
t"e 'ormat o' (resentation0
Se.tion 1: C Programming %ab
5uestion 1:
Write an interactive program in C language to manage the Clini. >nformation with menu options
like 2atient3s details< ,octor3s details< ,octor3s and 2atient3s visits< Maboratory details< ;ills<
2ayments etc. using t"e 'ile "andling concepts. 0he application should be designed userA
friendly. (20 Mars)
Note: You must execute the program and submit the program logic, sample input and output
along with the necessary documentation for this question0 Assumptions can be made wherever
necessary.
Se.tion 2: Assembl+ %anguage Programming %ab
5uestion 1:
(a) Write a program in assembly language to sort an array of signed integers and search for
the presence of an item in the sorted array using linear search
(# Mars)
47
(b) ,evelop and e.ecute an assembly language program to find the (C: of two unsigned 48A
bit numbers.
(# Mars)
(c ) Write a program in assembly language for finding the largest number in an array of 4$
elements. (# Mars)

(d) +iven a string of characters terminated by $$(< write a assembly language program to
determine if it is a palindrome. >f WYesW output the message ^ 0he given string is a
palindrome. >f WFoW output the message ^Fo< it is not a palindrome^
(# Mars)

46

You might also like