Pre-Board Evaluation Exam[2008-09_3]
Sample Paper – 2009
Class – XII
Subject – Computer Science
General Instruction:
(i) All Questions are compulsory
(ii) Programming Language: C++
Q1 a) Differentiate between a global variable and a local variable. Also give suitable example in C++. 2
b) Name the header file required for successful compilation of the given snippet: 1
void main()
{
ifstream fin(“story.txt”);
char ch;
int alpha=0;
if(isalpha(fin.get(ch))
++alpha;
fin.close();
getch();
}
c) Rewrite the given snippet after removing the syntactical error(s), if any. Underline each correction 2
#include
void main()
{
char str[25];
str=”Preboard Exam 2009”;
rev(&str);
puts(str);
}
void rev(char *s)
{
char temp;
for(int x=0,j=strlen(s)-1;x ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
Related searches
- pre op physical exam form
- pre op exam template
- midterm exam prep pre test questions for class sessions
- pre employment physical exam form
- pre employment physical exam template
- pre op physical exam requirements
- pre surgery exam and tests
- pre transplant evaluation icd 10
- pre transplant evaluation cpt code
- pre k evaluation form
- pre op evaluation cpt
- pre k evaluation forms