NCERT Solutions Class 12 Computer Science Chapter 3 Stack

Question 2. Evaluate the following postfix expression: (show status of Stack after each operation) 100,40,8,/,20,10,-,+,* Answer:  Question 3. Evaluate the following postfix expression. Show the status of stack after execution of each operation separately: T…

NCERT Solutions Class 12 Computer Science Chapter 4 Queue

Question : Define member function delque() to perform delete operation on a linked queue where each node has the following structure : struct node { char name[20] int marks; node *link; }; class queue { node *front,‘rear; public : queue() {front=rear=NULL; } void delque…

NCERT Solutions Class 12 Computer Science Pointers

Question 1: Write the definition of a function FixPay (float Pay[ ], int N) in C+ + , which should modify each element of the array Pay having N elements, as per the following rules : Existing Salary Value Required Modification in Value If less than 1,00,000 Add 25% in the…

NCERT Solutions Class 12 Computer Science Object Oriented Programming in C++

Question 1: Differentiate between data abstraction and data hiding.  Answer: Data hiding can be defined as the mechanism of hiding the data of a class from the outside world. This is done to protect the data from any accidental or intentional access. Data hiding is…

NCERT Solutions Class 12 Computer Science Networking and Open Source Concepts

Question 1: Identify the Domain name and URL from the following : http://www.income.in/home.aboutus.hml Answer: Domain name – income.in     URL – http://www.income.in/home.aboutus.hml Question 2: What is Web Hosting? Answer: Web hosting is the service…

NCERT Solutions Class 12 Computer Science Inheritance

Question 1: Answer the questions (i) to (iv) based on the following: class ITEM { int ID; char IName[20]; protected: float Qty; public: ITEM(); void Enter(); void View(); }; Class TRADER; { int DCode; Protected: char Manager[20]; public: TRADER(); void Enter(); void View…

NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts in C++

Question 1: Observe the following C++ code and answer the question (i) and (ii):  class Traveller { long PNR; char TName [20]; public : Traveller ( ) //Function 1 {cout<<"Ready"<<endl;} void Book (long P, char N [ ]) //Function 2 {PNR = P, strcpy (TName,…

NCERT Solutions Class 12 Computer Science Data File Handling

Question 1. Write a user defined function word_count() in C+ + to count how many words are present in a text file named “opinion.txt”. For Example, if the file opinion.txt contains following text: Co-education system is necessary for a balanced society. With co-education system…

NCERT Solutions Class 12 Computer Science Constructor and Destructor

Question 1: Write four characteristics of constructor function used in a class.  Answer: (i) A constructor function has no return type. (ii) Name of constructor is same as that of class. (iii) A constructor can be called while creating objects. (iv) If there is no…

NCERT Solutions Class 12 Computer Science C++ Revision Tour

Question 1: Write the related library function name based upon the given information in C++. 1. Get single character using keyboard. This function is available in stdio.h file. 2. To check whether given character is alpha numeric character or not. This function is available in…

NCERT Solutions Class 12 Computer Science Arrays

Question 1. Observe the following C++ code and find out, which out of the given options (i) to (iv) are the expected correct output. Also assign the maximum and minimum value that can be assigned to the variable ‘Go’. void main() { int X [4] = {100, 75, 10, 125}; int Go =…

NCERT Solutions Class 12 Computer Science Chapter 9 Structured Query Language

Chapter - Structured Query Language Question 1: Differentiate between delete and drop table command ? Аnswer: DELETE command is used to remove information from a particular row or rows. If used without any condition, it will delete all row information but not the structure of…

NCERT Solutions Class 12 Computer Science Chapter 8 Database Concepts

Chapter - Database Concepts Question 1: What is relation? Define the relational data model. Answer: A relation is a table having atomic values, unique row and unordered rows and columns. The relational mode represent data and relationship among data by a collection of tables…

NCERT Solutions Class 12 Computer Science Boolean Algebra

    Question 5: State and verify Associative law using Truth Table. Аnswer: Associative Law: This law states that: (A + B) + C = A + (B + C) (A.B).C = A. (B.C) Short Answer Type Questions-I  Question 1: Correct the following Boolean statements…