CBSE Class 12 Computer Science 3 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.

3 Marks Questions
Programming in C++
1 Give output of following code fragment:
int val, res, n = 1000;
cin >> val;
res = n + val > 1750 ? 400 : 200;
cout << res;
(a) if the input is 2000.
(b) if the input is 1000.
(c) if the input is 500.
 
2 What will be the output if input is:
(i) a (ii) c (iii) d (iv) h (v) b
char ch, out [10] = “ ”;
cin >> ch;
switch (ch) {
case ‘a’: strcat(out, “a”);
case ‘b’: strcat(out, “b”);
case ‘c’: strcat(out, “c”);
break;
case ‘d’: strcat(out, “d”);
break;
default : strcat(out, “Not abcd”);
}
cout << out << endl;
 
3 Give output of following code fragment:
char *msg = “a ProFile”;
for (int i = 0; i < strlen (msg); i++)
if (islower(msg[i]))
msg[i] = toupper (msg[i]);
else
if (isupper(msg[i]))
if( i % 2 != 0)
msg[i] = tolower (msg[i-1]);
else
msg[i--];
cout << msg << endl;
 
4 Give output of following code fragment:
5char *msg = “WELCOME”;
for (int i = strlen (msg) - 1; I >= 0; i--)
if (islower(msg[i]))
msg[i] = toupper (msg[i]);
else
if (isupper(msg[i]))
if( i % 2 != 0)
msg[i] = tolower (msg[i-1]);
else
msg[i--];
cout << msg << endl;
 
5 Find output
#include<iostream.h>
struct Box {
int Len, Bre, Hei;
};
void Dimension(Box B)
{
cout << B.Len << “ X ” << B.Bre << “ X ”;
cout << B.Hei << endl;
}
void main ( )
{
Box B1 = {10, 20, 8}, B2, B3;
++B1.Hei;
Dimension (B1);
B3= B1;
++B3.Len;
B3.Bre++;
Dimension (B3);
B2= B3;
B2.Hei += 5;
B2.Len - = 2;
Please refer to link below to download pdf file of CBSE Class 12 Computer Science 3 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

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

Board Exams Set the Base for Successful Life

Board exams play a very important role in our lives. It boosts our knowledge and also helps to know our status in academic life. Both class 10th and class 12th play a very significant role in a student’s life.It also helps inselecting the stream of their own choice. So...

Self-study builds confidence in students

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

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

No Practical Examination at Home Centers: CBSE

So far, the practical examinations of students appearing for the Central Board of Secondary Education (CBSE) were held at home centres, but from now on this year, plans like conducting practical exams at the external centres just like the board, theory paper is...

What to do if you fail in the class 12th compartment exam

The Central Board of Secondary Education (CBSE) has declared the results of the class 12 compartment examination held on July 2. By the way, students who have passed the exams can breathe in relief, but those students who have not yet passed, they have to focus on...