NCERT Solutions Class 12 Computer Science Pointers have been provided below and is also available in Pdf for free download. The NCERT solutions for Class 12 Computer Science have been prepared as per the latest syllabus, NCERT books and examination pattern suggested in Class 12 by CBSE, NCERT and KVS. Questions given in NCERT book for Class 12 Computer Science are an important part of exams for Class 12 Computer Science and if answered properly can help you to get higher marks. Refer to more Chapter-wise answers for NCERT Class 12 Computer Science and also download more latest study material for all subjects. Pointers is an important topic in Class 12, please refer to answers provided below to help you score better in exams
Pointers Class 12 Computer Science NCERT Solutions
Class 12 Computer Science students should refer to the following NCERT questions with answers for Pointers in Class 12. These NCERT Solutions with answers for Class 12 Computer Science will come in exams and help you to score good marks
Pointers NCERT Solutions Class 12 Computer Science
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 existing value
If >=1,00,000 and <20,000 Add 20% in the existing value
If >=2,00,000 Add 15% in the existing value
Answer: Void FixPay(float Pay[],int N)
{
for(int i=0;i<N;i++)
{
if(Pay[i]<100000)
Pay[i]+= Pay[i]*0.25;
else if(Pay[i]<200000)
Pay[i]+= Pay[i]*0.20;
else
Pay[i]+= Pay[i]*0.15 ;
}
}
Question 2: Write the definition of a member function INSERT() for a class QUEUE in C+ +, to remove a product from a dynamically allocated Queue of items considering the following code is already written as a part of the program.
Struct ITEM
{
int INO; char INAME[20];
ITEM*Link;
};
class QUEUE
{
ITEM *R,*F;
Public:
QUEUE(){R=NULL; F=NULL;}
void INSERT();
void DELETE();
~QUEUE();
};
Answer:
Void QUEUE::INSER()
{
ITEM*newitem = new ITEM;
Cout<<"enter item number";
cin>>newitem → INO;
Cout<<"Enter item name";
gets(newitem → INAME);
newitem → Link = NULL;
if (R==NULL)
R=F=newitem;
else
{
R → Link=newitem;
R = newitem;
}
Short Answer Type Questions-I
Question 1: Write the output from the following C+ + program code :
#include<iostream.h>
#include<ctype.h>
void strcon(char s[])
{
for(int i=0,l=0;s[i]!='\0';i++,l++);
fortint j=0;j<l;j++)
{
if(isupper(s[j]))
s[j]=tolower(s[j])+2;
else if( islower(s[j]))
s[j]=toupper(s[j])-2;
else
s[j] ='@';
}
}
void main()
{
char *c="Romeo Joliet";
strcon(c);
cout<<"Text="<<c<<endl;
c=c+3;
cout<<"New Text="<<c<<endl;
c=c+5-2 ;
cout<<"last Text= "<<c;
}
Answer:
Text = tMKCM@lMJGCR
New Text = KCM@1MJGCR
Last Text = 1MJGCR
Question 2: Obtain the output of the following C+ + program as expected to appear on the screen after its execution.
Important Note :
All the desired header files are already included in the code, which are required to run the code.
void main()
{
char *Text="AJANTA"; int *P, Num[]={l,5,7,9}
P=Num;
cout <<*p<< Text <<endl;
Text++;
P++;
cout<<*P<<Text<<endl;
}
Answer:
1AJANTA
5JANTA
Question 3: Obtain the output from the following C+ + program as expected to appear on the screen after its execution.
Important Note:
• Adi the desired header files are already included in the code, which are required to run the code.
void main()
{
char *String="SARGAM";
int *Ptr, a[]={1,5,7,9};
ptr=a;
cout<<*ptr<<String<<endl;
String++;
ptr+=3;
cout<<*ptr<<String<<endl;
}
Answer:
1 SARGAM
9ARGAM
Question 4: Give the output of the following program segment: (Assuming all desired header file(s) are already included)
void main()
{
float *Ptr, Points[] = {20,50,30,40,10};
Ptr = points;
cout<<*Ptr<<endl;
Ptr+=2;
Points[2]+=2.5;
cout<<*Ptr<<endl;
Ptr++;
(*Ptr)+=2.5;
cout<<Points[3]<<endl;
}
Answer:
20.00 32.5
42.50
Question 5: Find the output of the following code :
Important Note :
All the header files are already included in the code, which are required to run the code.
void main()
{
char *String="SHAKTI";
int*Point,Value[]={10,15,70,19};
Point=Value;
cout<<*Point<<String<<endl;
String++;
Point++;
cout<<*Point<<String<<endl;
}
Answer:
10SHAKTI
15HAKTI
Question 6: Write the output of the following C+ + program code :
Note : Assume all required header files are already being included in the program.
void change(int*s)
{
for(int i=0;i<4;i++)
{
if(*s<40)
{
if(*s%2==0)
*s=*s+10;
else
*s=*s+ll;
}
else
{
if(*s%2==0)
*S=*S-10;
else
*s=*s-ll;
}
cout<<*s<<" ";
s++;
}
}
void main()
{
int score[]={25,60,35,53 };
change(score);
}
Answer:
36 50 46 42
Short Answer Type Question-II
Question 1: Find the output of the following program :
#include<iostream.h>
void in(int x,int y,int &z)
{
x+=y;
y--;
z*=(x-y);
}
void out(int z,int y,int &x)
{
x*=y;
y++;
z/=(x+y);
}
void main()
{
int a=20, b=30, c=10;
out(a,c,b);
cout<<a<<"#"<<b<<"#"<<c<<"#"<<endl;
in(b,c, a) ;
cout<<a<<"®"<<b<<"@"<<c<<"@"<<endl;
out(a,b,c);
cout<<a<<"$"<<b<<"$"<<c<<"$"<<endl;
}
Answer:
20#300#10#
620@300@10@
620$300$3000$
Long Answer Type Questions
Question 1:
Find the output of the following code:
#include<iostream.h>
void main()
{
int *Striker;
int Track[]={10,25,30,55};
Striker=Track;
Track[1]+=30;
cout<<"Striker"<<*Striker<<endl;
*Striker=-10;
Striker++;
cout<<"Next@"<<*Striker<<endl;
Striker+=2;
cout<<"Last@"<<*Striker<<endl;
cout<<"Rest To"<<*Track[0]<<endl;
}
Answer:
Striker 10
Next@55
Last@55
Rest To 0
Question 2: Find the output of the following code :
#include<iostream.h>
void main()
{
int *Queen;
Moves[]={ll,22,33,44};
Queen=Moves;
Moves[2]+=22;
cout<<"Queen@"<<*Queen<<endl;
*Queen-=ll;
Queen+=2;
cout<<”Now@"<<*Queen<<endl;
Queen++;
cout<<"Finally@"<<*Queen<<endl;
cout<<"NewOrigin@"<<*Moves[0]<<endl;
}
Answer:
Queen@11
Now@55
Finally@44
NewOrigin@0
NCERT Solutions Class 12 Computer Science Chapter 3 Stack |
NCERT Solutions Class 12 Computer Science Chapter 4 Queue |
NCERT Solutions Class 12 Computer Science Chapter 8 Database Concepts |
NCERT Solutions Class 12 Computer Science Chapter 9 Structured Query Language |
NCERT Solutions Class 12 Computer Science Pointers
NCERT Solutions Class 12 Computer Science Pointers is available on our website www.studiestoday.com for free download in Pdf. You can read the solutions to all questions given in your Class 12 Computer Science textbook online or you can easily download them in pdf.
Pointers Class 12 Computer Science NCERT Solutions
The Class 12 Computer Science NCERT Solutions Pointers are designed in a way that will help to improve the overall understanding of students. The answers to each question in Pointers of Computer Science Class 12 has been designed based on the latest syllabus released for the current year. We have also provided detailed explanations for all difficult topics in Pointers Class 12 chapter of Computer Science so that it can be easier for students to understand all answers.
NCERT Solutions Pointers Class 12 Computer Science
Class 12 Computer Science NCERT Solutions Pointers is a really good source using which the students can get more marks in exams. The same questions will be coming in your Class 12 Computer Science exam. Learn the Pointers questions and answers daily to get a higher score. Pointers of your Computer Science textbook has a lot of questions at the end of chapter to test the students understanding of the concepts taught in the chapter. Students have to solve the questions and refer to the step-by-step solutions provided by Computer Science teachers on studiestoday to get better problem-solving skills.
Pointers Class 12 NCERT Solution Computer Science
These solutions of Pointers NCERT Questions given in your textbook for Class 12 Computer Science have been designed to help students understand the difficult topics of Computer Science in an easy manner. These will also help to build a strong foundation in the Computer Science. There is a combination of theoretical and practical questions relating to all chapters in Computer Science to check the overall learning of the students of Class 12.
Class 12 NCERT Solution Computer Science Pointers
NCERT Solutions Class 12 Computer Science Pointers detailed answers are given with the objective of helping students compare their answers with the example. NCERT solutions for Class 12 Computer Science provide a strong foundation for every chapter. They ensure a smooth and easy knowledge of Revision notes for Class 12 Computer Science. As suggested by the HRD ministry, they will perform a major role in JEE. Students can easily download these solutions and use them to prepare for upcoming exams and also go through the Question Papers for Class 12 Computer Science to clarify all doubts
You can download the NCERT Solutions for Class 12 Computer Science Pointers for latest session from StudiesToday.com
Yes, you can click on the link above and download NCERT Solutions in PDFs for Class 12 for Computer Science Pointers
Yes, the NCERT Solutions issued for Class 12 Computer Science Pointers have been made available here for latest academic session
You can easily access the links above and download the Pointers Class 12 NCERT Solutions Computer Science for each chapter
There is no charge for the NCERT Solutions for Class 12 Computer Science Pointers you can download everything free
Regular revision of NCERT Solutions given on studiestoday for Class 12 subject Computer Science Pointers can help you to score better marks in exams
Yes, studiestoday.com provides all latest NCERT Pointers Class 12 Computer Science solutions based on the latest books for the current academic session
Yes, studiestoday provides NCERT solutions for Pointers Class 12 Computer Science in mobile-friendly format and can be accessed on smartphones and tablets.
Yes, NCERT solutions for Class 12 Pointers Computer Science are available in multiple languages, including English, Hindi
All questions given in the end of the chapter Pointers have been answered by our teachers
NCERT solutions for Computer Science Class 12 can help you to build a strong foundation, also access free study material for Class 12 provided on our website.
Carefully read the solutions for Class 12 Computer Science, understand the concept and the steps involved in each solution and then practice more by using other questions and solutions provided by us