Information Technology (Semester 3)
Total marks: 50
Total time: 3 Hours
INSTRUCTIONS
(1) Question 1 is compulsory.
(2) Attempt Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
(3) Draw neat diagrams wherever necessary.
1.a.
What is cohesion and coupling ? Why are cohesion and coupling important to programmers ?
(6 marks)
00
1.b.
What are operators ? Explain different types of operators. Write precedence of it.
(6 marks)
00
OR
2.a.
What are the three types of decision logic structure ? Explain with flowchart.
(6 marks)
00
2.b.
Create the algorithm and the flowchart to find the average age of all the students in a class using While/While End. Write pseudo code for same.
(6 marks)
00
3.a
Explain features of object oriented programming in detail.
(5 marks)
00
3.b.
What is friend function ? Give syntax for same. What are properties of friend function ?
(6 marks)
00
OR
4.a.
Explain need of operator overloading. Write C++ program to demonstrate any unary operator overloading.
(6 marks)
00
4.b.
How memory management is carried out in C++ ? Write syntax for the same.
(6 marks)
00
5.a.
Explain need of function overloading. Write C++ program to demonstrate function overloading.
(6 marks)
00
5.b.
What is inheritance ? What are different types of inheritance ?
(7 marks)
00
OR
6.a.
Explain virtual function and pure virtual function.
(6 marks)
00
6.b.
Explain template in C++. Write a generic function to sort the integer and float array using function template.
(7 marks)
00
7.a.
Write a note on Standard Template Library.
(6 marks)
00
7.b.
Which Classes are used in file stream operations ? Explain in detail.
(7 marks)
00
OR
8.a.
Explain Namespaces. What are rules for namespaces ?
(5 marks)
00
8.b.
How to manage console I/O operations ? Explain with example.
(7 marks)
00