KendriyaVidyalayaDhule

Summer Vacation Holiday Homework for Class XII Subject Computer Science

Q1. Which C++ header file(s) will be essentially required to be included to run /execute the following C++ code:

void main()

{

charMsg[ ]="Sunset Gardens";

for (int I=5;I<strlen(Msg);I++) //String.h

puts(Msg);// stdio.h

}

Q2. Name the header files that shall be need for the following code:

void main()

{

char text[] =”Something”

cout<”Remaining SMS chars: ”<160-strlen(text)<endl;//string.h

}

Q3. Rewrite the following program after removing the syntactical error(s) if any.Underlineeach correction.

#include<iostream.h

Class Item

{

longIId, Qty;

public:

void Purchase { cinIIdQty;}

void Sale()

{

coutsetw(5)<IId<”Old:”< Qtyendl;

cout< “New :”<Qtyendl;

} };

void main()

{

Item I;

Purchase();

I.Sale()

}

Q4. Find the output of the following program:

#include<iostream.h

#include<ctype.h

typedef char Str80[80];

void main()

{

char *Notes;

Str80 str= “ vR2GooD”;

int L=6;

Notes =Str;

while(L>=3)

{

Str[L]=(isupper(Str[L])? tolower(Str[L]) : toupper(Str[L]));

cout<Notes<endl;

L--;

Notes++;

}

}

Q5. Observe the following program and find out, which output(s) out id (i) to (iv) will not be expected from program? What will be the minimum and maximum value assigned to the variables Chance?

#include<iostream.h> CBSE 2012

#include<stdlib.h

void main()

{

randomize();

intArr[] = {9,6};, N;

int Chance = random(2)+10;

for(int c=0;c<2;c++)

{

N= random(2);

coutArr[N];

}

}

Q6. Find the output of the following program:

#include<iostream.h

class METRO

{

intMno, TripNo, PassengerCount;

public:

METRO ( intTmno=1)

{ Mno =Tmno; PassengerCount=0;}

void Trip(int PC=20)

{ TripNo++, PassengerCount+=PC};

voidStatusShow()

{ coutMno< “:”<TripNo< “ :”<PassengerCountendl;}

};

void main()

{

M / 5 / 0 / 0
5 / 1 / 20

METRO M(5),T;

M.Trip();

T / 1 / 0 / 0
1 / 1 / 0

M.StatusShow();

T.StatusShow();

M.StatusShow();

}

Q7. Rewrite the following program after removing the syntactical error(s) if any. Underline each correction.

#include<iostream.h

void main( )

{ F = 10, S = 20;

test(F;S);

test(S);

}

void test(int x, int y = 20)

{ x=x+y;

count<x>y;

}

Q8. Rewrite the following program after removing syntactical error(s) if any. Underline

each correction.

#include “iostream.h”

Class MEMBER

{ intMno;

float Fees;

PUBLIC:

void Register ( ) {cinMno>Fees;}

void Display( ) {coutMno<" : "<Fees<endl;}

};

void main()

{ MEMBER delete;

Register();

delete.Display();

}

Q9. Find the output for the following program:

#include<iostream.h

#include<ctype.h

voidEncript ( char T[ ])

{ for( int i=0 ; T[i] != ‘ \0’ ; i += 2)

if( T[i] = = ‘A’ || T[i] = = ‘E’ )

T[i] = ‘#’ ;

else if (islower (T[i] ))

T[i] = toupper(T[i]);

else

T[i] = ‘@’;}

void main()

{ char text [ ] = “SaVEEArTh in 2012”;

encrypt(text);

cout<text<endl;

}

Q10. Find the output of the following program:

#include<iostream.h

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; } }

Q11. Rewrite the following C++ program after removing the syntax error(s) if any.

Underline each correction.

include<iostream.h

class FLIGHT

{ LongFlightCode;

Char Description[25];

public

voidaddInfo()

{ cinFlightCode; gets(Description);}

voidshowInfo()

{ coutFlightCode<”:”<Description<endl;}

};

void main( )

{ FLIGHT F;addInfo.F();showInfo.F;}

Q12. In the following program, find the correct possible output(s)from the options:

#include<stdlib.h

#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:

(i) DEL : CHN : KOL: (ii) CHN: KOL : CHN:

(iii) KOL : BOM : BNG: (iv) KOL : CHN : KOL:

Q13. In the following C++ program what is the expected value of Myscore from options (i) to (iv) given below. Justify your answer.

#include<stdlib.h

#include<iostream.h

void main( )

{ randomize( );

int Score[ ] = {25,20,34,56,72,63},Myscore;

coutMyscoreendl;

}

i) 25 (ii) 34 (iii) 20 (iv) Garbage Value.

Q14. Define a class TAXPAYER in C++ with following description:

Private members :

Name of type string

PanNo of type string

Taxabincm (Taxable income) of type float

TotTax of type double

A function CompTax( ) to calculate tax according to the following slab:

Taxable Income Tax%

Up to 160000 0

>160000 and <=300000 5

>300000 and <=500000 10

>500000 15

Public members :

A parameterized constructor to initialize all the members

A function INTAX( ) to enter data for the tax payer and call function CompTax( ) to assign TotTax.

A function OUTAX( ) to allow user to view the content of all the data members.

Q15. Define a class HOTEL in C++ with the following description:

Private Members

Rno//Data Member to store Room No

Name //Data Member to store customer Name

Tariff //Data Member to store per day charge

NOD //Data Member to store Number of days

CALC //A function to calculate and return amount as NOD*Tariff and if the value of NOD*Tariff is more than 10000 then as 1.05*NOD*Tariff

Public Members:

  • Checkin( ) //A function to enter the content RNo,Name, Tariff and NOD
  • Checkout() //A function to display Rno, Name, Tariff, NOD and Amount (Amount to be displayed by calling function CALC( )

Q16. Define a class Applicant in C++ with following description:

Private Members

  • A data member ANo ( Admission Number) of type long
  • A data member Name of type string
  • A data member Agg(Aggregate Marks) of type float
  • A data member Grade of type char
  • A member function GradeMe( ) to find the Grade as per the Aggregate Marks obtained by a student. Equivalent Aggregate marks range and the respective Grades are shown as follows

Aggregate Marks Grade

> = 80 A

Less than 80 and > = 65 B

Less than 65 and > = 50 C

Less than 50 D

Public Members

  • A function Enter( ) to allow user to enter values for ANo, Name, Agg & call function GradeMe( ) to find the Grade
  • A function Result ( ) to allow user to view the content of all the data members.

Q17. Define a class ITEM in C++ with following description:

Private members:

  • Icode of type integer (Item Code)
  • Item of type string (Item Name)
  • Price of type Float (Price of each item)
  • Qty of type integer (Quantity in stock)
  • Discount of type float (Discount percentage on the item)
  • A find function finddisc( ) to calculate discount as per the following rule:

If Qty <=50 discount is 0%

If 50 < Qty <=100 discount is 5%

If Qty>100 discount is 10%

Public members :

  • A function Buy( ) to allow user to enter values for Icode, Item,Price, Qty and call function Finddisc ( ) to calculate the discount.
  • A function showall ( ) to allow user to view the content of all the data members.

Define a class employee with the following specifications : 4

Private members of class employee

  • empno integer
  • ename 20 characters
  • basic, hra, da float
  • netpay float
  • calculate() A function to calculate basic + hra + da with float return type

Public member function of class employee

  • havedata() function to accept values for empno, sname, basic, hra, da and invoke calculate() to calculate netpay.
  • dispdata() function to display all the data members on the screen.

Define a class Student with the following specifications :4

Private members :

  • roll_nointeger
  • name 20 characters
  • class 8 characters
  • marks[5] integer
  • percentage float
  • Calculate() a function that calculates overall percentage of marks and return the percentage of marks.

publicmembers :

  • Readmarks() a function that reads marks and invoke the Calculate function.
  • Displaymarks() a function that prints the marks.

Q18. Define a class report with the following specification :Private members :

  • adno4 digit admission number
  • name 20 characters
  • marks an array of 5 floating point values
  • average average marks obtained
  • getavg() to compute the average obtained in five subjects

Public members :

  • readinfo() function to accept values for adno, name, marks, and invoke the function getavg().
  • displayinfo() function to display all data members on the screen you should give function definitions.

Q19. What are inline functions? Give example

Q20. Difference between private & public access specifiers.

Q21. How class implements data-hiding & encapsulation?

Q22. What is the difference between structure and a class?

Q23. How is inline function different from a normal function?

Q24. Write the differences between the followings:

a) Global and Local Variable

b) Actual and formal argument

c) Call by value and Call by reference method of function calling

d)

Q24 :- Answer the questions after going through the following class.

class Exam

{

char Subject[20] ;

int Marks ;

public :

Exam() // Function 1

{

strcpy(Subject, “Computer” ) ; Marks = 0 ;}

Exam(char P[ ]) // Function 2

{

strcpy(Subject, P) ;

Marks=0 ;

}

Exam(int M) // Function 3

{

strcpy(Subject, “Computer”) ; Marks = M ;

}

Exam(char P[ ], int M) // Function 4

{

strcpy(Subject, P) ; Marks = M ;

}

};

(a)Which feature of the Object Oriented Programming is demonstrated using Function 1, Function2, Function 3 and Function 4 in the above class Exam?

Ans:- Function Overloading (Constructor overloading)

(b)Write statements in C++ that would execute Function 3 and Function 4 of class Exam.

Ans:- Exam a(10); and Exam b(“Comp”, 10);

KendriyaVidyalaya, Dhule.

Home Work For Summer Vacation

Class – 12thSubject – Physics

Section - A

Multiple Choice Questions.

Q.1 A charge q is placed at the centre of the line joining two equal positive charges Q. The system of the three charges will be in equilibrium, if q is equal to_____

a) - b) - c) + d) +

Q.2 Under the influence of the Coulomb field of charge +Q a charge –q is moving around it in an elliptical orbit. Find out the correct statement(s).

a) The angular momentum of the charge –q is constant.

b) The linear momentum of the charge –q is constant.

c) The angular velocity of the charge –q is constant.

d) The linear speed of the charge –q is constant.

Q.3 The electric field at r = R is_____

a) independent of ab) directly proportional to a

c) directly proportional to a2d) inversely proportional to a

Q.4 Two spherical conductors B and C having equal radii and carrying equal charges in them repel each other with a force F when kept apart at some distance. A third spherical conductor having same radius as that of B but uncharged, is brought in contact with B, then brought in contact with C and finally removed away from both. The new force of repulsion between B and C is _____

a) b)

c) d)

Q.5 An electric dipole is placed at an angle of 30o to a uniform electric field. The dipole will experience

a) a torque as well as translational force.

b) a torque only.

c) a translational force only in the direction of the field.

d) a translational force only in a direction normal to direction of the field.

Q.6 Two charges of equal magnitudes and at a distance r exert a force F on each other. If the charges are halved and distance between them is doubled, then the new force acting on each charge is_____

a) b)

c) 4Fd)

Q.7 A and B are two identical spherical charged bodies which repel each other with force F, kept at a finite distance. A third uncharged sphere of the same size is brought in contact with sphere B and removed. It is then kept at mid-point of A and B. Find the magnitude of force on C.

a) b) c) Fd) Zero

Q.8 Two charged spheres separated by a distance d exert some force on each other. If they are immersed in a liquid of dielectric constant 2, then what is the force exerted by them, if all other conditions are same?

a) b) 2Fc) Fd) 4F

Q.9 A charge Q is divided in two parts q and Q-q. What is value of q for maximum force between them?

a) b)c) Qd)

Q.10 Identify the wrong statements in the following, Coulomb’s law correctly described the electric force that_____

a) binds the electrons of an atom to its nucleus

b) binds the protons and neutrons in the nucleus of an atom

c) binds atoms together to form molecules

d) binds atoms and molecules to form solids

Q.11 A soap bubble is given negative charge, its radius will_____

a) increaseb) decrease

c) remain unchangedd) fluctuate

Q.12 An electric dipole is placed in a non-uniform electric field, what acts on it?

a) Only torqueb) Only force

c) both (a) and (b) d) none of these

Q.13 A sphere encloses an electric dipole within it. The total flux across the sphere is_____

a) zero

b) half that due to a single charge

c) double that due to a single charge

d) dependent on the position of the dipole

Q.14 A point charge is kept at the centre of a metallic insulated spherical shell. Then_____

a) electric field outside the sphere is zero

b) electric field inside the sphere is zero

c) net induced charge on the sphere is zero

d) electric potential inside the sphere is zero

Q.15 An electric dipole of moment is placed in a uniform electric field . The maximum torque experienced by the dipole is_____

a) pEb) p/E c) E/p d)

Q.16 A spherical shell of radius R has a charge +q units. The electric field due to the shell at a point

a) inside is zero and varies as r-1 outside it

b) inside is constant and varies as r-2 outside it

c) inside is zero and varies as r-2 outside it

d) inside is constant and varies as r-1 outside it

Q.17 Two identical conductors of copper and aluminium are placed in an identical electric field. The magnitude of induced charge in the aluminium will be_____

a) Zero b) Greater than in copper

c) Less than in copper d) equal to that of copper

Q.18 The point charges Q and -2Q are placed some distance apart. If the electric field at the location of Q is E, then the electric field at the location of -2Q will be_____

a)-b) - c) –Ed) – 2E

Q.19 Let Ea be the electric field due to a dipole in its axial plane distant l and let Eq be the field in the equatorial plane distant l. The relation between Ea and Eq is_____

a) Ea= Eqb) Ea= 2Eqc) Eq= 2Ead) Ea= 3Eq

Q.20 Two parallel large thin metal sheets have equal surface charge densities of 2.56 x 10-11 Cm-3 of opposite signs. The electric field between these sheets is_____

a) 1.5NC-1b) 1.5 x 10-10 NC-1 c) 3NC-1d) 3 x 10-10 NC-1

Q.21 The unit of permittivity of free space is _____

a) CN-1m-1b) Nm2C-2c) C2N-1m-2d) C2N-2m-2

Q.22 When air is replaced by a dielectric medium of dielectric constant k, the maximum force of attraction between two charges separated by a distance_____

a) decreases k timesb) remains unchanged

c) increases k timesd) decreases k2 times

Q.23 A charge Q is enclosed by a Gaussian spherical surface of radius R. If the radius is doubled, then the outward electric flux will_____

a) Increases 4 timesb) be reduced to half

c) remains the same d) be doubled

Q.24 How many electrons must be removed from an electrically neutral metal plate to give it a positive charge of 1 x 10-7 coulomb?

a) 6.25 x 1011b) 6.45 x 1013

c) 6.25 x 10-11d) 6.45 x 10-13

Q.25 For coulomb force to be operative the least size of atom will be_____

a) 10-12mb) 10-15mc) 10-10m d) 10-8m

Q.26 Gauss’s law is valid for _____

a) Any closed surfaceb) Only regular closed surfaces

c) Any open surface d) Only irregular open surfaces

Q.27 The positive and negative names of the charges were given by_____

a) Aristotleb) Faradayc) Franklind) Coulomb

Q.28 Like charges repel each other while unlike charges attract each other, was proved by_____

a) Coulombb) Franklinc)Faradayd) Gilbert

Q.29 which of the following is the unit of electric charge?

a) Coulomb/Volt b) Coulomb

c) Ampere - secondd) Both b and c

Q.30 Frictional electricity is produced on two bodies due to_____

a) Loss of electrons by one body

b) Loss of proton by one body

c) Loss of electrons by one body and equal number of electrons gained by other body

d) Loss of proton by one body and equal number gained by other body

Q.31Electric lines of forces about positive charge are_____

a) Circular, Clockwiseb) Circular, anticlockwise

c) Radial inwardd) Radial outward

Q.32 Lines of force while leaving or entering the surface are always_____

a) Normal to the surfaceb) Parallel to the surface

c) Inclined to the surfaced) Intersecting on the surface

Q.33 The charge deposited per unit length of cylinder is called as_____

a) Linear Charge Densityb) Surface Charge Density

c) Volume Charge Densityd) All of these

Q.34 Which of the following law gives a relation between the electric flux through any closed hypothetical surface and the charge enclosed by the surface?

a) Gauss’s Lawb) Newton’s Law

c) Coulomb’s Lawd) All of these

Q.35 When a body is charged by induction, then the body _____

a) Becomes neutralb) Does not loose any charge

c) Looses part of the charge on itd) Looses part of the charge on it

Section – B

Very Short Answer type Questions.

Q.36 What is electric charge? Is it a scalar or vector quantity? Name its SI unit.

Q.37 How do the conductors differ from the insulators?

Q.38 What do you mean by additive nature of electric charges?

Q.39 What do you mean by permittivity of a medium?

Q.40 Define electric field intensity. What is its SI units?

Section – C

Numerical.

Q.41 Calculate the electric field strength required to just support a water drop of mass 10-3 kg and having a charge 1.6 x 10-19C.

Q.42 Two charges, one +5µC and another -5µC are placed 1mm apart. Calculate the dipole moment.

Q.43 If a body gives out 109 electrons every second, how much time is required to get a total charge of 1C from it?

Q.44 An electron is separated from the proton through a distance of 0.53 Ao. Calculate the electric field at the location of the electron.

Q.45 What charge would be required to electrify a sphere of radius 25 cm so as to get a surface charge density of 3/¶ Cm-2?

Q.46 An electric dipole is formed by +4µC and another -4µC charges at 5mm distance. Calculate the dipole moment and give its direction.

Q.47 An electric dipole of dipole moment 4 x 10-5 Cm is placed in a uniform electric field of 10-3 NC-1 making an angle of 30o with the direction of the field. Determine the torque exerted by the electric field on the dipole.

Q.48 An infinite line charge produces a field of 9 x 104 NC-1 at a distance of 4 cm. Calculate the linear charge density.

Q.49 In a medium the force of attraction between two point electric charges, distance d apart, is F. What distance apart should these be kept in the same medium so that the force between them becomes 3F?

Q.50 A charge q is placed at the centre of a cube of side l. What is the electric flux passing through two opposite faces of the cube?

KendriyaVidyalayaDhule

Standard 12th

Subject-Biology

Holiday Homework

1. cleistogamous flowers are ______

a )Wind pollinated b) self pollinated

c) Cross pollinated d) insect pollinated

2. Micropyle occurs in ______

a)Ovary b) seed c) ovule d ) both b and c

3. Route used by Pollen tube for entering oval is ______

a) Integument b)Micropyle c )chalaza d) Any of the above

4. Number of prothallial cells present in male gametophyte of flowering plant is ______

a ) 3 b) 2 c) 1 d) 0

5. Gloriosasuperba exhibits ______

a) Heterostyly b) self sterility c) Hercogamy d)cleistogamy

6. Bees are important to agriculture as they ______

a )Produce wax b) perform pollination c) prevent pollination d) produce honey

7. In mature embryo sac the Centro cell is ______

a) Single nucleate b) binucleate c) four nucleate d) eight nucleate

8. Sporopolleninoccurs in______

a) Female gametophyte b) male gametophyte

c) vegetative cells of pollen grain d) exine of pollen wall

9 .Triploid tissue is______

a) Endosperm in maize or wheat or Lily b) leaf in onion or bryophyllum or pinus

c) Route in onion or ready or carrot d) fern prothallus

10. Remnants of nucellus present inside are called ______

a) Pericarp b) periderm c)endosperm d)perisperm