Applied Science CS SUMMER 2022
Applied Science CS SUMMER 2022
___________
Marks
Q.4 (a) What is the difference between global and local variable? 03
(b) Write about ‘strlen’ and ‘strcat’ functions. On which data type do these 04
functions work on?
(c) Write a program to do perform arithmetic operators on two numbers 07
using switch case statement.
OR
Q.4 (a) What are the Bitwise operators available in ‘C’? 03
(b) What are functions? Explain the types of functions in detail with an 04
example program for each type.
(c) Write a program to calculate sum (), average (), percentage () of five 07
subject marks entered by user.
Page 1 of 2
Q.5 (a) What is a pointer? Explain in brief. 03
(b) Define Union. Explain Union in detail. 04
(c) Write a program to calculate area of triangle with using user defined 07
function.
OR
Q.5 (a) Give definitions of class, object, and inheritance. 03
(b) Declare the Structure with an example? 04
(c) Write a program to read data from a file and write a data into a file. 07
***********
Page 2 of 2