Sei sulla pagina 1di 1

Modern Public School

Subject :Computer science Class :XI

1. Give the character set of c++.


2. What are escape sequences?
3. Name datatypes in c++ and their sizes.
5. Why is main() function special ?Give two reasons.
6. What is the application of void data type in C++ ?
7. Distinguish between constants and variables.Give examples of each.
8. What are keywords? Give examples.
9. Identify errors in the code given:
#include<iostream.h>
main()
clrscr();
x=5;
y=10;
z=x+y;
cout>>z;
10. What will be the output of the following code?
#include<iostream.h>
main()
{ int a,b,c;
float x,y;
a=12;b=7;x=3.5;
c=a/b;
cout<<c;
y=a/b;
cout<<y;
c=a/x;
cout<<c;
y=a/x;
cout<< y; }

Potrebbero piacerti anche