NCERT Solutions Class 12 Computer Science Arrays

Scroll down for PDF

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 NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

JEE Main registration 2020 List of qualifying exams

JEE Main registration 2020: List of qualifying exams The process of JEE (Joint Entrance Examination) Main has already been started from September 3, 2019, on the official website of JEE, i.e. jeemain.nic.in. The interested and eligible students can also apply for JEE...

CBSE and Microsoft join hands to build capacity for AI learning for schools

Central Board of Secondary Education and Microsoft join hands to build capacity for AI learning for schools : The officials from the Central Board of Secondary Education have announced that they have partnered with Microsoft India to conduct several capacity building...

CBSE Board Exam 2020 Major developments

CBSE Board Exam 2020: Major developments for Class 9th, 10th, 11th and 12th | Check details : CBSE board exam 2020: Here are all the major decisions that the CBSE (Central Board of Secondary Education) has taken for Classes 9th, 10th, 11th and 12th. In the last 2...

CBSE Board Exams 2020 Attendance rules revised for Class 10 and 12 students

CBSE Board Exams 2020: Attendance rules revised for Class 10, 12 students : The Central Board of Secondary Education (CBSE) has announced new rules to deal with the cases of short attendance of students of all its affiliated schools. The board has issued a set of...

IBM to Set AI Curriculum for CBSE Class IX to XII

The Central Board of Secondary Education has tied up with IBM to develop a course of Artificial Intelligence in the CBSE curriculum. Now CBSE is going to introduce Artificial Intelligence as an elective subject for class 9 to 12th. The CBSE has taken this decision to...

Vidya Daan by CBSE

CBSE has launched a new initiative to provide free of cost quality education to students in rural areas. CBSE has named that initiative “Vidya Daan”. Lot of reforms are been continuously done by CBSE so that the teachers can offer a personalized experience to students...

×
Studies Today