Posts

Showing posts from 2015

HOLIDAY HOMEWORK - Winter Vacation 2015-16 XI CS

Q1. Find the output of the code given below : #include<iostream.h> void main( ) { int x = 3; switch(x) { case 1 : cout<< “One”; break; case 2 : cout<< “Two”; break; case 3 : cout<< “Three” case 4 : cout<< “Four”; case 5: cout<< “Five”; break; } } Q2. Find error in following code : #include<isotream.h> void main() { int a = 10; int b = 10; int c = 20; switch ( a ) { case b: cout<<”Hurray B”; break; case c: cout<<”Hurray C”; break; default: cout<<”Wrong code”; break; } } Q3. Write a program to find the roots of a quadratic equation. Q4. What do you mean by literals? What are the different kind of literals. Q5. Write the header file for the given function abs(), isdigit(), sqrt(), setw() Q6. Expand the following: i)CPU ii) ROM iii)MICR Q7. Write a program to find either given no is prime or not. Q8. Define the terms Polymorphism & Inheritance. Q9. Distinguish between...

Assignments - XII Computer Science

POINTERS ASSIGNMENT Assignment Date: 09/09/15 Submission Date: 14/09/15 Q1. What will be the output of the following program: int main() { int x [ ] = { 50, 40, 30, 20, 10}: int *p, *t; p = x; t = x + 1; cout << *p << “,” << *t++; return 0; } Q2. What will be the output of the program( Assume all necessary header files are included) void print (char * p ) { p = "Comp"; cout<<"value is "<<p<<endl; } int main( ) { char * x = "Class XII"; print(x); cout<<"new value is "<<x<<endl; return 0; } Q3. Identify errors on the following code segment, and underline the error. float c[ ] ={ 1.2,2.2,3.2,56.2}; float *k,*g; k=c; g=k+4; k=k*2; g=g/2; cout<<”*k=”<<*k<<”*g=”<<*g; Q4. Write the output of the following program. void print (char * p ) { p = "Comp"; cout<<"valu...

Assignments Class XII Informatics Practices

Assignment Date:  14/08/15 Commonly Used Libraries and Database Connectivity Q1. Explain these String class methods with examples.                                                                   i). concat()          ii).  length()         iii).  toLowerCase()                          iv). trim()            v). toUpperCase()                  vi). ...

ASSIGNMENT CLASS XI COMPUTER SCIENCE

Assignment on Programming Methodologies         Assignment Date:          20/08/15 1.     What is Modular Programming?                                             2.     Write any four characteristics of a good program.                    3.     What is documentation? And explain why it is needed?              4.     What are syntax errors, run time errors and logical errors?                5.     Write an algorithm to find the sum of two numbers. 6.     Write an algorithm to find the area of a triangle. 7.     Draw a flowchart to find the area of a circle. 8.     ...

Study Material Class 12th Computer Science, Informatics Practices

Study material for Class XII Computer Science 2015-16, 2014-15 and 2013-15. 12th Computer Science - Study Material 2015-16    (Size  5 MB ) 12th Computer Science - Study Material 2014-15   (Size  2 MB ) 12th Computer Science - Study Material 2013-14 (Size  4  MB  ) _______________________________________________________ Projects - XII CS 2015-16 _______________________________________________________ Study material for Class XII Informatics Practices 2015-16 12th Informatics Practices - Study Material 2015-16    (Size  2 MB ) NOTE: Do read them, practice them and make notes.

Assignment - Class XII Computer Science

Inheritance Assignment Assignment Date – 22-08-15 Submission Date – 25-08-15 1.                   What is inheritance? Discuss its various forms. 2.                   Discuss various reasons that support the concept of inheritance in Object Oriented Languages. 3.                   Answer the questions (i) and (iv) based on the following: class Student { int Rollno; char SName[20]; float Marks1; protected: void Result(); public: Student(); void Enroll(); void Display(); }; class Teacher { long TCode; char TName[20]; protected: float Salary; public: Teacher (); void Enter(); void Show(); }; class Course:public Student,private Teacher { long CCode[10] char CourseName[50]; ch...