How To Exam?

a knowledge trading engine...


Biju Patnaik University of Technology 2007 B.Tech Applied Electronics and Instrumentation 1st Semester Programming C - Question Paper

Friday, 24 May 2013 12:20Web



To Get Latest BPUT NEWS,Current Affairs &

Campus Information On Your Mob Free Of Cost Daily.

B Tech BCSE 3101


say ur Friend

*type JOIN IBPUT send to 567678

Totat number of pnntcdpage* - B

First Semester Examination - 2007


PROGRAMMING IN C


Full Marks - 7U

Time- - 3 Hours

. f\VC ' r. 'ft? 'i?Sj : J r.yr.i

fr IMS


X li

, j M i - li 111 ririq Qi-ti StionS

LVil.f i- t.r>-'-    oE a hescier file 7

. i

It)|


ttj, u,.- nt a header file absolutely Tin't tV ' WluU Are subscripts 9 How are they written What restrictions apply to the values lhat can be asShgned to subscripts ?

P.T.O.

(c)    How is the variables address determined ?

(d)    What is the purpose of the key word void ? Where is this keyword used ?

(e)    Define a structure that contains the Mowing three members :

an integer quantity called won an integer quantity called fost a floating point quantity called percentage

(f)    What is the purpose of switch statement ? Summarize the syntactic rules associated with the use of switch state-


{g) What is a structure ? How does a structure differ from an array ?

(h) How can a function return a pointer to its calling routine ?

fi) What is the use of Streams in C programming ?

(j) What do you mean by strong typing ?

2' (f How is a structure member accessed ? ow c&n a structure member be processed ? How can the size of a structure be determined ? In what units is the size reported ?    5

(b) Write a program which reads two integer va/ues. If the first is less than the second, print the message up. if'the second is less than the first, print the message down. It the numbers are equal, print the message equal. If there is an error reading the data, print a message containing the word Error and perform exit {0). 5

3. (a) How are arrays usually processed in C 7 Can entire arrays be processed with


' single instructions, without repetition ?

How is an array name is interpreted when

4. (a)

Write a function "replace" which takes a pointer to a string as a parameter, which

it is passed to a function ? 5

replaces all spaces in that string by

(b) Write a program to count the vowels and letters in free text given as standard input.

minus signs and delivers the number of spaces it replaced. 5

Read text a character at a time until you

/ (b>

0fine a preprocessor macro swap

encounter end-of-data. Then print out the

(t, x, y) that will swap two arguments x

number of occurrences of each of the

ynd y of a given type t. 5

vowels a, e, i, o and u in the text, the total number of letters and each of the vowels as an integer percentage of the letter

5. Aa)

What is meant by scope of a variable within a program ? What is the purpose of an automatic variable ? What is its

,g gges.ed ggggg .ggggWWW.lbpUt.COm ? 5

r 4 (b) Read ordinary text a character at a time Numbers of characters: v 1 1

a 3; e 2; i 0 ; o 1; u 0; rest 17 from the program's standard input and

Percentages of total: P""< with each line reversed ,r0m ' a 13% ; e 8% ; i 0% ; o 4% ; u 0% ; ri9ht- Read untl1 Vau ncounler end-of-

rest 73%. 5

data. 5

BCSE 3101 4 Contd.

BCSE 3101 5 PT--

6. >{a) Write a program to print out the integers from 40 to 127 in decimal,' octal, hexadecimal and also print out the equivalent character.    5

(b) Write a program that wilf prompt the user for two strings of characters, assemble them into a single string and then print the string out reversed.    5

7./(a) Write a program to read a positive integer at least equal to 3 and print out all possible permutations of three positive

8. (a)


integers less or equal to thaa thi&valw.* 1

www.OaiaFilm.com another in C ?

5


24-hour clock, so that 1245 represents quarter to one mid-day, for example : The second integer represents a time duration in a similar way, so that 345 represents three hours and 45 minutes. This duration is to be added to the first time and the result printed out in the same notation, in this case 1630 which is the time 3 hours and 45 minutes after 12.45,    5

hat are the six basic methods of converting values from one data type to

2.5


(b) Write a program to read two integers with the following significance. The first integer value represents a time of day on a

(b) What is the use of escape sequences in C ? What are the different escape sequences in C ?    2.5


(Cj What is the difference between the two additional memory allocation functions,

CallocO and Realloc() ?    2 5

(d) Describe the five arithmetic operators in    

C Summarize the rules associated with

2 5

their jses    '

www.orkut.co.in/Main#FriendAdd?

rl=lo&uid=2933520217838768667

BCSE 3101    8    -C







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Biju Patnaik University of Technology 2007 B.Tech Applied Electronics and Instrumentation 1st Semester Programming C - Question Paper