Sample Question Papers for Class 12 Computer Science
Explore authentic exam practice materials through the CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved. Tailored for Class 12 learners, utilizing these Computer Science sample papers ensures thorough preparation and strengthens time management skills before final CBSE evaluations.
Practice Class 12 Computer Science Exam Papers
View or download the dedicated CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved resource below. Engaging with these sample papers under timed conditions ensures continuous academic progress and mastery of the 2026-27 exam format.
1. (a) What is the difference between Type casting and Automatic type Conversion? Give examples
(b)Write the names of the header files which are necessary to execute the following C++ code
void main()
{ char name[40];
strcpy(name, “Vijay Sharma”);
puts(name)
}
(c) Identify and correct the errors if any, underline the correction
#include<iostream h>
int main
{
Unsigned long i,fact=1;
cout<<”Enter a number “;
cin>>num;
while(num)
{
fact=fact*fact;
--num;
}
cout<<”the factorial is “<<fact;
}
(d) Find the output of the following program (imagine header files are included)
void main()
{
clrscr();
char *NAME = "@KVid5yaLaY*a";
for (int x = 0; x < strlen(NAME); x++)
if (islower(NAME[x]))
NAME[x] = toupper(NAME[x]);
else
if (isupper(NAME[x]))
if (x%2==0)
NAME[x] = tolower(NAME[x]);
else
NAME[x] = NAME[x-1];
puts(NAME);
getch();
}
(e) Give the output of the following program 3
#include<iostream.h>
#include<conio.h>
void Execute(int &B, int C = 50)
{
int TEMP = B+C;
B += TEMP;
if(C != 150)
cout << " "<<TEMP<<" " <<" "<< B <<" "<< C << endl;
}
void main ( )
{
clrscr();
int M = 20, N = 10;
Execute(M);
cout <<" "<< M<< " "<<" "<< N << endl;
Execute(M, N);
cout <<" "<<M <<" "<< N << endl;
getch();
}
(f) Find the possible out put(s) & What will be the minimum & Maximum values 2
#include<stdlib.h>
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
randomize();
int N, numgus;
N=10;
numgus=random(N)+10;
cout<<numgus<<endl;
getch();
}
2. (a)What do you mean by a temporary instance of a class ? What is its use? how is it created?
(b)Answer the questions(i) and(ii) after going through the following class:
class TestMeOut
{public:
~TestMeOut() //Function 1
{ cout<<"Play over"<<endl; }
TestMeOut( ) //Function 2
{cout<<"Preparing to play"<<endl;
void MyWork( )
{ cout<<"Playing"<<endl
}
(i) In OOP what is Function 1 referred as and when does it get invoked?
(ii) In OOP what is Function 2 referred as and when does it get invoked? Write the statement to invoke Function2.
(c) Define a class serverspace with the following specifications.
Private members of the class
Filenames – an array of strings of size[10][25]
( to represent all the names of files inside serverspace )
Availspace – long
( to represent total number of bytes available in serverspace)
Usedspace – long
( to represent total number of bytes used in serverspace)
public members of the class
(d)Answer the questions i to iv based on the following code 4
Newfileentry() – Afunction to accept values of Filenames, Availspace and Usedspace from user
Retavailspace() – A Fucntion that returns the value of total Kilobytes
available ( 1 Kilobytes = 1024 bytes)
Showfiles() – a function that displays the names of all the files in serverspace
Please click the link below to download CBSE Class 12 Computer Science Sample Paper 2017 Solved Set E
Free study material for Computer Science
Model Practice Papers & Solutions for Class 12 Computer Science
Class 12 Computer Science CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved PDF Download Guide
Review model practice papers for Class 12 Computer Science. Working through the CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved under simulated test conditions at home ensures complete familiarity with upcoming school evaluations.
Why Practice Class 12 Computer Science Sample Papers?
- Original Practice Material: Access unique questions for Computer Science designed to challenge your understanding.
- Self-Assessment: Evaluate scores per set to pinpoint weak zones in Class 12 Computer Science.
- Exam Completion Skills: Routine problem sets train you to manage test duration efficiently without stress.
Steps to Follow After Completing CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved
- Review Solutions: Evaluate your completed papers using expert-verified guidance inside our solution sets.
- Target Weaknesses: Class 12 students should analyze missed questions to rectify conceptual misunderstandings.
- Deep Revision: Re-read sections in the NCERT book for Class 12 Computer Science to clear doubts before solving items again.
FAQs
You can download the complete PDF for CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved for free from StudiesToday.com. Our resources for Class 12 Computer Science are updated for the latest academic session and follow the official exam pattern.
Yes, CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved comes with detailed, teacher-verified solutions. We have provided step-by-step answers for Computer Science to help students of Class 12 understand correct methodology and marking scheme.
Practicing this Computer Science paper helps in time management and identifying important topics. For Class 12, solving mock papers is the best way to gain confidence and reduce exam-day anxiety.
Yes, all our study materials for Class 12 Computer Science are provided in a mobile-friendly PDF format. You can easily download CBSE Class 12 Computer Science Sample Paper 2017 Set 05 Solved on your mobile device.