(Download) CBSE Class-12 Sample Paper (Computer Science) 2014-15


(Download) CBSE Class-12 Sample Paper (Computer Science) 2014-15

SECTION A

Time allowed : 3 hours

Maximum Marks: 70

Section A (C++)

Q1. a. Differentiate between ordinary function and member functions in C++.

Explain with an example. [2]

b. Write the related library function name based upon the given information in C++.
(i) Get single character using keyboard. This function is available in stdio.h file.
(ii) To check whether given character is alpha numeric character or not. This function is available in ctype.h file. [1]

c. Rewrite the following C++ program after removing all the syntactical errors (if any), underlining each correction. : [2]

include<iostream.h>
#define PI=3.14
void main( )
{ float r;a;
cout<<’enter any radius’;
cin>>r;
a=PI*pow(r,2);
cout<<”Area=”<<a
}

d. Write the output from the following C++ program code: [2]
#include<iostream.h>
#include<ctype.h>


 

 

Click Here To Download Full Sample Paper

 

<<Go Back To Main Page