Summer 09

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Summer 09 as PDF for free.

More details

  • Words: 1,063
  • Pages: 7
<1

5'09:2 FN:AN203/AD303 (1403) COMPUTING At"ll) Il\'FORt'\-lATICS Tjme: Three. hours Maxilnum .\.farks: 100

Answer FIVEquestions, taking Pu'''Y 1WOfrom Group A, AW 1WOfrom Group B and ALLfrom Group C. All parts of a question (a, b, etc.:) should be answered at one place. Answer should be brief and to-the-point and be supplemented

with neat sketches. Unnecessary long answer may result in loss of marks.

Any missing or wrong data may be assumed suitably giving proper justmcaiion. Figures C!n the right -hand side margin ilIdica.te full marks.

Group A 1. Assume that a cartesian co-ordinate point is represented by a pair of integers (X; Y) indicatingits X and Y co-ordinate value~. (a) Derme a class, named, Coord that would store X and Y co-ordinate values. 4 ( b) Overload the constructor of the Coord such that if no parameters exist,then the co-ordinate with default parameter (O,O)is created, otherwise a co-ordinate point with ~pecifiedX and Y values.should be created. 6 ( Tum Over)

(C) R~ad 10 pairs of integers and create the corresponding ten co-ordinate

5

points.

(d) Arrange the created co-ordinates question

2.

in the incr~asing

order

of part ( c) of this

of X co-ordinates.

5

(a) What is the.difference betweencall by.referenceand call by value mechanisms? illustrate the use of these (

two by using appropriate

C++ code segments. Which

is the mechanism used to pass o\;'ject parameters? (b)

10

, What do you .understand by method overloading? Explain its use by using an example. How is method overloading different from method overriding?

10

3. A classhas 30 students. Each student has a.name (up to 30 cha.racters) and roll number (integer). Each student appears in an eXaII'ination of 100 marks. The names of the students who have scored more than class average need to be printed.

6

(a) Draw flow-chart for the problem. I

( b) Write C++code for sohing the problem. The code . should be adequately documented.

14

4. .Ia) What are the advantages of storing data pertaining to an application in a data.basemanagementsystem compared to storing data in a fIle. 7 t' IJ I~ i

( b) What is a relational database managementsystem? 6

~~

(c) Why data in an RDBMS needs to be normalized? S'09:2FN:AN203/AD303 (1403)

.1

('

-

~

( 2 )

7

( Condnued)

S'OS

Group B 5.

(a) Usingablock diagram, show howtheCPU, the cache, the memory unit, and the.secondary storage units of a computer are interconnected. 8 . ( b) What do you understand by cache memory? Why is cache memory needed in a computer ? 6 (c) Write the truth table of a I-bit adder ,and draw the logic gate desilm of the I-bit adder. . 6 ~

6.

I

(a) What is theroleofanoperatingsysteminacomputer?

6

( b) \Vhat do you understand by booti..Tlg of a computer? What are the main activities that ar~ calTiedout by a computer during booting? 7 (c) What is a flip-flop? Draw the logic gate representation of a flip-nop. How is a flip-flop useful? 7

7. ( a) What do you understand

by fIle management?

Explain the organization of a fIle system using a 8 suitable schematic diagram. .

( b) Convert the following two hexadecimal numbers into' binary and decimal numbers: (j) 9F, and (Ii') E7. 6 (c)

8.

Perfonn the following hexadecimal oper~.tion~: (j) SF +AB, and (il) CD+BE.

6

( a) Explain how data are stored and accessed from a hard ili~

7

( b) What is BIOSin DOS? What is its role?

7

(c)

What are the important ways in which Windows operating system is differem from DOS?

5'09:2 FN:AN203/AD303 (1403)

( 3

)

6

( Tu.m Over)

GroupC 9. Choose the correct answer for the followingand write one sentence justitication for your choice: . lOx 2 (j) The packing of data and functions into a singleunit in a program is known as ( a) polymorphism ( b) abstraction ( c) encapsulation (d) inheritance (jj) The mechani~ of defming the same method with multiple types of parameters is known as (a) method overriding ( b) method overloading ( c) virtual method (d) method aggregation (jjj) The type of members of a class are by default ( a) private ( b) public ( c) protected (d) None of the abqve.

(jy) For the following C program, how many times is the for loop exeruted ? main() { int i; for (i = 0; i < 10 ;) printf("loop count=%d\n", i) ; } f

S'09:2FN:AN203/AD303(1403)

L,

( 4

)

( Continued)

I

(a) 9 (b) 10 (c) 11

, ~ I

(d) intinite number qf times

. "

( v) In the followingC program segment, what would be the value of x after the exerotion of the program segment? x=-5;y=dO; , " if (x> y )

,

if (x < 0) x = x * -1 ;

~

else x = 2 * x ,. ~

(a) 5

" t,." i: f ". Ii"

( b) -5 (e) 10

I t~ ~ f t

(d) -10 ( vi) What are the typical capacities of (j) main memory, and (jj) hard disk of a modern PC?

t,

( a) 1 Gb and 150 Gb ( b) 1 MB and 20 Mb (e) 15Kb and 200"Mb

1

(d) 20 Gb and 800 Gb (vii) Whatwouldbetheoutputofthefollowingprogram: main () { printf ("Expression values= %d %d\It", 5/2*2,6/2*2) ; } S'09: 2 FN: AN 203/AD303 (1403)

(

5

)

( Tum Over)

"i' ~

(a)

1,1

( b) 6,6 (c)

5,6

(d)

4,6

(yiii)

Consider the following C program. How many times will the print statement be exeroted ? for ( i=O' j<99' , j++ ) ' . "

~~

,

for(j= j; j< 100; j++) printf ("Institution ofEngineers\n");

t?

( a) 9900 ( b) 4950

4'

,

"

,,

,

,4',~

(c)

5049

(d)

5051

(jx) What is the binary representationof 0'125? ( a) 0.11

, \

:

~

t:

!

.'.

( b)

0.01

'

( c) 0-001 (d)

0.011

(x) The scope of a variabl.erefers to the ( a) range of values that the variable may assume.

(b) portion of code in which the variable may be meaningful. .-'09: 2 FN:AN203/AD303

I;. 1.-:'-.,"

(1403).

.

( 6

)

( Continued)

S'

(c) set of variables to which the given variable can be meaningfullyassigned. (d) set of variables from which the given variable .

canmean~gfullyassume.

: 2 FN:AN203/AD

303 (1403)

( 7

)

AG-16;OOO

Related Documents

Summer 09
May 2020 8
Summer 09
May 2020 9
Summer 09
May 2020 8
Summer 09
June 2020 4
Summer 09 Mailer
June 2020 0