How To Exam?

a knowledge trading engine...


University of Mumbai 2003 B.E Computer Science COMPUTER PROGRAMMING - I (E) - Question Paper

Sunday, 14 July 2013 04:30Web

COMPUTER PROGRAMMING - I (JUNE 2003)

N.B.:

(1) Question Nos. one and six are compulsory.

(2) Attempt any 3 ques. from every part.

part I

1. (a) discuss basic data kinds supported by C-language along with their format specifiers, memory requirements and Ranges. provide suitable example. (8)

(b) What are the identifiers ? State whether the subsequent identifiers are valid or not. (4) i) oabb ii) a_bc iii) *xyz iv) abcl23


(c) Explain any 3 escape sequence characters with suitable example. (3)

(d) Explain any 3 bit-wise operators with suitable example. (3)

2. (a) Write a program to generate Fibonacci series (1, 1, 2, 3, 5……..) for n no. of terms with flowchart. (8)

(b) Write a C program to check whether the provided 2 floating point nos are identical upto two decimal places. (8)

3. (a) Write a program to check whether a provided string is palindrome or not with flowchart. (10)

(b) If x, y and z are integer variables then evaluate the subsequent expressions and provide the final values of x, y and z.
x= 10, y=6, z=8.
i) x = =y + z ii) x--+y-- + --z/(x*x) iii) --x + y--*--z. (6)


4. (a) Write a C program to remove extra blank spaces. (8)
Ex: i/p Hello # # world
o/p: Hello # world .
# -blank space.

|b) provide differences for the following: (8)

i) if_else and switch,
ii) while loop and do while loop. provide suitable examples.

5. (a) discuss subsequent with suitable example:
i) break ii) continue on iii) goto (6)

(b) Write a 'C prog, to display and cont no. of vowels in a provided string with flowchart. (8)

(c) State actual of False:
i) 'C language is case-sensitive
ii) i = 0;
for(i = 0; i<2; i++);
{printf ("hello");} Above code will print "hello"

part II

6. (a) Comment on subsequent expression in C with suitable example.
exp one ? exp 2: exp 3 (2)

(b) Explain various preprocessor directives with example. (8)

(c) Explain unix directory structure with example. (4)

(d) Show the use of > and >> redirection operators in unix. (4)

7. (a) Explain various kinds of storage classes with example. (8) (b) Explain recursion using example. (8)

8. (a) discuss the subsequent with suitable example: (6)

i) call by value ii) call by reference.

(b) Write a menu driven C prog, to perform subsequent operations on matrices:
i) Addition ii) Subtraction iii) Transpose iv) Multiplication.
provide user described function for every of the above operation. (10)

9. (a) Write Unix commands for the following:

i) To display files and directories

ii) To change the prompt

iii) To delete my life

iv) To display no. of characters in my life.

(b) Explain any 3 string library functions. (3)

(c) Explain the difference ranging from structure and union. (3)

(d) Write a 'C’ Prog to declare a structure for employee record having name, employee code and salary. learn in the info for 30 employee and list employee and list employees having salary greater than 10,000. (6)

10. Determine the O/P of subsequent program segments. (16)
(a) main( ) .
{
inta,b,*P1,*P2,x,y;
a=12; b = 4; P1=&a; P2 = &b;

x = *P1 * *P2-6;
*P1=*P1+*P2;
y=(*P1/P2)+10;
Printf("% d % d", *P1,*P2);
Printf("% d % d", a,b);
Printf("%.d % d", x,y);
}
(b) main( )
{
intx=10, y=20, P, g;
P=Prod(x,y) g= Prod(p, Prod (x, 2));
Printf("% d % d", p,g);
} int Prod (a, b) int a, b; {return (a *b);}
(c) main ( )
{
int m = 5; for(;m! = 100;)
{
Printf("% d",m);
Printf (" ");
}
m = m + 5;
(d) main ( )
{
charx=7;
x<< 1;
Printf("% d", x);
Printf (\n % d", x<<3);
Printf ("\n % d", x<<2);
Printf("\n % d", x>>l);
}



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER University of Mumbai 2003 B.E Computer Science COMPUTER PROGRAMMING - I (E) - Question Paper