How To Exam?

a knowledge trading engine...


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

Monday, 15 April 2013 10:45Web

PROGRAMMING IN C (NEW)
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.
(a) What is a Literal?
(b) Arrange +,||,>,&,~ operators in the order of the hierarchy.
(c) What is meant by A=X?1:0.
(d) Write the syntax of for loop statement.
(e) When will you use goto statement?
(f) How will you initialize a 2D array?
(g) Write any 2 string operations.
(h) Differentiate ranging from branching and looping.
(i) What is menat by scope of a variable?
(j) What is call by reference?
(k) What is recursion?
(l) When do we need dynamic memory allocation?
(m) Give the syntax of a function returning pointer.
(n) What is the purpose of fsee.k function?
(o) What is the advantage of Random Access files?

Part B
2. Write a program to learn data in variables of various basic data kinds available in C.
3. Explain the various format specifiers for I/O.
4. Write a program to print numbers in the range m through n with divisible by three and 5.
5. Write a program that uses while loop, break and continue on statem~nts.
6. Find the 2nd largest element in a matrix using C.
7. Write a program to count the vowels in the provided text line.
8. Write a function to swap 2 variables using XOR operation.
9. Evaluate the function F(x) + 2f(x-1)+1,f(1)=1 using C.
10. How will you construct a 2D array at run time in C?
11. Write a program that uses array of pointers and pointers to functions.
12. Write a program to write the names of students in a file.
13. How is fault handling during I/O done in C?




( 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 - Question Paper