How To Exam?

a knowledge trading engine...


Gujarat Technological University 2009-2nd Sem B.E Computer Science Remadial - - Question Paper

Friday, 19 July 2013 11:45Web



Seat No.    Enrolment No.

GUJARAT TECHNOLOGICAL UNIVERSITY

B.E. Sem-II Remedial Examination September 2009 Subject code: 110003 Subject Name: Computer Programming and Utilization Date: 08/09/2009    Time: 03:00pm - 5:30pm

Total Marks: 70

Instructions:

1.    Write seat no. and enrolment no. at given location on question paper.

2.    Attempt all questions.

3.    Make suitable assumptions wherever necessary.

4.    Figures to the right indicate full marks.

Q.1 (a) Draw Block Diagram of Computer System and Explain its various 04 components.

finding largest Number out of three given Numbers.

(c) Write a program in C for generating sum of first 100 integer numbers    05

Q.2 (a) (1) Explain scanf( ) and printf( ) with syntax.    03

(2) Create a class rectangle and write program in C++ to print area    04 of rectangle.

OR

(b) (1) Give name of loop statements. Explain any one loop statement    03 with example

(2) Explain different operators used in C Language    04

Q.3 (a) What is array? What are the advantages to use array? Explain single and    05 multi-dimensional array with example.

OR

Q.3 (a) What is structure? How it is different from union?    05

Explain nested structure and array of structure with example.

(1) strcpy( ) (2) strcat( ) (3) strlan( ) (4) strcmp( )

Q.4 (a) What is pointer? How Pointer is initialized? How it is different to array?    07

Explain (*p)[5] and *p[5].

OR

Q. 4

(a) What is constructor? What is destructor? Explain it with example. Also Give 05 some of the special properties of constructor and destructor.

(b) Create a class named student having data member student name, roll no. and four subject marks. Write a member function to

(1)    Input student name, roll no. and marks of subjects

(2)    Calculate percentage

(3)    Display all information.

(c) Explain following Object Oriented Programming Terms in detail. 1) Data Abstraction 2) Polymorphism

04


Q.5 (a) What is function? Explain Pass by value and Pass by reference.    05

Give one-one example of User Defined Function and Library Function.

(b) Find the smallest number from the two numbers with the help of class &    05

object.

(c)


04


Q.5


(a)

(b)

(c)


05

05

04


What is recursion? Explain it with factorial(4). Write C program to find factorial (N) using recursive Function?

OR

Explain if .. else and switch -case statement with example.

Write a program in C to count number of positive , negative and zero elements from 3 x 3 matrix.

Give example of friend classes/functions in C++.


2







Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Gujarat Technological University 2009-2nd Sem B.E Computer Science Remadial - - Question Paper