You are on page 1of 1

Computer Science

Class XI
Homework ( Week : 1st July 4th July)
( Getting Started with C++ )
1. What is the use of preprocessor directive #include <iostream.h> in a C++
program?
2. What is meant by the term token? Name the categories of tokens available in
C++?
3. What are keywords? Can keywords be used as identifiers?
4. Which of the following are valid identifiers ?Give reasons for invalid identifiers
Data_rec, Data rec,_data, 1 data, data 1
5. Find errors,if any, in the following statements:
(a) cout<<X=; X;
(b) cin >>x;>>y;
(c) cout<<Enter a number.

(d) cin>>x;

You might also like