Posts

Showing posts from September, 2013

XI C++ HOME ASSIGNMENT--SOLUTION (TEST C++ SKILLS)

CRACK TOUGH NUTS IN C++ Test your skills in C++ PART-1 “Useful for XI Computer Science Students to test their understanding lavel in C++ “ QUESTIONS WITH SOLUTION 1.Smallest Program in C++ : main(){} 2.Identify the erroes if any: main(){ return 5;} // 0 error….Because “By default main() function returns an integer”. int main(){ return 5; } //no error int main(){ return; // return <integral expression> Here function must return an integral value; }//or write void instead of int as return type of main() function. void main(){ return;} // no error char main(){ char c=65; return c; } //error- main must return an int or void no other data type int main(){ char c=65; return c; }// No error..because c has its ASCII Code as its value and that is an integer int main(){ return int(5.8999); }//0 error 0 warning int main(){ return 5.8999; } // [warning] converting to “int” from “double”—loss of data due to truncation of fractional part int main(){ return 5.8; }// [war...

SOLUTION-XIIC- INFORMATICS PRACTICES-2ND MONTHLY -AUGUST 2013

KENDRIYA VIDYALAYA NO. 1 , NAUSENABAUGH, VISAKHAPATNAM Monthly Test (August-2013)  Subject : Informatics Practices Class :  XII      Section : C      Duration: 90 Min.           Max Marks :50 Attempt all questions. (Q1) What do you mean by the term open source software?                                      (1 Mark) ( Ans )  Open source software is the software which can be used, studied, modified and redistributed and whose source code is available. It may or may not be chargeable. (Q2)What do you mean by free software?                           ...

SOLUTION-XII B COMPUTER SCIENCE-2ND MONTHLY-AUGUST 2013

KENDRIYA VIDYALAYA NO. 1 , NAUSENABAUGH, VISAKHAPATNAM Monthly Test (August 2013) Subject : Computer Science Class :  XII      Section : B      Duration: 90 Min.           Max Marks :50 Attempt all questions. Q1. Write a function in C++ to print the count of the word “the” (ignore case while matching) as an independent word in a text file STORY.TXT .     (5Marks) For example, if the content of the file STORY.TXT is There was a monkey in the park. The monkey was very naughty. The name of the park was VUDA Park. Then the output of the program should be 4. ANSEWER:::A COMPLETE PROGRAM::::: #include<fstream.h> #include<stdlib.h> #include<stdio.h> void main()  {                      ofstream fout;   ...