How To Exam?

a knowledge trading engine...


Gujarat Technological University 2009 B.E Computer Programming and Utilization emr 08/uary 09, (ks 70) - Question Paper

Thursday, 18 July 2013 09:40Web



Seat No.:__Enrolment No.

(CP-3)

GUJARAT TECHNOLOGICAL UNIVERSITY

B.E. all Sem-I Examination December 08/January 09 Computer Programming and Utilization (110003)

DATE: 24-12-2008, Wednesday TIME: 12.00 to 2.30 p.m.

MAX. MARKS: 70


Instructions:

1.    Attempt all questions.

2.    Make suitable assumptions wherever necessary.

3.    Figures to the right indicate full marks.

Attempt following programs in C/C++ language.

Q-1

(a)

(b)

(c)


Write a program to read two matrix from the user and store the multiplication of 05 two matrix in the resultant matrix. i.e. C=A * B

Write a program to generate Fibonacci series of n given numbers using    05

function named fibbo. i.e. 1 1 2 3....

Write a c++ program which is having class named student. It has two functions named readdata() and writedata() It has member elements called studID,    04

studname, studphno, studpercentage. assume suitable data type for variable.

And read the data element from the user and print the same on the screen using member functions.

Do as directed.

Q-2

(a)


07


Find out the output of following C code. Assume all the libraries has been included and code is syntactically correct.

i)


Void main()

{

Char cAddress[30]=Gtu Examination;

Int iX=67584;

Float fZ=95.7658;

Printf(%.6s\n,cAddress);

Printf(%7s\n,cAddress);

Printf(%010d\n,iX);

Printf(%10d\n,-iX);

Printf(%*.*f\n,7,2,fZ);

Printf(%e\n,fZ);

Printf(%12.4e\n,-fZ);

}

Find out the error if any in the following code and correct it and give the output. Void main()

{

Int iNo[3] = {10,20,30,40};

Char cName[] = exam;

Char cMidd[]= university;

Strcpy(cName,cMidd);

Printf(%d,iNo[0]);

Printf (%s,cName);

}

Attempt any two.

What is structure? How do we declare and access structure variables?

What do you mean by recursive function? Explain with small example.

Explain conditional operator with small example.

Do as directed.

Draw a flow chart to find the maximum number out of three given numbers. What is program? Explain break and continue with example.

Explain following string manipulation functions. Strncmp(),strlen(),strcat(),strstr(),strchr();

OR

Do as directed.

Draw a flow chart to do the sum of 10 elements read from the user.

List out operators used in C language and explain any four with example.

What do you mean by constants in C language? Explain types of constants in detail.

Do as directed.

What is pointer? Write a program to do swapping of two elements using pointers.

List out the categories of functions. Explain any one category with example. State the difference between Structure and Union.

OR

Do as directed.

Write a program to find out sum of 6 elements of array using pointer.

What is scope, visibility and life time of variables? Explain Static variables with example.

State the difference between entry control loop and exit control loop.

Do as directed.

Explain the concept of Class, Object, Polymorphism and Inheritance.

Explain structure of class with example.

What is inline function? Explain with example.

OR

Do as directed.

Give the difference between object oriented language and procedure oriented language.

Explain friend function with example.

What are the characteristics of constructor? Explain how to initialize the variable using constructor.







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Gujarat Technological University 2009 B.E Computer Programming and Utilization emr 08/uary 09, (ks 70) - Question Paper