Programming in C/C++, M.B.A. (PTU)


MBA Third Semister, MBA-541
PROGRAMMING IN C/C++
Instruction to candidates:-
1. All question of section-A are compulsory. Each question carry TWO marks.
2. Attempt any nine questions from section-B. Each question carry FIVE marks.
Section A (15*2=30 marks)
1. Write short note on :
(a) Differciate keywords and identifiers.
(b) What is the role of pre-processor directives?
(c) What do you mean by operator and operand?
(d) What are various standard I/O functions used in c language?
(e) What do you mean by control statements?
(f) What do you mean by array?
(g) List the various string operations?
(h) What is the role of return statement?
(i) What do you mean by recursion?
(j) How can you declare a pointer?
(k) What do you mean by precedence of operators?
(l) Define abstract class?
(m) What are static variables?
(n) What is Function Overriding?
(o) What are input/output stream in C++?
Section-B (9*5=45 Marks)
2. List and explain different types of data types in C?
3. Write a program to find the number of and sum of all integers greater than 10 and less than 100 that are divisible by 7?
4. List and explain various types of control statements in C language?
5. What are various type of array? Explain each with appropriate examples?
6. Write a C program to multiply two matrices and also multiply the resultant matrix with third matrix?
7. What are functions? How can you declare and call a user–defined function?
8. What do you mean by the dynamic memory allocation?
9. Write a program that reverses the elements of a given array using pointer parameters?
10. Explain the concept of constructors and destructors with the help of suitable examples?
11. What is inheritance? List and explain different types of inheritance in C++?
12. Write a program to implement stacks in C language?
13. Explain the concept of polymorphism with the help of suitable examples?


No comments:

Post a Comment

s