1) The document provides a practice test on C++ programming focusing on classes, objects, functions, and constructors.
2) It contains 10 multiple choice questions worth 5 marks each for a total of 50 marks. The questions cover topics like finding the greatest number between three using classes, checking if a number is prime, displaying a date using constructors, and more.
3) Students are asked to write C++ programs to solve the problems presented in each question using appropriate classes, objects, functions, and constructors.
1) The document provides a practice test on C++ programming focusing on classes, objects, functions, and constructors.
2) It contains 10 multiple choice questions worth 5 marks each for a total of 50 marks. The questions cover topics like finding the greatest number between three using classes, checking if a number is prime, displaying a date using constructors, and more.
3) Students are asked to write C++ programs to solve the problems presented in each question using appropriate classes, objects, functions, and constructors.
1) The document provides a practice test on C++ programming focusing on classes, objects, functions, and constructors.
2) It contains 10 multiple choice questions worth 5 marks each for a total of 50 marks. The questions cover topics like finding the greatest number between three using classes, checking if a number is prime, displaying a date using constructors, and more.
3) Students are asked to write C++ programs to solve the problems presented in each question using appropriate classes, objects, functions, and constructors.
I Discover the way to excellence with UEF #1 stop Destination for Diploma & Degree
C++ ( ONLY PROGRAMS )
Theory test
Chapters to be Covered
Topics : classes , object , function & constructor
5 Marks Question - Attempt all. ( 5 x 10 = 50 marks )
1. Write a program to find out greatest number between three numbers
using class and object. Define function outside the class. 2. Write a program to find out whether a number is prime or not using class and object. 3. Write a program to find out all even number from 1 to n. Develop a parameterized constructor to accept the value of n . 4. Write a C++ Program to Display Date using Constructors. 5. Write a program to create default and parametrized constructor in a single program. Use appropriate example. 6. Write a program to calculate simple interest using appropriate data. 7. Write a program to display table of n . 8. Write a program to display all prime numbers between 1 to 100. 9. Write a program to accept name , roll and marks . Use array of objects to take 4 input from user. 10. Write a program to show to difference between variable and static variable.