All questions
- Write a c++program to find area of circle? #include <iostream> int main() { float radius, area; std::cout << "Enter the radius of circle : "; std::cin >> radius; area = 3.14 * radius... 1
- Write a c++ program to accept 10 integers in an array and find its sum and average? #include<iostream.h> int main() { int arr[10]; int i,sum=0; float avg; cout<<"enter 10 number"; for(i=0;i<10;i++) { cin>>arr[i]; } for(i=0;i... 2
- Write a c++ function to find surface area of sphere? Surface area of a sphere = 4π r²; write a C++ function that takes the radius and returns this value. #include <iostream> using namespace std... 1
- Write a C++ program to find sum of first 100 natural numbers? #include <iostream> using namespace std; int main() { int sum = 0; // loop through the first 100 natural numbers and add them to sum for (in... 1
- Write a program in C++ to read data variables day, month, and year of a class date by the member function and display #include <iostream> using namespace std; class Date { private: int day; int month; int year; public: // member function to read date variabl... 1
- Write a program in C++ to overload binary + operator for addition of complex numbers? #include <iostream> using namespace std; class Complex { private: double real; double imag; public: Complex() { real = 0; imag = 0; } Comple... 1
- Write a program in C++ which implements data conversion from one class to another.? #include <iostream> using namespace std; class Feet { private: int feet; public: Feet() { feet = 0; } Feet(int f) { feet = f; } // conversio... 1
- Write a class in c++ to demonstrates the example of Single inheritance? #include <iostream> using namespace std; // Base class class Shape { protected: int width; int height; public: void setWidth(int w) { width... 1
- Write a class in c++ to demonstrates the example of multilevel inheritance? #include <iostream> using namespace std; // Base class class Vehicle { public: Vehicle() { cout << "This is a vehicle." << endl; } }; // Der... 1
- Write a C++ program that will read a line of text and count the number of words in a text. Answer: read the whole line with getline, then count each place where a word starts (a non-space character after a space or at the beginning... 1
- Write a program in C++ that inputs and stores 10 numbers in an array and prints the sum and average of the array element #include <iostream> using namespace std; int main() { int numArray[10]; int sum = 0; double avg; // Input numbers into array for (int i = 0;... 1
- Write a program in c++ for addition of two matrices? #include <iostream> using namespace std; const int ROWS = 2; const int COLS = 3; void addMatrices(int m1[][COLS], int m2[][COLS], int result... 1
- Write a c++ program for overloading of unary + operator? #include <iostream> using namespace std; class Number { private: int num; public: Number() { num = 0; } Number(int n) { num = n; } // Overlo... 1
- Write a c++ program using constructor and destructor to find factorial of a given number? a c++ program using constructor and destructor to find factorial of a given number 2
- Simple Calculator Python Project for Class 11 cbse board ! Code for simple calculator in python , you can try below code by opening in new window if any doubt ask related question or comment feel fre... 2
- Name any four types of charts that can be created in libre office calc. Bar chart, Column Chart, Pie chart, Line chart, Area chart, Doughnut chart, etc. 1
- Explain the types of volcanoes on the basis of periodicity of eruption with examples. On the basis of periodicity of eruption, volcanoes are of three types: active, dormant and extinct. Active volcanoes: They erupt frequently... 1
- Explain the types of seismic waves. The seismic waves can be divided into primary, secondary and surface waves. Primary Seismic Waves reach first to the surface of the earth af... 1
- What are the effects of earthquakes on the earth’s surface and human life? Effects of earthquakes on the earth’s surface and human life are- Buildings collapse and loss of life and property. Communication system col... 1
- How is the magnitude of the earthquake-related to the collapse of houses High Magnitude creates high movement of the Earth Crust. Due to excessive vibration the houses on the earth crust collapse. 1
- Which type of movements have led to the formation of the major fold mountains in the world? Fold mountains are formed due to mountain-building (erogenic) movements. Energy is transferred from the interior of the Earth. Because of th... 1
- Give reasons why an earthquake occurs. When the movements occur in the interior of the Earth, tremendous tension is created in the Earth’s crust. When the tension goes beyond limi... 1
- Distinguish between Earthquakes and volcanoes Earthquakes Volcanoes (i) Earthquake is the movement of the Earth’s crust. A volcano is an opening in the Earth’s crust from which hot solid... 1
- Distinguish between Primary and Secondary Seismic Waves Primary Seismic Waves Secondary Seismic Waves Primary Seismic Waves reach first to the surface of the earth after the energy is emitted in t... 1