CBSE Class 12 Computer Science Revision Worksheet

Official Class 12 Computer Science Worksheets: All Chapters

Access printable practice worksheets for All Chapters designed to align with the 2026-27 academic syllabus for Class 12 Computer Science. These structured exercises help students evaluate their conceptual understanding and improve exam readiness.

Chapter-wise Practice Material: All Chapters

Navigate directly to the printable exercises for All Chapters using the digital viewer below. Each practice set allows students to isolate specific topics for thorough review and uninterrupted practice alongside standard textbooks.

Revision Tour
 
1. What is the difference between Global and Local Variables? Give an example to illustrate the same.
 
2. Illustrate the use of inline function in C++ with the help of an example.
 
3. Differentiate between Run Time Error and Syntax Error. Also give suitable examples of each in C++.
 
4. Differentiate between a Logical and Syntax error. Also give suitable examples of each in C++.
 
5. What is the difference between #define and const? Explain with suitable example.
 
6. What is the purpose of using typedef command in C++? Explain with suitable example.
 
7. What is the difference between type casting and automatic type conversion? Explain with suitable example.
 
8. What is the difference between Call By Value and Call By Reference in a user defined function in C++? Give an example to illustrate the same.
 
9. What is the difference between Actual parameter and Formal parameter? Give an example in C++ to illustrate both type of parameters.
 
10. Name the Header files that shall be needed for successful compilation of the following C++ code:
 
void main( )
{ char Text[40];
strcat(Text, ”AISSES”);
puts(Text); }
 
11. Name the Header files that shall be needed for successful compilation of the following C++
code:
void main() {
char String[] = “Peace”;
cout << setw(20) <
 
12. Name the Header files that shall be needed for successful compilation of the following C++
code:
void main() {
char Str[30], ch; cin>>Str;
cin>>Str; ch = tolower(Str[0]);
cout << ”The first Character of “ << Str << ” = “ << ch; }
 
13. Re Write the following program after removing the syntactical error(s), if any. Underline each correction.
#include
constint Divider 5;
void main(){
Number = 15;
for (int Count = 1, Count<=5; Count++, Number-=3)
if ( Number%Divider == 0 )
cout<
cout << endl;
else
cout<
}
 
14. Find the Output of the following program:
 
#include
#include
#include
void Change(char Msg[], int Len)
{
for (int Count=0; Count
{
if (islower(Msg[Count]))
Msg[Count] = toupper(Msg[Count]);
else if (isupper(Msg[Count]))
Msg[Count] = tolower(Msg[Count]);
else if (isdigit(Msg[Count]))
Msg[Count] = Msg[Count] + 1;
elseMsg[Count] = '*';
}
}
void main()
{
char Message[] = "2018 All The Best Class 12";
int Size = strlen(Message);
Change(Message, Size);
cout<< Message <
for (int C = 0, R = Size-1; C <= Size/2; C++, R--)
{
char Temp = Message[C];
Message[C] = Message[R];
Message[R] = Temp;
}
cout<
}
 
15. Observe the following program GAME.CPP carefully, if the value of Num entered by the user is 3, choose the correct possible output(s) from the options from (i) to (iv), and justify your opinion.

#include

#include

void main()
{
randomize(); intNum, Rndnum; cin>>Num;
Rndnum = random(Num) + 5;
for (int N = 1; N <= Rndnum; N++)
cout<< N<< " ";
}
Output Options: (i) 1 2 3 4 (ii) 1 2 3 4 5 6 7 8 9 (iii) 1 2 3 4 5 6 (iv) 1234567
 
16. Find the Output of the following program:
 
#include
int x = 10;
void pass(int&a, int b, int&c)
{
int x = 4; c += x;
a *= ::x; b += c;
}
void main()
{
int y = 1, x = 2;
pass(y, ::x, x); cout<< x << ':' << y << ':' << ::x; cout<
pass(::x, x, y); cout<< x << ':' << y << ':' << ::x;
}
 
17. Find the Output of the following program:
 
#include
void main()
{
long NUM=1234543;
int F=0, S=0;
do{
int Rem = NUM%10;
if (Rem % 2 != 0)
F+=R;
else S+=R;
NUM /=10;
}while (NUM>0);
cout<< F-S;}
 
18. Rewrite the following program after removing syntactic error(s) if any. Underline each correction:
 
#include
const int MAX 10;
void main() {
int Numbers{MAX};
Numbers = {20,50,10,30,40};
for(Loc = Max – 1; Loc>= 0; Loc--)
cout>> Number[Loc];
 
19. Find the output of the following program:
 
#include
voidWithdef(int HisNum = 30)
{
for (int I=20; I<=HisNum; I+=5)
cout<< I << ",";
cout<
}
void Control(int &MyNum)
{
MyNum+=10;
Withdef(MyNum);
}
void main()
{
intYourNum=20;
Control(YourNum);
Withdef();
cout<<"Number=" <
}
 
20. In the following program what is the expected value of MyMarks from Options (i) to (iv) given below. Justify your answer.
 
#include
#include
void main() {
randomize(); int Marks[] = {99,92,94,96,93,95}, MyMarks;
MyMarks = Marks[1+random(2)];
cout<
}
Output Options : (i) 99 (ii) 94 (iii) 96 (iv) None of the above.


Please click on below link to download CBSE Class 12 Computer Science Revision Worksheet

All Chapters Practice Sheet and Solutions for Class 12 Computer Science

CBSE Practice Material: Class 12 Computer Science All Chapters

Explore reliable practice questions for All Chapters tailored for Class 12 Computer Science learners. Use these structured worksheets to evaluate preparedness and strengthen problem-solving skills.

NCERT-Aligned Questions and Solutions

Built using the official NCERT book for Class 12 Computer Science, these practice materials provide reliable academic guidance. Pair your practice with our recommended NCERT solutions to master optimal problem-solving approaches.

Next Steps in Your Exam Preparation

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

Where can I download the latest PDF for CBSE Class 12 Computer Science Revision Worksheet?

You can download the teacher-verified PDF for CBSE Class 12 Computer Science Revision Worksheet from StudiesToday.com. These practice sheets for Class 12 Computer Science are designed as per the latest CBSE academic session.

Are these Computer Science Class 12 worksheets based on the 2026-27 competency-based pattern?

Yes, our CBSE Class 12 Computer Science Revision Worksheet includes a variety of questions like Case-based studies, Assertion-Reasoning, and MCQs as per the 50% competency-based weightage in the latest curriculum for Class 12.

Do you provide solved answers for CBSE Class 12 Computer Science Revision Worksheet?

Yes, we have provided detailed solutions for CBSE Class 12 Computer Science Revision Worksheet to help Class 12 and follow the official CBSE marking scheme.

How does solving CBSE Class 12 Computer Science Revision Worksheet help in exam preparation?

Daily practice with these Computer Science worksheets helps in identifying understanding gaps. It also improves question solving speed and ensures that Class 12 students get more marks in CBSE exams.

Is there any charge for the Class 12 Computer Science practice test papers?

All our Class 12 Computer Science practice test papers and worksheets are available for free download in mobile-friendly PDF format. You can access CBSE Class 12 Computer Science Revision Worksheet without any registration.