2003 University of Mumbai Bombay B E Computer Science COMPUTER PROGRAMMING I JUNE 2003 University Question paper for exam preparation. Question paper for 2003 University of Mumbai Bombay B E Computer Science COMPUTER PROGRAMMING I JUNE 2003 University Question paper, 2003 University of Mumbai Bombay B E Computer Science COMPUTER PROGRAMMING I JUNE 2003 University Question paper. SiteMap

## Exam Preparation

 • AIPMT Exam Preparation • Civil Services Exam Preparation • IIT JEE Exam Preparation • Class 12th Standard Exam Preparation • Class 11th Standard Exam Preparation • Class 10th Standard Exam Preparation • Class 9th Standard Exam Preparation • Class 8th Standard Exam Preparation

## Question Papers

 • Class 9th Standard Question Paper • Class 10th Standard Question Paper • Class 11th Standard Question Paper • Class 12th Standard Question Paper • BA Question Paper • BBM Question Paper • BCA Question Paper • BCom Question Paper • BE Question Paper • BSc Question Paper • BTech Question Paper • LLB Question Paper • LLM Question Paper • MA Question Paper • MBA Question Paper • MCA Question Paper • MCom Question Paper • MSc Question Paper • MTech Question Paper

# 2003 University of Mumbai Bombay B E Computer Science COMPUTER PROGRAMMING I JUNE 2003 University Question paper

University Question Papers
2003 University of Mumbai Bombay B E Computer Science COMPUTER PROGRAMMING I JUNE 2003 University Question paper
COMPUTER PROGRAMMING - I (JUNE 2003)

N.B.:

(1) Question Nos. 1 and 6 are compulsory.

(2) Attempt any three questions from each section.

Section I

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

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

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

(d) Explain any three 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 given two floating point nos are same upto 2 decimal places. (8)

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

(b) If x, y and z are integer variables then evaluate the following expressions and give 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) Give differences for the following: (8)

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

5. (a) Explain following with suitable example:
i) break ii) continue iii) goto (6)

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

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

Section II

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

(b) Explain different 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 different types of storage classes with example. (8) (b) Explain recursion using example. (8)

8. (a) Explain the following with suitable example: (6)

i) call by value ii) call by reference.

(b) Write a menu driven C prog, to perform following operations on matrices:
i) Addition ii) Subtraction iii) Transpose iv) Multiplication.
Give user defined function for each 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 three string library functions. (3)

(c) Explain the difference between structure and union. (3)

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

10. Determine the O/P of following 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);
}