Introduction To Computers & Programming (CS-111) (Common To All)
Introduction To Computers & Programming (CS-111) (Common To All)
CS 111 Page 1 of 2
6. A) Write a complete C++ program to multiply two Matrices and display the result in Matrix
format.
B) Write a complete C++ program to change all lowercase letters into uppercase and vice
versa in a sentence.
C) Illustrate the usages of following string handling functions with an example for each:
i) strcpy()
ii) strcat()
[10+6+4] M
7. A) Explain the following with suitable example.
i) Function with no arguments/ parameters but a return value
ii) Function with arguments/ parameters but No return value
B) Explain with an example , the Default Arguments to a function.
C) Write a Rev( ) which returns the reverse of a given number. In the main( ) function, call
Rev( ) function to check whether a number is palindrome or not.
[6+6+8] M
8. A) List and explain any five benefits of Object Oriented Programming.
B) What is a C++ class? With the general syntax, explain declaration of a C++ class.
C) Write a C++ program to copy a file to another file.
[5+5+10] M
CS 111 Page 2 of 2