111111111111111111111111111111 Printed Pages:

7

ECSIOI

(Following Paper ID and Roll No. to be filled in your Answer Book)

PAPER 10: 1.601 '

:<:

RIech (SEM I) ODD SE\IESTER THEORY EXAMINATION 2009-10 COMPUTER COi\CEPTS & PROGR'\MMING INC

No.!e~~,;>'(1)

(2) (3) (4)

1

This question paper consists of three sections. Section A contains o~jective type questions and is of 20 marks. Section B consists ~fshort answer fJ,pe questions which is of 30 marks and Section C contains long al15wer type questions uf total 50 Marks. Your an51,versfor ,,\,'ectiunBand C should be precise and to the point. An~ver to the questions of each section must be done at one place in your am;wer books. Yen' are required /0 attempt all the questions.

There are total 20 multiple choice questions. 10xl=10 Only one of the answer out of given four choices is correct. Write the correct answer. (i) In evaluation an expression a + b * C, which one of the following is correct (a) + has higher precedence over * (b) * has higher precedence over + (c) both * and + have the same precedence (d) The order of evaluation does not matter ~

J J -1601]

11111111111111111111I111111111111I111 1 J 1 ~ J J

:111

~

III! •

1

[Contd...

(ii)

A Stack is (a)

LIFO (Last in First out)

(b)

FIFO (First in First out)

(c)

LILO (Last Last out)

(d)

None of the above

(a)

Finite data of similar type

(b)

Infinite data of similar type

-*'" ~~.,.:-' ( c) (d)

Finite data of mix type All of the above

(iv) How many bytes of storage an unsigned_short integer in C language would require

(v)

(a)

2

(b)

4

(c)

6

(d)

8

Decimal number 10 can be represented (a number system with base 1) as

JJ -1601]

(a)

1010

(b)

64

(c)

A

(d)

None of the above

1111111111111111 1IIIIIJIlmHIIIIIIII I

j

••

:".

1111

2

1ll

unary

(vi)

If k = 5 then the value of variable x after the execution of a C statement x = k ++ will be (a)

5

(b)

6

(c

randoml . anyone

of the above

yaljJe of x will not depend on k (yii

T~-pi:ally an operating system a

manages all the hardware resources

of the

omputer umpiles a high-level program

"',f";'~~>

(c)

Both (a) and (b)

(d)

:\one of the above

(viii) For a C program code for (i=O; i ~ 10; i ++) {A}; A will run

(ix)

(a)

10 times

(b)

11 times

(c)

12 times

(d)

None of the above

Which ofthe following is not a functional programming language (a)

SML

(b)

HASKELL

(c)

C

(d)

LISP

11111111111111111111I1 [1111111111111111111111 *

J

J

-

1

6

0

1

~

(x)

A pointer in C language

(a)

IS

a address of some location

(b)

IS

useful in describing linked list

(c)

can be used to access the elements of

State whether the following statements are True or False : '~'~t.(i} Normal binary operators like + and - can be combined with assignment operator = to form new operators in C Language. (ii)

A compiler translates a High-level program into a machine understandable language.

(iii)

An algorithm might never terminate.

(iv)

In C language pointers can be used as a function argument.

(v)

MS-WORD may be classified as an application software.

(i) (ii)

is used to open a file. is used as a statement terminator in C.

(iii) (iv) (v)

.,.-

~

4

There are total ~ A e ~

questions in this section.

questions /~ .1.'~ \Yri e a C p~gram

l~b.I{}v-,

i

(a)

cr--Lp

6x5=30

c.A,t'

f~

~'~ to swap two integer J

'ariables without usmg third variable. "'''''''ft''I

\\ nat is the difference between initialization

"1: - ,~~.•.

and assignment of a variable. (b)

(i

Differentiate between WHILE ...DO and DO ....WHILE loops.

(ii)

Write a recursive C program to calculate the factorial of a given integer.

(c)

(i)

Draw a flow chart to sort three integers.

(ii)

What is dynamic memory

allocation?

Explain malloc function. (i)

(d)

Write a C program to sequentially search a given integer element from a given list of numbers.

(ii)

What is the purpose of using Structures in C? Explain with the help of a suitable example.

JJ-1601]

11111111111111111111I111111111111111111111111 •

J

J

-

1

~

0

1



'5

(e)

(i)

Find the value of X in the equation (1230)4

(ii)

= Xe;.

Draw the functional block diagram of a Digital Computer and discuss its components in brief.

5

This section contains SEVEN programming qu~_stions. Attempt any FIVE questions. All .1~:;;~~:1

answers must contain Flow chart/Algorithm for your program logic : (a)

Write a C program to read in 10 integer numbers and print their average, minimum and maximum numbers.

(b)

Write a C program to add, multiply two N x N matrix.

(c)

Write a simple database program in C which stores personal details of 100 persons such as Name, Date of Birth, Address, Phone number etc.

(d)

Write a C program which reverses the digits of the integer input given to it. For example an input 65367 is outputted as 76356.

(e)

Write a C program to calculate the sum of the following series upto 50 terms SUM = -13 + 33

(t)

v

- 53

+ 73

-

93 + 113

- ....

rite a C program to print nth Fibonacci

number. (g)

V.-rite a-C program to arrange given n strings in lexicographical

order.

UPTU B.Tech Computer Concepts & Programming in C-ECS-101 ...

UPTU B.Tech Computer Concepts & Programming in C-ECS-101 Sem 1_2009-10.pdf. UPTU B.Tech Computer Concepts & Programming in C-ECS-101 Sem ...

129KB Sizes 0 Downloads 117 Views

Recommend Documents

UPTU B.Tech Computer Concepts & Programming in C-ECS-201 ...
UPTU B.Tech Computer Concepts & Programming in C-ECS-201 sem 2_ 2009-10.pdf. UPTU B.Tech Computer Concepts & Programming in C-ECS-201 sem 2_ ...

UPTU B.Tech Computer Concepts & Programming in C ECS 201 ...
UPTU B.Tech Computer Concepts & Programming in C ECS 201 ECS201 Sem 3_2011-12.pdf. UPTU B.Tech Computer Concepts & Programming in C ECS 201 ...

UPTU B.Tech ECS-201 Computer Concepts And Programming in C ...
UPTU B.Tech ECS-201 Computer Concepts And Programming in C sem 2_ 2010-11.pdf. UPTU B.Tech ECS-201 Computer Concepts And Programming in C ...

Concepts, Techniques, and Models of Computer Programming
Jun 5, 2003 - 2.1 Defining practical programming languages . . . . . . . . . . . . . 33 .... 3 Declarative Programming Techniques. 113 ... 3.7.3 A word frequency application . ...... an Apple Macintosh PowerBook G4 with Mac OS X and X11. The first ..

Concepts, Techniques, and Models of Computer Programming
Jun 5, 2003 - One approach to study computer programming is to study .... based on Java, but the problem exists in all existing languages to some degree.

Concepts Lite - Programming Generically
auto si = find(s, 7); // calls associative container overload. At each call site, the compiler checks the requirements of each overload to determine which should be ...

Concepts Lite - Programming Generically
College Station, Texas 77843. 1 Introduction .... the resolution algoritm picks the unique best overload if one exists, otherwise a call is an error. ...... ISO/IEC JTC 1, Information Technology Subcommittee SC 22, Program- ming Language C++, ...

Concepts Lite - Programming Generically
College Station, Texas 77843. 1 Introduction. In this paper, we ...... aemantic Aspects of C++ Concepts Technical Report N3351=09-0077,. ISO/IEC JTC 1, ...

COMPUtER PROGRAMMiNG
Good salaries. Good growth. If there is an app for something, there is computer programmer behind it.. Modern life is sup- ported by computer programs.. In 2009 the median salary was. $90,000 a year. Current growth is projected at over 30% per year t

UPTU B.Tech Computer Network ECS601 Sem 6_2011-12.pdf ...
COMPUTER NETWORK. Time : 3 Hours Total ... (D Find the class ofeach address : (D 140.213. ... UPTU B.Tech Computer Network ECS601 Sem 6_2011-12.pdf.

Btech Project Presentation
Less compute intensive due to elimination stages. ◇ Not dependent on singularities, so robust against partial prints. ◇ Should be robust against distortions.

UPTU B.Tech computer Graphics- ECS504 Sem 5_2012-13.pdf ...
UPTU B.Tech computer Graphics- ECS504 Sem 5_2012-13.pdf. UPTU B.Tech computer Graphics- ECS504 Sem 5_2012-13.pdf. Open. Extract. Open with.

UPTU B.Tech Computer Network- ECS601 Sem 6_2012-13.pdf ...
(a) which of the communication modes support two-way haffic but. direction ? ... Page 3 of 3. UPTU B.Tech Computer Network- ECS601 Sem 6_2012-13.pdf.

UPTU B.Tech Computer Graphics ECS-504 Sem 5_2013-14.pdf ...
terms Pixel, Aspect Ratio, Resolution. O) Develop and write mid point circle algorithm. Apply it to. predict the pixels in any octant for the circle whose centre.

UPTU B.Tech Computer Aided Manufacturing-TME-702 Sem ...
UPTU B.Tech Computer Aided Manufacturing-TME-702 Sem 7_2009-10.pdf. UPTU B.Tech Computer Aided Manufacturing-TME-702 Sem 7_2009-10.pdf. Open.

in One: Computer Concepts and Applications
problems using computer concepts and skills related to the Internet, Microsoft Office. 2013 applications, collaboration, social media, and cloud computing. Also.