CBSE Class 12 Computer Science 2 Marks HOTs

Scroll down to download pdf file

CBSE Class 12 Computer Science HOTs Questions Database. Based on CBSE and NCERT guidelines. The students should practice these HOTs Questions to gain perfection which will help him to get more marks in CBSE examination. Based on CBSE and NCERT guidelines. Based on the same pattern as released by CBSE every year. CBSE releases HOTs Questions every year. These papers are released prior to the CBSE board examinations so that students can do practice. databse of 1 marks, 2 marks, 3 marks and 5 marks questions.

 2 Marks Questions

Programming in C++

1. What is wrong with the following while loop:

a. int counter = 1; b. int counter = 1;

while ( counter < 100) while ( counter < 100)

{ cout << counter << “\n;

cout << counter << “\n; counter + +;

counter - -;

}

2. What will be the output of following:

void main ( )

{

int val = 10;

cout << val

3. Given the following code fragment:

int ch = 20;

cout << ch << ++ ch << ch << “\n”;

(i) The output of the code fragment.

(ii) What is the effect of replacing ++ ch with ch + 1?

4. Differentiate between the output of following code fragments:

(i) int f = 1, i = 2; (ii) int f = 1, i = 2;

while (++ i < 5) do {

f *= i; f *= i;

cout << f; } while (++ i < 5);

cout << f;

5. Give output:

#include<iostream.h>

int global = 20;

void fun (int &x, int y)

{

x = x – y; y = x * 10;

cout << x << ‘, ’ << y << ‘\n’;

}

void main()

{

int global = 8;

fun (:: global, global);

cout << global << ‘, ’ << :: global << ‘\n’;

fun (global, :: global);

cout << global << ‘, ’ << :: global << ‘\n’;

}

Please refer to link below to download pdf file of CBSE Class 12 Computer Science 2 Marks HOTs

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

Study in India Short-term curriculum

Short-term curriculum for foreign students under 'Study in India': Yoga Global Planning In order to encourage international students to learn yoga, the Human Resource Development Ministry has decided to introduce training courses under the Modi’s government aspiring ‘...

10 Extra Curricular Activities that a School Student can Enroll in

“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...

Career Options for PCB students after Class 12th

If you’re the one who opted for the medical stream because you liked studying biology. Unfortunately, you have been unable to clear the NEET exam and now worried about their future. Actually, most people think that career options for PCB end at medical. Today in this...

CBSE 2019 Results Date Rumors, Says by CBSE Officials

As soon as the Central Board of Secondary Education (CBSE) result dates coming closer, rumours are also on the peak of its level. All the suppositions are meaningless because the board officials confirmed the declaration date of class 10th and class 12th results. This...

Differences between BCA, B.Sc Computer Science and B.Tech CS

A computer has become very much important nowadays because it can perform tasks very easily, accurate and fast. Due to the increasing usage of computers, there are so many jobs available in enormous fields. If you are interested in working in fields of computers then...

No need to pay CBSE fee for Delhi government school students:

Last month Delhi government announced that the students of government schools will not be charged any fees to the Central Bureau of Secondary Education (CBSE). Well, Delhi Education Minister Manish Sisodia said this while addressing students during a function at the...