Skip to main content

Posts

C++ Important questions OOP's and Data Structures (Assignment Questions)

PAPER 1st QUESTION:1   Explain Features of OOP's There are a few principle concepts and features that form the foundation of object-oriented programming − Object This is the basic unit of object oriented programming. That is both data and function that operate on data are bundled as a unit called as object. Class When you define a class, you define a blueprint for an object. This doesn't actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an object. Abstraction Data abstraction refers to, providing only essential information to the outside world and hiding their background details, i.e., to represent the needed information in program without presenting the details. For example, a database system hides certain details of how data is stored and created and maintained. Similar way, C++ classes provides different methods to the outside world without giving internal ...

हिंदी भाषा सेकण्ड ईयर CC exam

  प्रश्न 1. 'वह तोड़ती पत्थर' कविता का सारांश अपने शब्दों में लिखिए। उत्तर-  'वह तोड़ती पत्थर' कविता सुप्रसिद्ध कवि सूर्यकान्त त्रिपाठी 'निराला' द्वारा रचित। मजदूर वर्ग की दयनीय दशा को उभारने वाली एक मार्मिक कविता है। कवि कहता है कि उसने इलाहाबाद के मार्ग पर एक मजदूरनी को पत्थर तोड़ते देखा। वह जिस पेड़ के नीचे बैठकर पत्थर तोड़ रही थी वह छायादार भी नहीं था, फिर भी विवशतावश वह वहीं बैठे पत्थर तोड़ रही थी। उसका शरीर श्यामवर्ण का था, तथा वह पूर्णत: युवा थी। उसके हाथ में एक भारी हथौड़ा था, जिससे वह बार-बार पत्थर पर प्रहार कर रही थी। उसके सामने ही सघन वृक्षों की पंक्ति, अट्टालिकाएं, भवन तथा परकोटे वाली कोठियाँ विद्यमान थीं। कवि कहता है कि जैसे-जैसे धूप चढ़ती जा रही थी, उसी रूप में गरमी बढ़ती जा रही थी। समूचे शरीर को झुलसा देने वाली लू चल रही थी। ऐसे में जब उसने मुझे उसकी ओर देखते हुए देखा तो एक बार तो उस बनते हुए भवन को उसने देखा फिर यह लक्षित करके कि मैं अकेला ही था. उसने अपने तार-तार होकर फटे कपड़ों की ओर देखा। ऐसा लगा जैसे अपनी उस स्थिति द्वारा ही उसने मुझको अपनी द...

C++ Program BSC 2nd year

QUESTION:1   Write a Program to Find Average of 3 number #include <iostream> using namespace std; int main() {    int num_1;    cout << "Enter num_1 : ";    cin >> num_1;    int num_2;    cout << "Enter num_2 : ";    cin >> num_2;    int num_3;    cout << "Enter num_3 : ";    cin >> num_3;    float average = (num_1 + num_2 + num_3) / 3;    cout << "Average : " << average << endl; } Output Enter num1 : 23 Enter num2 : 41 Enter num3 : 35 Average : 33

C++ Program to Find transpose of a matrix

C++ Program to Find transpose of a matrix  #include <iostream> using namespace std; int main() {    int a[10][10], transpose[10][10], row, column, i, j;    cout << "Enter rows and columns of matrix: ";    cin >> row >> column;    cout << "\nEnter elements of matrix: " << endl;    // Storing matrix elements    for (int i = 0; i < row; ++i) {       for (int j = 0; j < column; ++j) {          cout << "Enter element a" << i + 1 << j + 1 << ": ";          cin >> a[i][j];       }    }    // Printing the a matrix    cout << "\nEntered Matrix: " << endl;    for (int i = 0; i < row; ++i) {       for (int j = 0; j < column; ++j) {          cout << " " << a[i][j];   ...

C program to read integer into array and reversing them

 C PROGRAM TO READ INTEGER INTO AN ARRAY AND REVERSING THEM USING POINTER

C program to check a string is Palindrome or Not

  C PROGRAM TO CHECK A STRING IS PALINDROME OR NOT USING POINTER     MORE C PROGRAM CODING

C program to Swap two numbers using Pointer

 C PROGRAM TO SWAP TWO NUMBERS/VARIABLES USING POINTER:— (a) Call by Value:— (b) Call by Reference:—