NCERT Solutions Class 12 Computer Science Arrays

Scroll down to download pdf file

NCERT Solutions Class 12 Computer Science Arrays. NCERT book for Computer Science in class 12 is strongly recommened by teachers and the CBSE and NCERT boards. Please download the NCERT solutions for class 12 Computer Science free in PDF made by teachers of the best schools in India. These solutions are carefully compiled to give detailed understanding of the concepts and also steps of solutions. The NCERT solutions are free to download in pdf format. Please refer to the download link below to download the pdf file and also refer to other chapters and subjects to get the solutions to Computer Science NCERT book questions and exercises.

Chapter - 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 = random(2) + 2;

for (int i = Go; i<4; i ++)

cout<<X [i]<<"$$";

}

(i) 100$$75

(ii) 75$$10$$125$$

(iii) 75$$10$$

(iv) 10$$125$

Answer:

(iv) is correct option

Max. Value = 3

Min. Value = 2

Short Answer Type Questions-II[3 marks each]

Question 1. Write the definition of a function grace score (int score [], int size) in C ++, which should check all the elements of the array and give an increase of 5 to those scores which are less than 40.

Example: if an array of seven integers is as follows: 45,35,85,80,33,27,90

After executing the function, the array content should be changed as follows : 45,40,85,80,38,32,90

Answer:

void grace_score(int score[].int size)

{

for(int i=0;i<size;i++)

{

if (score [i]<40)

score [i]=score[i]+5;

cout< }

}

Please click on link below to download NCERT Solutions Class 12 Computer Science Arrays.

Tags: 


Click on the text For more study material for Computer Science please click here - Computer Science

Latest CBSE News

  • With the increasing number of new technologies and an increasing global population, self-study is growing. Education is no longer restricted to just the classroom. For high school self-study is very important because class 10 and class 12 sets the base for life. Also, self-studying habits help high school students in preparing for a more independent learning environment in college. Download...
  • While the long-standing standards for picking streams in our nation have settled that toppers and tutorially-skilled undergrads normally float towards science, it's pursued being toppled. Undergrads, today, are proactively picking the business stream, regardless of their scholarly standing. In this way, in case you're needing to pick your stream once you are done with tenth, or have just settled...
  • The Indian Board of Education is divided into two boards, CBSE and ICSE. According to the different features of the boards people choose to study in the board the prefer more. The Central Board of Secondary Education (CBSE) is a national level board of education conducted and run by the Union Government of India. It was formed 56 years ago on 3rd November 1962. It is for public and private...
  • As it is the beginning of a new school year, every 11th class CBSE passed student is eager and making plans on how to score the best in their class 12th CBSE boards. It definitely is a good start to reach their goal of scoring 90+ percentages in the exams. Students who have opted for the science stream often get very stressed upon how they are going to perform, let me tell you something…scoring a...
  • As per the latest updates, the Central Board of Secondary Education (CBSE) is thinking to stop many of its subjects. There are existing subjects in which students don’t take interest at all. In past few years there are subjects which are not entertained by the students so CBSE feels that these are better to shut these kind of subjects. The CBSE board has asked for suggestions from the schools...
  • “Education is what remains after one has forgotten what one has learned in school”-AlbertEinstein The statement is indeed true but doesn’t mistake it to be limited to academic education. It clearly implies both types of education-Academic and Non-Academic. Academic education nurtures the brain with the study related knowledge but non-academic helps to recognize the skills one possesses and...
  • When it comes to scoring good marks in the board exams, most of the students waste their time to choosing the right study material. Sometimes it may lead to failure because of the wrong study material. National Education, Research and Training Council (NCERT) have been responsible for distributing the textbooks to students and for their development. NCERT books are very helpful to understand the...