CBSE Class 12 Computer Science 2 Marks HOTs

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:


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



Click to View or Download pdf file
Click for more Computer Science Study Material

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

Class 10 Datesheet announced

CBSE has announced the date sheet for the remaining class 10 Board Exams, see dates below

CBSE Board Results for Class 10 and Class 12

Anticipated CBSE result 2020 Date and Time: This is all you wish to know! Here is the news which all students are waiting for. The expected date and time for the CBSE Class X and XII Results 2020 can be viewed here by the students. CBSE Result 2020: The Central Board...

Class 12 Board Exams Datesheet Announced

CBSE has announced the datesheet of the remaining class 12 board exams, see below:  

Class 10 Board Exams to be held

The CBSE board has announced that there is no change in the decision of conducting the CBSE board exams for the 29 subjects, which were canceled due to coronavirus crisis. So when the lockdown gets relaxed completely, the board will conduct the exams for the students,...

CBSE Boards Answer Sheet Evaluation Class 10 and Class 12

HRD Minister Ramesh Pokhriyal, through a video conference with all the education ministers of the state, discussed the further steps to be taken to smoothen the education process during the Covid-19 lockdown. The most important topic which was discussed repeatedly on...

CBSE Board Exams in July Press Release

CBSE has released press note for the dates for the CBSE Board exams for Class 10. CBSE said “With regards to conduct of Class X examinations several queries are being received by the CBSE. In this context, it is once again reiterated that remaining examinations of...

Studies Today