Skip to main content

Posts

HOLIDAY HOME WORK FOR CLASS XII B 2016-17 (SUMMER VACATION)

Q1.  Observe  the  following  C++  code  and  write  the  name(s)  of  the header  file(s),  which  will  be  essentially  required  to  run  it  in  a C++ compiler :                                 void main() { char CH,STR[20]; cin>>STR; CH=toupper(STR[0]); cout<<STR<<”starts with”<<CH<<endl; } Q2.  Rewrite  the  following  C++  code  after  removing  all  the  syntax error(s),  if   present  in  the  code.  Make sure that you  underline each correction done by you in the code.                  ...

SQL Practical Question

Create table “EMP” as per the following specification: COLUMN NAME DATATYPE SIZE CONSTRAINTS Emp_No Integer 4 Primary Key Emp_Name Varchar2 20 Not Null Job Varchar2 10 Hiredate Date dd-mm-yyyy Salary Float 10,2 Salary>10000 Commission Integer 4 DeptNo Integer 2 10,20 or 30 Job Types are: ·          President ·          Manager ·          Clerk ·          Salesman Commission given only to ‘salesman’. QUESTIONS 1)       Create the above table including its constraints. 2)     ...

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.     ...