Download Model question papers & previous years question papers
Posted Date: 29 Dec 2008 Posted By:: Darshak Member Level: Silver Points: 5 (₹ 1)
|
2006 Hemchandracharya North Gujarat University M Tech Automobile 103 Computer Fundamentals & Programming in C Question paper
AA-3403 Seat No. _________ First Year M. Sc. (CA & IT) Examination March / April – 2006 103 : Computer Fundamentals & Programming in C Time : 3 hours] [Total Marks :35
1 Do as directed : 5
(i) What would be the output produced by the following program segment ?
int a,b,sum ; a = 20; b = 30; sum = a + b; a = size of (sum); printf (“%d \n %d",sum,a) ; (ii) What is initialization ? (iii) Identify unnecessary parenthesis in the following arithmetic expression : (( x - y) * p) + q * (r * t) (iv) Determine the value of the following logical expression, if a = 5, b = 10, and c = -6.
(a / 4.0 = = 0.0 && b / 0.2 != 0 ) || c < 0.0 (v) Main is a user defined function _________. (True / False) (vi) Long double data type occupies _____ bytes . ( 4 / 8 / 10 / 12 ) (vii) The following is a segment of a program x = 1; y=1; if (n > 0 ) x = x + 1; y = y + 1; printf (“%d\n%d", x , y); what would be the output if n = 0 ? (viii) Every line in a ‘C' program must end with semicolon ___________ ( True / False ) (ix) The value of the expression -14 % 3= _____. (x) What is a structure template ?
2 Attempt any two from the following question : 6
(i) Income tax for individuals is computed on slab rates as follows : Income Tax Payable Upto Rs. 60,000 Nil From Rs. 60,001 to Rs. 75,000 10% of axcess over Rs. 60,000 From Rs. 75,001 to Rs. 1,00,000 Rs. 1,500 plus 25% of axcess over Rs.75,000 Above Rs. 1,00,001 Rs.7,750 plus 30% of axcess over Rs. 1,00,000 Draw a flowchart that reads the income and Print the income tax due. (ii) Give advantages and disadvantages of different types of language. (iii) What is a flowchart ? Explain symbols used to draw a flow chart with suitable example.
3 Attempt any two from the following questions : 6
(i) Explain nested – if statement with suitable example.
(ii) Discuss about for loop with example. (iii) Write a complete C program to calculate the sum of first 10 Fibonacci numbers.
4 Attempt any two from the following questions : 6
(i) What is an array ? Explain one dimensional array with example. (ii) Explain following string functions : (a) strcat( )
(b) strcpy( ) (c) strlen( )
(iii) What is recursion ? Write a program to calculate n! using concept of recursion.
5 Attempt any two from th following questions : 6
(i) Differentiate between structure and union. (ii) Discuss about defining and opening a file in C program. (iii) Explain the following functions : (a) initgraph( ) (b) outtexxy( ) (c) circle( )
6 Attempt any one 6
(i) Write a complete C program to swap value of two variables using concept of pointer.
(ii) Write a function power that computes x raised to the power y for integers x and y and returns double – type value .
___________________________________
Return to question paper search
|
|
Submit Previous Years University Question Papers and
make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.