You are on page 1of 2

Computer Programming Lab External Exam Section: A2 Paper 1

1. Write a C++ program that creates a class matrix to represent 22 matrices. Create a constructor to initialize it to
identity matrix. Create two objects of the class and take the elements of matrix as input from user. The user
should be given the option to perform either addition or multiplication of the matrices.
2. Write a program to calculate the values of nCr and nPr. Here the values of n and r should be entered by the user.

Computer Programming Lab External Exam Section: A2 Paper 2


1. Write a program in which a class has three data members: name, roll no, marks of 5 subjects and a member
function Assign() that calculates the percentage and assign the streams on the basis of table given below:
Average Marks Stream
90% or more Computers
80% - 89% Electronics
75% - 79% Mechanical
70% - 74% Electrical
Also make a constructor the prints Constructor called and a destructor that prints Destructor called.
2. Write a program that reads one line of text and prints it with each word reversed. For example, the input of
Today is computer science external would produce yadoT si retupmoc ecneics lanretxe.

Computer Programming Lab External Exam Section: A2 Paper 1


1. Write a C++ program that creates a class matrix to represent 22 matrices. Create a constructor to initialize it to
identity matrix. Create two objects of the class and take the elements of matrix as input from user. The user
should be given the option to perform either addition or multiplication of the matrices.
2. Write a program to calculate the values of nCr and nPr. Here the values of n and r should be entered by the user.

Computer Programming Lab External Exam Section: A2 Paper 2


1. Write a program in which a class has three data members: name, roll no, marks of 5 subjects and a member
function Assign() that calculates the percentage and assign the streams on the basis of table given below:
Average Marks Stream
90% or more Computers
80% - 89% Electronics
75% - 79% Mechanical
70% - 74% Electrical
Also make a constructor the prints Constructor called and a destructor that prints Destructor called.
2. Write a program that reads one line of text and prints it with each word reversed. For example, the input of
Today is computer science external would produce yadoT si retupmoc ecneics lanretxe.

Computer Programming Lab External Exam Section: A2 Paper 2


1. Write a program in which a class has three data members: name, roll no, marks of 5 subjects and a member
function Assign() that calculates the percentage and assign the streams on the basis of table given below:
Average Marks Stream
90% or more Computers
80% - 89% Electronics
75% - 79% Mechanical
70% - 74% Electrical
Also make a constructor the prints Constructor called and a destructor that prints Destructor called.
2. Write a program that reads one line of text and prints it with each word reversed. For example, the input of
Today is computer science external would produce yadoT si retupmoc ecneics lanretxe.
Computer Programming Lab External Exam Section: A2 Paper 1
1. Write a C++ program that creates a class matrix to represent 22 matrices. Create a constructor to initialize it to
identity matrix. Create two objects of the class and take the elements of matrix as input from user. The user
should be given the option to perform either addition or multiplication of the matrices.
2. Write a program to calculate the values of nCr and nPr. Here the values of n and r should be entered by the user.

Computer Programming Lab External Exam Section: A2 Paper 2


1. Write a program in which a class has three data members: name, roll no, marks of 5 subjects and a member
function Assign() that calculates the percentage and assign the streams on the basis of table given below:
Average Marks Stream
90% or more Computers
80% - 89% Electronics
75% - 79% Mechanical
70% - 74% Electrical
Also make a constructor the prints Constructor called and a destructor that prints Destructor called.
2. Write a program that reads one line of text and prints it with each word reversed. For example, the input of
Today is computer science external would produce yadoT si retupmoc ecneics lanretxe.

Computer Programming Lab External Exam Section: A2 Paper 1


1. Write a C++ program that creates a class matrix to represent 22 matrices. Create a constructor to initialize it to
identity matrix. Create two objects of the class and take the elements of matrix as input from user. The user
should be given the option to perform either addition or multiplication of the matrices.
2. Write a program to calculate the values of nCr and nPr. Here the values of n and r should be entered by the user.

Computer Programming Lab External Exam Section: A2 Paper 2


1. Write a program in which a class has three data members: name, roll no, marks of 5 subjects and a member
function Assign() that calculates the percentage and assign the streams on the basis of table given below:
Average Marks Stream
90% or more Computers
80% - 89% Electronics
75% - 79% Mechanical
70% - 74% Electrical
Also make a constructor the prints Constructor called and a destructor that prints Destructor called.
2. Write a program that reads one line of text and prints it with each word reversed. For example, the input of
Today is computer science external would produce yadoT si retupmoc ecneics lanretxe.

Computer Programming Lab External Exam Section: A2 Paper 1


1. Write a C++ program that creates a class matrix to represent 22 matrices. Create a constructor to initialize it to
identity matrix. Create two objects of the class and take the elements of matrix as input from user. The user
should be given the option to perform either addition or multiplication of the matrices.
2. Write a program to calculate the values of nCr and nPr. Here the values of n and r should be entered by the user.

You might also like