Tuesday, 21 March 2017

#define preprocessor

1) What is a C++ preprocessor?
The preprocessors are the directives, which give instruction to the compiler to preprocess the information before actual compilation starts. All preprocessor directives begin with #, and only white-space characters may appear before a preprocessor directive on a line.

2) Explain  #define pre-processor with example .
#define is the preprocessor directive in c and c++ language. It is used to define the preprocessor macros for the texts. The #define is used to make substitutions throughout the file in which it is located

Eg
#define MAX 50

void main()
{
int Array[MAX]; // declares Array with the size of 50
}

3) 

Sunday, 19 March 2017

COMPUTER SCIENCE CLASS XII UNIT WISE MARKS SPLIT UP - VOLUME 1


CLASS 12 CBSE UNIT WISE MARKS SPLIT UP - VOL -I
QUESTION
NO
UNIT
PATTERN
MARKS
1
REVIEW OF C++
a - DEFINITION, DIFFERENCE, IDENTIFICATION
2


b- HEADER FILE IDENTIFICATION
1


c-IDENTIFY THE ERROR
2


d-PREDICT THE OUTPUT
2


e-PREDICT THE OUTPUT
3


f- RANDOM()
2


TOTAL MARKS
12




2
OBJECT ORIENTED PROGRAMMING STRUCTURE
a- OOPS concepts - theory
2


b-Constructors and Destructors
2


c-Classes and Objects
4


d-Inheritance
4


TOTAL MARKS
12




3
DATA STRUCTURE
a- ADDRESS CALCULATION
3


b-1-D ARRAY
2


c- 2-D ARRAY
3


d- STACKS AND QUEUES
4


e-POSTFIX/INFIX
2


TOTAL MARKS
14




4
DATA FILE HANDLING
a - tellg()/seekg()/write
1


b - text file
2


c-binary file
3


TOTAL MARKS
6
TOTAL
44