CBSE Guess > Papers > Important Questions > Class XII > 2009 > Computer Science > Computer Science By Mr. M. R. K CBSE CLASS XII Computer Science (Solved) 2008 Delhi: Disable Pop up Blockers to View Solution Q. 1. Name the header files that shall be needed for the following code: void main( ) { char String[ ] = “Peace”; cout << setw(2)<<String ; } Answer : Click Here Q. 2. Rewrite the following program after removing thesyntactical error(s)if any. Underline each correction. #include<iostream.h> void main( ) { Jumpto(First;Second); Jumpto(Second); } void Jumpto(int N1, int N2 = 20) { N1=N1+N2; count<<N1>>N2; } Answer : Click Here
#include<iostream.h> #include<ctype.h> void main( ) { char Text[ ] = “Mind@work!”; for(int I=0; Text[I]!=’\0’;I++) { if(!isalpha(Text[I])) Text[I]=’*’; else if(isupper(Text[I])) Text[I]=Text[I]+1; else Text[I] = Text[I+1]; } cout<<Text; } Answer : Click Here
void main( ) { int U=10,V=20; for(int I=1;I<=2;I++) { cout<<”[1]”<<U++<<”&”<<V – 5 <<endl; cout<<”[2]”<<++V<<”&”<<U + 2 <<endl; } } Answer : Click Here #include<iostream.h> void main( ) { randomize( ); char City[ ][10]={“DEL”,”CHN”,”KOL”,”BOM”,”BNG”}; int Fly; for(int I=0; I<3;I++) { Fly=random(2) + 1; cout<<City[Fly]<<”:”; } } Outputs:
Answer : Click Here Paper By Mr. MRK |