How To Exam?

a knowledge trading engine...


Punjab Technical University 2006-1st Sem M.B.A DCA - PROGRAMMING IN C (old) - Question Paper

Monday, 15 April 2013 10:40Web

PROGRAMMING IN C (OLD)
DCA, IST Semester (2096)

Time: 3 Hours Max Marks:75

Note: Attempt all ques. In Part A and any 9 ques. from Part B. every ques. in Part A and Part B carry two and five marks respectively.

Part A

1.
(i) What is an identifier in C?
(ii) State any 2 rules for naming functions.
(iii) What is the range of floats in C?
(iv) What is meant by associativity of operators?
(v) What is the importance of I/O formatting string in C?
(vi) Write statements for an infinite loop?
(vii) What is the purpose of control statements in C?
(viii) How will you use goto statement?
(ix) When is break statement used?
(x) What is the ternary operator?
(xi) What is meant by array overflow?
(xii) What is recursion?
(xiii) What is call by value?
(xiv) What is a pointer?
(xv) What is size of function used?

(15X2=30)

Part B
2. What is the basic data kinds in C?
3. Discuss the hierarchy of operators in C.
4. Write a program to obtain the nth term of the series: 1/2 + 2/3+3/4+….
5. Discuss the switch statement with help of a diagram.
6. How is continue on statement used? discuss with an example.
7. Write a program to obtain the 2nd largest element in an Array.
8. Give A and B 2 matrices of order n. Check AB=BA through C.
9. Find and Count the vowels in a characters array.
10. Write a function to obtain smallest element in an array. Use it to obtain the 3rd smallest.
11. Write a recursive function to evaluate nCr.
12. How will you create a 2D array at run time?
13. Write a program that removes extra inter word spaces in the provided text.

(9x5=45)





( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Punjab Technical University 2006-1st Sem M.B.A DCA - PROGRAMMING IN C (old) - Question Paper