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

Roll No. B.Tech. (SEM II) EVEN SEMESTER

COMPUTER

THEORY

CONCEPTS

EXAMINATION,

2009-2010

& PROGRAMMING

IN C

Section-A

.~.;,:.(,11i8 question contains 10 questions of multiple choice. Attempt aU parts of this (10x2=20) section: 1.

(a)

C is a :

(i)

High Level Language

(ii)

Low Level Language

(Hi)

High Level Language with some low level features.

(iv) Low Level Language with high level features. (b) -

--~

Windows Xp is a : (i)

Multi user multi tasking

(ii)

Multi user single tasking

as

(iii) Single user multi tasking (iv) Single user single tasking (c)

The purpose of the following program fragment: b=s+b;

b=b-s;

where s, b are two integers is to : \c.

'"

-.,:

b;;l

(i)

Transfer the content of s to b

(ii)

Transfer the content of b to s

(Hi)

Negate the content of sand b

(iv) Swap the contents of sand b

,t"·

rl_~

"-

(d)

Consider the function Find(int x, int y) { return ((x
Maximum of a, b

(ii)

Postive difference of a, b

(iii) Sum of a, b (iv) Minimum of a, b (e)

The maximum value of a signed integer is: (i)

216_1

(ii)

215_1

(iii) 216 (iv)

215

(i)

0

(ii)

Unpredictable

(iii) -1 _ (iv) None of these (g)

---

If n=3 then the output of the statement printf(l/%d %d", n++, ++n); will be: (i)

35

(ii)

45

(iii) 4 4 (iv) (h)

-

is implementation dependent

The following program fragment for(i=3;i<15;i=i+3); printf(" %dl/,i); results in

(iii) Printing of 12 (iv)

Printing of 15

(i)

2s complement of (5)10 will be : (i)

5

(ii)

6

(iii) -5 (iv) Not possible

0)

,;~'.tt.,~.~.".d

2.

Select the odd man out: (i)

Integer

(ii)

Structure

(iii) Union

(a)

(iv)

Array

(i)

Differentiate between DOS, UNIX and Windows Operation System.

(ii)

Explain the following UNIX command.

(b)

Explain the various data types in C giving suitable examples of each.

(c)

Convert the following numbers as specified (i)

(1011011101.01101h=(?ho

(ii)

(3142.28)-1O=(?h

(iii) (110111101010.01101h=(?h6 (iv) 2s complement of 110100100 (v) (d) (e)

(AC01.2DBh=(?)8

Write a program in C to copy the content file"b.txt".

~~ra given file say "a.txt"

to another

---

Differentiate between call by value and call ,by reference. Make a program in C to show the usage of both.

Section-C Note:

3.

4.

5.

6.

7.

Attempt any two parts from each question. All questions are compulsorlJ

(3)

. a program In . C t a fi n d w I1eth er th'e glVen num b"er W'nte

(b)

Write a program in C to find out second largest element of a given list of integers.

(c)

Write a program in C to sort the given list of names.

(<1)

Define the storage class in C.

(b)

What are the merits and demerits of static and dynamic memory allocation techniques ?

(c)

""hat are the different bit operators used in C? Give an example of each.

'?".rj'

IS

pnme or not.

:

(5xlO=50)

Simulate calculator using switch statement.

(b)

Implement Stack using Linked List.

(c)

Write a program in C to multiply nvo matrices. Take the size and element of matrice through keyboard.

(a)

Show the usage of break and continue statement by taking an example.

(b)

V\Tritean algorithm to sort the given list of integers.

(c)

Discuss the u:>.-age of macro in C.

(a)

vVhatis the use of header file? Discuss.

(b)

Write a program to show the usage of structure in C.

re)-

Write a program in C to find the factorial of a given number by recursion.

\

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_ ...

1MB Sizes 7 Downloads 147 Views

Recommend Documents

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 ...

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.