St. ANGEL’S SR. SEC. SCHOOL, ROHINI SUMMER HOLIDAYS HOME WORK -2016-17 Class – XII English High Order Thinking Skills SUMMER VACATION ASSIGNMENTS (Do the chapter 1 ,2,3 of Flamingo, Ch1 , 2 of Vistas, Poem Ch – 1, 2,3,4,5) Lesson 1 The Last Lesson Q 1 ‘A teacher should be a friend philosopher and guide for his Hamel fits into this image? pupils.’ Do you think M. Q2 How did procrastination (act of putting something off till some future time ) in learning French cost the French people dearly ?How can the vice of procrastination be over come ? Lesson 2 Lost Spring If we all take a pledge to listen the voice of our conscience, the vice of child labour and expoitation would be easily eradicated from society. Comment . Lesson -3: Deep Water by William Douglas Q- 1 Douglas’ tremendous efforts eventually helped him not to get over the after-effects of a childhood experience of terror but also helped him draw a larger meaning from the experience. Comment. Q- 2 Fear is mankind’s greatest handicap. Do you agree? Give reason to support your views. Poem-1: My Mother At Sixty-Six by Kamala Das Q-1 What is the symbolic significance of the security checks at the air port? Q-2 Do you think the poem reflects on the escapist tendency of the poetess Kamala Das? Q-3 Bring out the significance of the title ‘My Mother At Sixty-Six’. 1 Poem -2: An Elementary School Classroom in a Slum by Stephen Spender Q-1 What does the poet mean by saying, ‘let their tongues run naked into books’? Q-2 ‘History is theirs whose language is the sun.’ Explain. Poem-3: Keeping Quiet by Pablo Neruda Q -1 What has man single –mindedly focused himself on? Q-2 What does the poet mean when he says that a chemical war will result in a ‘victory with no survivors’? Poem-4: A Thing of Beauty by John Keats Q-1 What philosophy of life is highlighted in the poem ‘A Thing of Beauty’. Q-2 How does the poem highlight the poet’s immense faith in the Divine Reality. Poem-5: Aunt Jennifer’s Tigers by Adrienne Rich Q-1 Where does Aunt Jennifer seek refuge on being victimized by the male world? Does she find her freedom? Q-2 Do you think the poem has the veiled message in it? If so, what is it? Vistas Lesson-1: The Tiger King by Kalki Q-1 What negative value governed the character of Durai and Duraisani? Q-2 Taking ideas from the lesson ‘The Tiger King’, together with your own ideas write an article on the topic ‘Say No to Callousness Towards Wild Life.’ Lesson-2: The Enemy by Pearl S. Buck Q-1 A negative value for the enemy initially interfered with Dr .Sadao ’s instinctive urge to rescue the helpless, wounded American. What was it that eventually made him treat the wounded soldier and rather than waiting for him to be killed by the General’s assassins help him escape to safety? Q-2 Despite constant pressure from the servants and Hana’s apprehensions, Sadao protects the American soldier. He shelters him not only from others but from his own patriotic self that carries grievances against Americans. Attempt a pen portrait of Sadao highlighting the nobility he represents. 2 Maths Assignment CHAPTER - 2 INVERSE TRIGONOMETRIC FUNCTION Q1. Write the value of Q2. Solve the equation Q3 Solve the equation + Q4. Prove that + Q5. What is the principal value of Q6. Prove that Q7. Solve the equation Q8, Prove that 2 Q9. Prove that Q10 Prove that 3 + - 4 +2 = = =x + + + = + = = + = CHAPTER - 3 MATRICES Q1. Using elementary transformation, find inverse of following matrix: Q2. If Q3. If A= Q4. If A = Q5. Find matrix A such that : A Q6. For what values of x, the following matrix is singular: = , find the values of x and y. and B = B= find AB and BA write their respective orders also. ,Find a matrix C such that A + B + C is zero matrix =I CHAPTER - 4 DETERMINANTS Using properties of determinants ,show that: Q1. = 3abc – a³ - b³ - c³ Q2. =(a³ + b³ )² Q3. = 4a²b²c² Q4 = (a-b)(b-c)(c-a)(a²+b²+c²) Q5. = (x+y+z) (x-z)² Q6. = 4abc 4 Q7. -1 If A = ,find A Using this to solve the system of linear equations: X - 2y =10 2x + y + 3z = 8 , -2y + z =7 Q8. -1 If A = ,find A Using this to solve the system of linear equations x– y +3z = 2 , 3x + 2y – z =6 , -2x + 5y – 4z = 4 Q9. If A = Q10 If A = verify that A³ – 6A² + 9A – 4I = O Hence find A⁻1 Find AB and solve the following linear equations x + 2y + 3z = 0 ,2x + 5y + 7z = 0 , -2x -4y -5z =-1 CHAPTER 5 CONTINUITY AND DIFFERENTIABILITY Q1. If f(x) = Check the continuity at x=0 Q2. If f(x) = Is continuous at x=1 , find values of a and b. Q3 If f(x) = 5 of a and b. Q4. If f(x) = + of a . Q5 If = , Q6 If Q7. Differentiate w. r. t. x : Q8. X=a( =a(x-y) ,prove that ,y=a find at t = CHAPTER 6 APPLICATIONS OF DERIVATIVES Q1. Find the coordinates of a point on the parabola y=x line y=3x-3. Q2. An open box with a square base is to be made of a given quantity of sheet of a area c². Show that the maximum volume of the box is Q3. which is closest to the straight . Prove that the curves 4x=y² and 4xy=k intersect at right angles if k²=512. Q4. The section of a corner window is a rectangle surmounted by an equilateral triangle. Given the perimeter of the figure, find the width of the window in order that the maximum amount of light may be admitted. Q5. Show that the function f given by f(x)= , x>0 is always an increasing function in the interval (0, ). Q6. Two equal sides of an isosceles triangle with fixed base b are decreasing at the rate of 3 cm/s. How far is the area decreasing when the two equal sides are equal to the base? Q7. Find the equation of the normal at the point (am²,am³) for the curve ay²=x³. Q8. Find the equation of the normal to the curve y= 6 + \ PHYSICS ASSIGNMENT ELECTROSTATICS (UNIT-I) Q.1. How does the electric field inside a dielectric decrease when it is placed in an external electric field? Q.2. An electric dipole of dipole moment 20x10C is enclosed by closed surface. What is the net electric flux coming out of this surface.? Q.3. Sketch graph to show how charge Q given to a capacitor of capacitance C varies with the potential difference. Q.4. The graph shown here shows the variation of total energy (E) stored in a capacitor against the value of capacitance © itself which of the two, the charge on capacitor or the potential used to charge it is kept constant for this graph? Q.5. What should be the work done if a point charge +q is taken from point A to the point B on the circumference drawn with another point +q at the centre? Q.6. If the radius of Gaussian surface enclosing a charge is halved, how does the electric flux through the Gaussian surface change? Q.7. What is the effect of velocity on charge? Q.8. Can a body has charge 1.5e where e is electronic charge? Q.9. If a tiny particle is given a positive charge, does its mass increase or decrease? Q.10. You are given three uncharged spherical conductors A, B and C, touching each other. A glass rod carrying positive charge is brought near sphere A as shown. What will be the charges on spheres A, B and C.? Q.11. A small metallic charged sphere is placed at the centre of large uncharged spherical shell and the two are connected by a wire will any charge flow on the outer shell? Q.12. A man in an insulated metallic cage does not receive a shock, even when the cage is connected to a higher voltage source why? Q.13. Electrostatic experiments do not work during humid days. Explain. Q.14. A charge q is placed just outside a closed surface. What is the electric flux through the surface? Q.15 There are two metallic spheres, one is bigger than the other. Which has greater capacitance? Q.16 Two spheres of copper of same radii, one hollow and the other solid, are charged to the same potential. Which sphere possesses more charge? Q.17 Can we give any amount of charge to a capacitor? Why? Q.18 If the plates of a parallel plate capacitor is suddenly connected to each other by a wire, what will happen? Q.19 Why should circuit containing capacitor be handled cautiously even when there is no current? 7 Q.20 The plates of a capacitor are connected by a voltmeter. If the plates of the capacitor are moved farther apart, what will be the effect on the reading of voltmeter? Q.21 A small metal sphere carrying charge +Q is located at the centre of a spherical cavity in a large uncharged metal sphere as shown in fig. Use Gauss’s theorem to find electric field at points P1 and P2 Q.22 A point charge q is placed at O as shown in fig. is Vp – Vq positive or negative when (i) q > o (ii) q < o. Justify your answer. Q.23 The given figure show a network of five capacitors connected to a 100V supply. Calculate the total charge and energy stored in the network. Current Electricity (Unit – II) Q.1 Out of two bulbs marked 25W and 100W, which has higher resistance? Q.2 A Cu wire of resistivity p is stretched to reduce its diameter to half of its original value. What will be its new resistivity? Q.3 How does the drift velocity of e- in a metallic conductor change if the length of conductor is doubled by stretching it, keeping the applied potential difference constant? Q.4 What is the effect of heating of a conductor on the drift velocity of free e-? Q.5 Two heated wires of the same dimensions are first connected in series and then in parallel to a source of supply. What will be the ratio of heat produced in the two cases? Q.6 If potential difference applied across a conductor is increased from V to 2V, how the drift velocity of the e- change? Q.7 When a straight wire of resistance R is bent in U-shape, does its resistance change? Q.8 In the potentiometer circuit shown, the balance (null) point is at X. State with reason, where the balance point will be shifted when (i) Resistance R is increased, keeping all parameters unchanged. (ii) Resistance S is increased, keeping R constant. (iii) Cell P is replaced by another cell whose e.m.f. is lower than that of cell Q. Q.9 In a whetstone’s bridge experiment, a student by mistake, connects key (K) in place of galvanometer and galvanometer (G) in place of Key (K). How will be the test for the balance of the bridge? Q.10 A cell of emf (E) and internal resistance ( r ) is connected across a variable external resistance ( R ) Plot graphs to show variation of E with R Terminal p.d. of the cell (V) with R Q.11 The circuit shown in the diagram contains a battery ‘B’, a rheostat ‘Rh’ and identical lamps P and Q what will happen to the brightness of the lamps, if the resistance through the rheostat is increased? Give reasons. 8 Magnetic Effect of current and Magnetism (Unit-III) Q.1. How does the (i) pole strength and (ii) Magnetic moment of each part of a bar magnet change if it is cut into two equal pieces transverse to length? Q.2 Mention two properties of the alloy from which permanent Magnets are made. Q.3 The Magnetic lines of force prefer to pass through iron than air. Explain why? Q.4. Two wires of equal length are bent in the form of two loops. One of the loops is square shaped where as the other loop is circular. These are suspended in a uniform Magnetic field and the same current is passed through them which loop will experience greater torque? Q.5. A bar Magnet of pole strength m and magnetic moment M is cut as shown in fig below what are the new values of pole strength and Magnetic moment? Q.6. A charged particle moving with a uniform velocity enters a magnetic field directed perpendicular to it, what will be the path of e? How will its speed be affected? Q.7. An iron bar Magnet is heated to 1000C and then cooled in a Magnetic field free space will it retain Magnetism? Q.8 Name materials, one in each case, which are suitable for (i) permanent Magnet and (ii) core of electric transformer. Justify your answer. Q.9. A uniform Magnetic field gets Modified as shown below, when two specimens X and Y are placed in it. (i) identify the two specimens X and Y (ii) State the reason for the behavior of the field lines in X and Y. Q.10 You are given a low resistance R1, a high resistance R2 and a moving coil galvanometer. Suggest how would you use these to have an instrument that will be able to measure (i) current (ii) potential difference. Q.11 A straight wire carrying current I2 is situated along the axis of a circular conductor carrying a current I, what is the force produced due to interaction between the two currents. Q.12 When current is passed through a spring it contracts, why? Q.13 A straight wire of length L, carrying current I, stays suspended horizontally in mid air in a region where there is a uniform magnetic field B. The linear density of the wire is . Find the magnitude and direction of this Magnetic field. Q.14 Two parallel coaxial circular coils of equal radius ‘R’ and equal number of turns ‘N’, carry equal currents ‘I’ in the same direction and are separated by a distance ‘2R’. Find the magnitude and direction of net magnetic field produced at the mid-point of the line joining their centers. Q.15 Two circular coils X and Y having radii R and R/2 respectively are placed in horizontal plane with their centers coinciding with each other coil X has current I flowing through it in the clockwise sense. What must be the current in coil Y to make the total magnetic field at the common centre of the two coils, zero? 9 Electromagnetic Induction and Alternating current (Unit-IV) Q.1 The electric current in the direction from B to A is decreasing. What is the direction of induced current in the metallic loop kept above the wire. Q.3 The coils in certain galvanometers have fixed core made of a non-magnetic material. Why does the oscillating coil come to rest so quickly in such a core? Q.4. A metallic rod placed horizontally falls from a height h. Is there any emf induced if it is placed (i) north-south (ii) east-west direction. Q.5 The resistance of a coil for dc is 10 . When ac is sent through it, will its resistance increase, decrease or remain the same? Q.6 Why is a transformer not used to step up dc voltage? Q.7 Fig. shows an arrangement by which current flows through the bulb (X) connected with Coil B, when ac is passed through Coil A. (i) Name the phenomenon involved. (ii) If a copper sheet is inserted in the gap between the coils, explain how the brightness of the bulb would change? Q.8 An electric lamp connected in series with a capacitor and an ac source is glowing with of certain brightness. How does the brightness of the lamp change on reducing the capacitance? Q.9 A choke coil and a bulb are connected in series to an ac source. The bulb shines brightly. How does the brightness change when an core is inserted in the choke coil? Q.10 Fig. shows a light bulb (B) and iron cored, Inductor connected to a dc battery through a switch (S) (i) What will one observe when switch(S) is closed? (ii) How will the glow of the bulb change when the battery is replaced by an ac source of rms voltage equal to the voltage of dc battery? Justify your answer in each case. Q.11 When a circuit element ‘X’ is connected across an a.c. source, a current of 2 A flows through it and this current is in phase with the applied voltage. When another element ‘Y’ is connected across the same a.c. source, the same current flows in the circuit but it leads the voltage by 2 radians. (i) Name the circuit element X and Y (ii) Find the current that flows in the circuit when the series combination of X and Y is connected across the same a.c. voltage. Plot a graph showing variation of net impedance of this series combination of X and Y as a function of the angular frequency w of the applied Voltage. Q.12 As soon as the current is switches on in a high voltage wire, the bird sitting on it flies away. Why? 10 CHEMISTRY UNIT- 1 THE SOLID STATE Q1What do you mean by term amorphous ? give examples ? Q2 What makes a glass different from a solid such as quartz ? Q3 Why is glass considered as super cooled liquid ? Q4 Silver crystallizes in fcc lattice. If lenth of the cell is 4007x10-8 cm and density is 10.5 g cm -3 , calculate the atomic mass of silver? Q5 If the radius of the octahedral void is r and radius of the atoms in close packing is R , derive relation between r and R? Q6 `A compound is formed by two elements M and N. The element N forms ccp and atom of M occupy 1/3rd of tetrahedral voids. What is the formula of the compound ? Q7 Explain the following with the following examples : 1. Ferromagnetism 2. Paramagnetism 3. Ferrimagnetism 4. Antiferromagnetism. Q8 Classify eacvh of the following as being either a p type or a n type (1)Ge doped with In (2)B doped with Si Q9 Ex`plain each of the following with the suitable example : 1. Schottky defect 2. Frenkel defect in crystals 3. Metal excess defect due to anionic vacancies 4. Metal deficiency defect. 11 Q10 An element occur in bcc structure with cell edge 300pm. The density of the element is 5.2 g cm -3. How many atoms of the element does 200g of the element contain ? Q11 An element crystallizes in the simple cubic structure. Its density is 8 g cm 3and its 200g contain 24x10 23 atoms. Calculate the edge length. UNIT-2 SOLUTIONS 1. Why is vapour pressure of solution of glucose in water lower than that of water ? 2. Why is ether is not miscible with water? 3. Distinguish between molarity and molality. 4. What is the molarity of ammonia in a solution contaning 0.85 g of NH3 in 100 ml of liquid of density 0.85 g cm-3 ? 5. What is the value of ∆H and ∆V for an ideal solution of two liquids ? 6. What are minimum boiling azeotropes ? give one example. 7. Why is freezing point depressed when a non volatile solute is added? 8. `Calculate the osmotic pressure of a solution obtained by mixing 100 cm3 of 0.25M solution of urea and 100 cm3 of 0.1M solution of cane sugar at 293 K.[R= 0.0821 Latmmol-1 K-1] 12 9. Give one example each of the miscible liquid pairs showing positive and negative deviations from Raoult’s law. Give one reason each of such deviations. 10.Calculate the mass of urea required in making 2.5 kg of 0.25 molal aqueous solution. 11. Henry’s law constant for CO2 in water is 1.67 x 108 Pa at 298K. Calculate the quantity of carbondioxide in 500ml of soda water when packed under 2.5 atm CO2 pressure at 298K. UNIT -3 ELECTROCHEMISTRY 1. Write Nernst equation for single electrode potential. 2. Why is equilibrium constant K related to only Eocell and not Ecell ? 3. Which type of metal can be used in cathodic protection of iron against rusting ? 4. State Kohlrausch’s law of electrical conductance of an electrolyte at infinite dilution. 5. Write expression showing the relationship between standard free energy and standard cell potential. 6. Consider the reaction : Cr2O72- + 14 H+ + 6 e- → 2 Cr3+ + 7 H2O What is the quantity of electricity in coulombs needed to reduce 1 mole of Cr2O72- ? 7. Suggest two materials other than hydrogen that can be used as fuels in fuel cells. 8. How much time would it take in minutes to deposit 1.18 g of metallic copper on a metal object when a current of 2.0 A is passed through the electrolytic cell containing Cu2+ ions ? 9. Calculate the standard electrode potential of Ni2+ / Ni electrode if the cell potential in the cell Ni / Ni2+ (0.01M) // Cu2+ (0.1M) / Cu is 0.59V at 250C. [ Given E0 Cu2+ /Cu = 0.34 V ]. 10.Predict the product of electrolysis in each of the following : An aqueous solution of AgNO3 with silver electrodes, An aqueous solution of AgNo3 with platinum electrodes. 11.What is corrosion ? Describe the role of zinc in cathodic protection of iron. Can we use tin in place of zinc for this purpose ? Give reason. 12. Calculate the E.M.f of the following cell at 298 K: Fe/Fe2+ (0.1M) // Ag+ (0.1 M)/ Ag (s) (Given E0Ag+/Ag = + 0.80V,E0 Fe2+ /Fe =-0.44V. 13 UNIT-4 CHEMICAL KINETICS 1. What is threshold energy ? 2. What is the use of standard hydrogen electrode? 3 t ½ of the reaction is 30 min. Calculate the time in which 99.9% of the reaction will be complete. 4. The specific rate of the reaction is 4.2x10-3 mol L1-s-1. What is the order of the reaction? 5. Discuss the effect of 1). Catalyst and 2). Concentration on the rate of the reaction. 6. Calculate the two third life, t 2/3 of the first order reaction in which k = 5.4 x 10 -14 s-1 7. How many coulombs of electrical charge must be passed through a solution of silver nitrate to coat a copper sheet of area 100 cm2 on both sides with 0.005 mm thick layer ? Density of silver is 10.5 gcm -3 Relative atomic mass of silver is 108u. 8. Write the reaction of electrodes occurring during electrolysis of a) Sulphuric acid b) Aqueous silver nitrate using silver electrodes. C) Aqueous sodium chloride solution. 9. a) State the rate constant for zero order reaction. b) With the help of diagram explain the difference in the variation of molar conductivity with concentration for strong and weak electrolyte. 14 UNIT-5 SURFACE CHEMISTRY 1. Write the name of the states of dispersion phase and dispersion medium in case of butter. 2. Why is catalyst , in general , taken in the form of finely divided powper ? 3. What is observed when sodium chloride is added to a colloidal solution of ferric hydroxide ? 4. What is adsorption ? How does adsorption of a gas on a solid surface vary with temperature and pressure ? 5. Differentiate between multimolecular colloids and micelles with one example each. 6. Electrolytes can cause coagulation as well as peptization of colloidal solution. Comment on this statement. 7. How can a colloidal solution and true solution of same colour be distinguished from each other ? 8. Explain the following observations : 1. Lyophilic colloids is more stable than the lyophobis colloid. 2. Sky apper blue in colour. 9. Explain the following terms with suitable examples: Alcosol, Aerosol, Hydrosol. 10. What is the shape selective catalysis? How is it used in obtaining gasoline from alcohol ? Name the catalyst in this process. 11. 1. Why is alum added to water for purification ? 2. Explain why deltas are formed were river and sea water are meet. 3. Describe the preparation of a colloidal solution of arsenous sulphide in water. 12. What is adsorption osotherm ? Distinguish between `Freundlich adsorption isotherm and Langmuir adsorption isotherm with the help of appropriate graphs. 15 COMPUTER SCIENCE 1. Do assignment of L- 1,4,7,11,12 2. Make Project File 3. Complete Practical file with 15 C++ programs of following topic : 1. Array of structure 2. Array of Object 3. Prog. Of series 4. Writing operation in Text file 5. Display operation in Text file 6. Adding operation in Binary file 7. Searching operation in Binary file 8. Update operation in Binary file 9. Display operation in Binary file 10. Array – Linear search 11. Array - Binary search 12. Array - Bubble sort 13. Array - Merging 14. 2D Array lower triangle 15. 2 D array row sum LESSION –1 C++ REVISION TOUR 1. Observe the following program very carefully and write the name of those header file(s), which are essentially needed to compile and execute the following program successfully: typedef char text[50]; void main() { text s[]=”formal parameter”; int i=0; while (str[i]!=’\0’) if(isupper(s[i])) s[i++]=’#’; else s[i++]=’*’; puts(s); } 2. Write definition for a function Sumseries ( ) in C++ with two arguments/ parameters-double x and int n. The function should return a value of type double and it should perform sum of the following series: x 2 x3 x 4 x5 x 3! 5! 7! 9! 16 ……………. Upto n terms 3. Write the output of : (a) int x=5, y=5; cout<<x--; cout<<x “,”; cout<< - -x; cout<< “,”; cout<<y- - << “,” << - - y; (b) int Position (int &c1, int c2=5) { c1+=5; c2+=10; } void main ( ) { int p1=10, p2=20; Position(p1); cout<<p1<<”,”<<p2<<endl; Position(p2,p1); cout<<p1<<”,”<<p2<<endl; } 4.Find the correct identifiers out of the following, which can be used for naming variable, onstants or functions in a C++ program: For, new, 2xyz, x%z, 2_xyz, 2-xyz, 2 xyz, _abc,xyz2 5. Rewrite the following program after removing all the syntax error(s), if any, after underlining each correction: #define float max=50.0; include <iostream.h> void main() { int s char st=’n’; cin>>s; if s>st st=’y’; cout<<st<<end; } 6. Rewrite the corrected code for the following program . Underline each correction, if any #include <iostream.h> structure club { int mem num; char mname[20}; char mtype[]=”LIG”; }; 17 void main() { club c; cin>>memnum; gets(name); gets(mtype); } 7. Give an output of the following program : #include <iostream.h> struct pixel { int c,e;}; void disp(pixel p) { cout<<p.c<<”:”p.r<<endl;} void main() { pixel x={20,30},y,z; z=x; x.c+=10; y=z; y.c+=10; y.r+=20; z.c=15; disp(x); disp(y);disp(z);} 8. Study the following program code and select the possible output(s) from the options(i) to (iv) from it. Also, write the maximum and the minimum values that can be assigned to the variable NUM. void main() { randomize(); int n=random(3)+2; char text=”IJKLMNOPQRS”; for(int i=1;i<=n;i++) { for(int j=n;j<=7;j++) cout<<text[j]; cout<<endl; } } (i) NOPQ (ii) JKLMNOP (iii) KLMNOP (iv) MNOP NOPQ JKLMNOP KLMNOP MNOP NOPQ MNOP NOPQ LESSON- 4 CLASSES AND OBJECTS 1. 2. 3. 4. Define class. Give example. How does a class enforce data hiding , abstraction and encapsulation. Explain with example. What is an inline function? State its advantage and disadvantage. Rewrite the program after correcting. Underlining each correction. class serial { int serial_code; char title[20]; public: int no_episodes; void accept(){cin>>serial_code>>title>>no_episodes;} void disp(){cout<<serial code<<title<<no_episode;}}; 18 5. void main() { serial s; s.serial_code=10; s.no_episodes=10; s.accept(); disp(); } Define a class Travelplan in C++ with the following description : Private members P_code long type Place string type Num_travellers integer type Num_buses integer type Public members Newplan() accepts all the P_code,Place, Num_travellers. Assign Num_buses as per the following condition: Num_travellers Less than 20 Num_buses 1 Equal to more than 20 and less than 40 Equal to 40 or more than 40 2 3 LESSON- 7 DATA FILE HANDLING 1. 2. 3. (i) (ii) (iii) Write difference between ios::app and ios::out. Explain seekp() and tellp() with example. Assuming the class Employee given below, write functions in C++ to perform following: Write objects of Employee to a binary file. Read objects of Employee from a binary file and display the details of employees on the screen. Read objects of Employee from a binary file and display the details of those employees whose salary is more than 10000. class Employee { int eno; char ename[10}; float salary; public : void getit(){cin>>eno>>ename>>salary;} void show(){cout<<eno<<ename<<salary;}}; 4. Write a user-defined function to read the contents from a text file STORY.TXT, count the no. of alphabets present in it. 5. Find the output of the following C++ code considering the binary file EMPLOYEE.DAT exits with 100 records class Employee { int eno; char ename[10}; float salary; public : void getit(){cin>>eno>>ename>>salary;} void show(){cout<<eno<<ename<<salary;}}; void main() { fstream f; f.open(“EMPLOYEE.DAT”,ios::binary|ios::in); Employee e; e.read((char*&e,sizeof(e)); e.read((char*&e,sizeof(e)); int p=e.tellg()/sizeof(e); cout<<p; f.close();} 19 BUSINESS STUDIES CH-1 NATURE AND SIGNIFICANCE OF MANAGEMENT Q1-‘An organization consists of diverse individuals with different needs.’ Discuss the management feature highlighted in the given statement. Q2- “Through e-Chaupal ,ITC aims to change the quality of life and the entire outlook of Indian farmers.” Which objective is being highlighted by this initiative of ITC. Q3- With introduction of per second call plan by MTS (a leading mobile network Co.), most of the other cellular companies also started offering per second plan, in order to survive and maintain their market share. Discuss the feature of management highlighted in the given statement. Q4-“Management is open to all and any person can be appointed as manager’ Why. CH 2 PRINCIPLES OF MANAGEMENT Q1 ABC Ltd. Is engaged in producing electricity from domestic garbage . There is almost equal division of work and responsibility between workers and management. T he management even takes workers into confidence before taking important decisions. Al l the workers into confidence before taking important decisions. All the workers are satisfied as the behavior of the management is very good. (a) State the principle of management described in the above Para (b) Identify any two values which the company wants to communicate to the society Q2 Why is it said the management principles are behavioral? Q3 Explain the principle of management (a) Help in optimum utilization of resources and effective administration, and (b) Help the managers in meeting changing environment requirements Q4 Pawan is working as a ‘production manager’ in CFL Ltd. Engaged in manufacturing of CFL bulbs. There is no class conflict between the management and workers. The working conditions are very good. The company is earning huge profits. As a policy matter, management is sharing the gains with the workers because they believe that prosperity of the company cannot exist for a long time without the prosperity of the employees (a) State the principle of management described in the above Para. (b) Identify any two values which the company wants to communicate to the society 20 CH 3 BUSINESS ENVIRONMENT Q1”Google a search engine is continuously improved by its management by adding some innovative features to remain ahead of changes made by other competing search engines.”Which importance of business environment is shown by this statement? Q2 In America, a few large scale retail stores have been established wherein there is a large electronic touch screen displaying the products available for sale. The customers just need to register themselves, and select the products, give the quantity required, in the electronic trolley. The order will be placed therein. The packed products will be available at the counter after a specified time period and then the payment will be made electronically Identify and explain the dimensions of business environment which are mainly highlighted in the above case. CH 4 PLANNING Q1 Identify the steps involved in planning process from the following: (1) Manager is required to make certain assumptions about the future (2) This is the real point of decision making (3) Under this step, managerial functions come into picture and involve organizing for labour and purchase of machinery. Q2 identify and explain the types of plans: (a) This plan specifies the steps to carry out different activities in a chronological order (b) These are the simplest type of plans (c) This plan prescribes the manner in which a task has to be performed Q3 “though planning is an important tool of management, yet it is not a remedy for all types of problems.’ Do you agree? Give any three reasons. Q4 A reputed car manufacturing company in NCR is facing the problem of decline in its market share due to its internal mismanagement. Therefore it has planned to increase its production capacity as its Gurgoan plant by manufacturing low priced eco friendly cars for price sensitive consumers and introducing new models with added features for quality conscious consumers . For this the company issues shares to the public and raises RS 150 crores. The company purchases more machinery required to increase production (a) Identify the type of plan the company is preparing. (b) State the steps involved in this plan quoting the lines from the above case. (c) State any one value which the company wants to communicate to the society. 21 CH 11 MARKETING MANAGEMENT Q1 As a project work in business studies subject, the commerce students of ‘ Creative public school ‘ thought of setting up a recycling plant to recycle all the waste papers from the school and prepare registers and exercise books to be used by the school students. They approached their principal who not only appreciated the idea of the students but also give her consent for the same. The school also decided to donate 50% of the revenue generated from the sale of registers and exercise books to a nearby blind school (a) State the product related decisions which the children have to take. (b) Suggest any two factors the children should keep in mind while choosing the right name for their exercise books and registers. (c) Identify any two values communicated to the society by this project of “Creative public school”. Q2 Identify the techniques of sales promotion: (1) (2) (3) (4) Up to 50% off on shirts and T-shirts. Toothbrush free with a tooth paste. By three packs of one liter juice and get 1 free. Scratch the card and dial a number to win a car. Q3 Anandi , a budding entrepreneur wishes to operate a business of flowers. Since they are perishable in nature, she plans to open a flower shop so that she can directly sell them to the customers. Being a small venture, the number of consumers is also less. So she decides that the direct channel of distribution is better. Her friend, Rajeev is manufacturer of gift items. He is confused regarding the level of channel he should follow. Guide him regarding the problem giving reasons. Do the given project work 22 ACCOUNTANCY Do the project assigned by the teacher Financial statements of company Q1) Under what main head and sub head following items will be shown in the balance sheet of company:a) Uncalled liability on partly paid shares b) loose tools c) loans repayable on demand d) vehicles e) Bonds f) Goodwill g) Proposed dividend h) Premium on redemption of debentures i) Mining rights j) Calls in advance k) Forfeited shares l) unclaimed dividend Q2) The following balances appear in the books of R Ltd:Goodwill Rs 20,000 Plant & machinery Rs. 1,60,000 Building Rs. 1,45,000 Cash- in -hand Rs. 10,000 Inventories Rs. 70,000 Share capital ( Authorized) 1000 equity shares Rs. 80,000 of 100, 80 called up and paid up capital 8% debentures Rs. 2,50,000 Preliminary expenses Rs. 5,000 Trade receivable Rs. 10,000 Trade payable Rs. 90,000 Prepare Balance Sheet as per companies act 2013. Tools of financial statements analysis Q1) Prepare the comparative Balance sheet:PARTICULARS 31ST 31ST MARCH2015 MARCH2016 Equity share capital 25,00,000 25,00,000 Fixed assets 30,00,000 36,00,000 Reserves & surplus 5,00,000 6,00,000 Investments 5,00,000 5,00,000 long term loans 15,00,000 15,00,000 Current assets 15,00,000 10,50,000 Current liabilities 5,00,000 5,50,000 Q2) Prepare comparative statement of profit & loss from the following information:PARTICULARS 2016 Revenue from Operations 32,00,000 Expenses: Cost of material consumed 70% of revenue from operations Other expenses 5% of revenue from operation Rate of income tax 50% of net profit before tax 23 2015 20,00,000 70% of revenue from operations 5% of revenue from operation 50% of net profit before tax Q3) Raj Ltd. decided to bear the higher education cost of five brilliant students belonging to the weaker section of the society .Following is the statement of profit & loss of Raj Ltd. for the year ended 31-3-2016 :PARTICULARS AMOUNT (Rs.) Income:Revenue from operations 2,00,000 Other incomes 15,000 Total Revenue 2,15,000 Expenses:Cost of material consumed Other expenses Total expenses 1,10,000 5,000 1,15,000 Tax 40,000 You are required to:Prepare a Common Size Statement of profit & loss of Raj Ltd. for the year ended 31-32016 & Identity the value involved. Q4) Find the missing figures in the following Common Size statement of profit & loss:COMMON SIZE STATEMENT OF PROFIT & LOSS For the year ended 31 march 2016 Particulars Note no. Absolute Percentage of amount revenue from (Rs.) operations (%) I. Revenue from operations --------II. Other Income 60,000 ----- ------ ----- ------ 50 2,10,000 14 ------ ------ Profit Before Tax (III – IV) ----- ------ Less:- Tax ----- ------ Profit after Tax ------ ------ III. Total Revenue (I+II) IV. Expenses:Cost of material consumed Other Expenses Total Expenses 24 Ratio Analysis Q1) If the current ratio of a company is 2:1, What will be the change in it if the goods are purchased on credit? Q2) X Ltd has a debt Equity Ratio at 3:1. According to the Management, it should be maintained at 1;1. What are the two choices to do so ? Q3)Assuming that the Debt equity ratio is 1:2, state giving reason whether the ratio will improve, decline or will have no change if equity shares are issued for cash. Q4) State the satisfactory ratio of Current ratio and Liquid Ratio? Q5) A Company made credit sales of Rs 7,20,000 during the year. If the collection period is 50 days and the year is assumed to be of 360 days. Calculate – a) Average Debtors b) Debtors Turnover ratio c)Opening and Closing Debtors if the closing Debtors are Rs 10,000 more than the opening Debtors. Q6) Calculate proprietary ratio:Long term borrowings Rs.2,00,000 Long term provisions Rs.1,00,000 Current Liabilities Rs.50,000 Non-Current Assets Rs.3,60,000 Current Assets Rs.90,000 Q7) Calculate the Quick ratio, Stock turnover ratio and Operating ratio:Sales Rs.30 lac, Cost of goods sold Rs. 21 lac, operating expenses. Rs.2,00,000, profit before tax Rs.320000; current assets Rs.4,80,500; current liabilities Rs. 3,20,000; fixed assets Rs. 2,60,500; opening stock RS.2,00,000 and closing stock Rs.2,50,000, Q8) Calculate Return on Investments and Debt equity ratio from the following information: Net profit after interest and tax 10% Debentures Tax Rate Capital Employed Q9) Rs.6,00,000 Rs.10,00,000 40% Rs.80,00,000 Debtors turnover ratio is 4 times. Inventory turnover ratio is 8 times; current ratio is 3, average debtors is Rs 1,80,000; working capital turnover ratio is 8 times; 1 cash sales ratio is 25% of total sales; gross profit ratio is 33 3 % ; closing inventory is Rs. 10,000 in excess of opening stock. Also calculate sales, cost of goods sold and closing inventory. 25 Q10) Opening inventory is Rs.60,000; closing inventory is Rs.1,00,000; stock turnover ratio is 8 times, selling price is 25% above cost. Calculate Gross profit ratio. Q11) `Calculate cost of revenue from operations i.e,cost of goods sold from the following information: Sales Rs.12,00,000; Sales Return Rs.80,000, operating expenses Rs.1,82,000; operating ratio is 92% Cash flow statement Q1) Which of the following will not be shown in cash flow statement ? (a) Purchase of machinery for cash (b) sale of furniture for cash (c) Purchase of building by issue of share (d) None of the above Q.2) Which of the following will be an investing activity for a mutual fund ? (a) Dividend received on investments (b) Dividend paid (c) Issuing 9% of debentures (d) Purchase of computer Q3) Which of the following does not result in outflow of cash and cash equivalents? (a) purchase of machinery for cash (b) payment of salaries (c) purchase of building by issue of shares (d) interest on debentures paid Q4) From the following information ,prepare cash flow statement for Ronak Ltd :PARTICULARS I. Equity and liabilities 1. Shareholders’ fund (a) share capital (b) reserves and surplus 2. Non-current liabilities long term borrowings:12% on debentures 3. Current liabilities Total 26 NOTE. 31ST NO MARCH 2013 31ST MARCH 2012 3,00,000 (5,000) 2,00,000 35,000 1,20,000 1,40,000 45,000 15,000 4,60,000 3,90,000 1 II. Assets 1. Non-current assets (A) Fixed assets (B) Investments (C) Other non current assets: discount on issue of debentures 2. Current assets (A) Trade receivables (B) Cash & cash eqivalents (C) Other current assets: discount on issue of debentures 2,00,000 1,05,000 ------ 1,70,000 1,05,000 5,000 1,20,000 30,000 80,000 20,000 5,000 10,000 4,60,000 3,90,000 total NOTE TO ACCOUNTS : PARTICULARS 1. Reserves and surplus Securities premium reserves Surplus i.e., balance in statement of profit and loss 31ST MARCH 2013 31ST MARCH 2012 10,000 ---------- (15,000) 35,000 ADDITIONAL INFORMATION: 1. Debentures were redeemed on 1st april,2012. 2. During the year, A machine included in fixed costing Rs. 60,000 was purchased and another machine having book value of Rs.18,000 was sold at a loss of Rs.2000. 27 Q5) From the following balance sheets of Surya Roshni Ltd. As on 31st march, 2015 & 2016 prepare a statement of cash flow. Particulars 1. EQIUTY AND LIABILITIES Equity share capital Preference share capital Securities premium Profit and loss balance 15% debentures Trade payables Total 2.ASSETS Fixed assets Less: Accumulated depreciation Non-current Investments Inventory Trade recievables Less: Provision for doubtful debts Bank Discount on issue of debentures Total 2015 (Rs) 2016(Rs) 3,00,000 1,00,000 (10,000) 2,00,000 50,000 6,40,000 4,00,000 75,000 60,000 72,000 2,50,000 1,10,000 9,67,000 2,00,000 (30,000) 1,70,000 5,00,000 (48,000) 4,52,000 40,000 1,50,000 1,76,000 (10,000) 1,66,000 94,000 20,000 6,40,000 45,000 2,00,000 56,000 (16,000) 40,000 2,14,000 16,000 9,67,000 ADDITIONAL INFORMATION : 1. Dividend paid during the year Rs 36,000 2. Investment costing Rs 10,000 were sold at a profit of 40% 3. Fixed assets costing Rs 20,000 (accumulated depreciation Rs 8,000) were sold for 17,000 Additional debentures amounting to Rs 50,000 were issued at par on 1st august, 2015. Interest on debentures has been paid regularly. Mention the values involved in it. Q6). From the following Balance sheet of A Ltd., as at 31.03.2015 and 31.03.2016, calculate Cash flow from Operating Activities for the year ended 31st March,2016: Particulars I. EQUITY AND LIABILITIES 1. Shareholders’ Funds Share capital Equity share capital 12% Preference share capital Reserves and surplus 31.03.2015 31.03.2016 Balance in statement of profit and loss 1,48,500 3,51,000 Discount on issue of Debentures (13,500) 1,35,000 3,51,000 28 31.03.2015 (Rs.) 31.03.2016( Rs.) 4,05,000 2,70,000 5,72,000 1,35,000 1,35,000 3,51,000 2. Non- Current Liabilities Long term Borrowings:14% Debentures 3. Current Liabilities Total II. ASSETS 1. Non-Current Assets Fixed Assets Non-Current Investment 2. Current Assets Cash and cash equivalents Other Current Assets Total 1,35,000 1,08,000 10,53,000 2,70,000 2,16,000 15,44,500 6,88,500 40,500 8,37,000 1,08,000 54,000 2,70,000 10,53,000 1,94,500 4,05,000 15,44,500 Additional information: i. ii. iii. iv. v. vi. vii. Depreciation charged on Fixed assets was Rs.81,000. An interim dividend of 15% was paid on equity shares. Additional shares were issued on 31st March’2016. Preference shares were redeemed at a premium of 15%. Fixed Assets with a Book value of Rs.54,000 were sold at Rs.33,750. Preference dividend paid during the year Rs.32,400. Debenture Interest paid during the year Rs.10,800. Discount on Issue of Debentures Rs.13,500 of previous year is written of through statement of profit and loss on 31st March’2016. Fundamentals of Partnership Q1) How will you calculate interest on drawings of equal amounts on first day of every month of a year? Q2) A Partnership deed provides for the payment of interest on capital but there was a loss instead of profits during the year 2015-16 . At what rate will the interest on capital be allowed? Q.3) A, B & C were partners. Their capitals were Rs 30,000; Rs 20,000 and 10,000 respectively. According to the partnership deed, they were entitled to an interest on capital at 5% per annum. In addition B was also entitled to draw a salary of Rs 500 per month. C was entitled to a commission of 5% on the profits after charging the interest on capital, but before charging the salary payable to B. The Net profit for the year were Rs 30,000, distributed in ratio of their capitals without providing for any of the above adjustment. The profits were to be shared in the ratio of 2:2:1. Pass the necessary adjustment entry showing the working clearly. 29 Q.4) A and B are partners in a accounts sharing profits and losses in the ratio of 3:2. The following was the balance sheet of the firm 31.3.2014. Liabilities Amount Assets Amount (Rs) (Rs) Capitals: A 60,000 Sundry Assets 80,000 B 20,000 80,000 80,000 The profits Rs 30,000 for the year ended 31.3.2014 were divided between the partners without allowing interest on capitals @ 12% per annum and salary to A @ Rs 1,000 per month. During the year A withdrew Rs 10,000 and B Rs 20,000. Pass the necessary adjustment journal entry and show your working clearly. Q.5) Ankur, Bhavna and Disha are partners in a firm. On 1st april 2013 the balance in their capital accounts stood at Rs 14,00,000, Rs 6,00,000 and Rs 4,00,000 respectively. They shared profits in the proportion of 7:3:2 respectively. Partners are entitled to interest on capital @ 6% Per annum and salary to bhavna @ Rs 50,000 per annum and a commission of Rs 3,000 per month to Disha as per the provisions of the partnership deed. Bhavna’s share of profit ( excluding interest on capital ) is guaranteed at not less then Rs 1,70,000 per annum. Disha share of profit ( including interest on capital but excluding salary ) is guaranteed at not less than Rs 1,50,000 per annum. Any deficiency arising on that shall be met by Ankur. The profits of the firm for the year ended 31 st march 2014 amounted to Rs 9,50,000. Prepare ‘Profit and loss appropriation Account’ for the year ended 31st march 2014. Q6) Ali, Bimal & Deepak are partners in a firm. On 1st April 2015 their accounts stood at Rs. 4,00,000, Rs 3,00,000 & Rs. 2,00,000 respectively. They shared profits & losses in the proportion of 5:3:2. Partners are entitled to interest on capital @ 10% p.a and salary to Bimal & Deepak @ Rs. 2,000 per month & Rs. 3,000 per quarter respectively as per provisions of partnership deed. Bimal’s share of profit ( excluding interest on capital but including salary ) is guaranteed at a minimum of Rs. 50,000 P.a . Any deficiency arising on that account shall be met by Deepak . The profits of the firm for the year ended 31 st march ,2016 amounted to Rs. 2,00,000. Prepare profit & loss Appropriation account for year ended on 31 st march 2016. 30 Ecomonics Assignment – 1 Introduction Q.1 In a developing country like India, the economic problem is more acute than any other nation. Why? Q.2 How should a country with high population carry its production activities to achieve maximum social welfare? Q.3 How could the use of water be made sustainable? Q.4 What are the conflicting issues while addressing the problem of how to produce? Q.5 Production in an economy is below its potential due to unemployment. Govt. starts employment generation schemes. Explain its effect using production possibility curve. Q.6 Resources in a country are more efficient in the production of tanks, as compared to wheat. In the situation of some natural calamities like floods, earthquakes or famines, what should be produced more? Q.7 An economy is operating on PPC. Is there any method to increase the agricultural production as the land is fully utilized. Q.8 The govt. of a state is planning to set a plant of chemical industry in rural area. The new factory would run through the wetlands bordering a local river where a wide range of different creatures live. So, environmentalists are against the project. What will be the opportunity cost of this project and which moral value is violated here? Q.9 There are various sources of earning from a piece of land by an individual: a) He can earn 2 lakh per month by opening a school. b) He can earn 2.5 lakh per month by opening a restraint. c) He can earn 3.5 lakh per month by opening a community centre. Assignment – 2 Consumer Equilibrium and Demand Q.1 A person wants to drink a cup of coffee but finds the price of tea to be lower. Which of the two hot beverages will be more beneficial to take and why? Q.2 What awareness should be brought in the society to reduce their demand for petrol and conserve this useful source of energy? Q.3 chewing tobacco is harmful for health, yet people are ready to pay high price for it. Give reason. Q.4 Govt. introduced Express bus service at affordable fare. What is the objective of the govt. behind this? Q.5 Does law of diminishing marginal utility apply in the field of education? 31 Assignment – 3 PRoducER’S BEhAvioR ANd SuPPLy Q.1 Revenue of a firm can be increased by decreasing rather than increasing the price of the product. Explain. Q.2 Smoking at public places is banned by the Supreme court of India. Will it effect average price of cigarettes and its quantity sold? Q.3 An individual started his own business and started earning 2 lakhs per month. He worked 7 days a week for 12 hours a day. What will be the real cost incurred in the business? Q.4Trees are felled indiscriminately by a private contractor for the costruction of a factory in that area. Society does not agree to it because of the cost it has to pay for it. Q.5 How can a producer wisely and efficiently maximize his profit? Q.6 Due to enormous increase in the price of land, the farmers prefer to sell the land to real estate promoters instead of taking chances in the agricultural earning. Is it healthy trend for country like India? Q.7 How could the supply of goods whose consumption is injurious to health like cigarettes or liquor be decreased so that maximum social welfare is achieved? Q.8 What is the moral responsibility of seller while serving the society? 32 INFORMATICS PRACTICES 1) 2) 3) 4) Revise L-3 – 6 Do assignment of L- 3,4,5,6 Make Project File on the topic allotted in the class. Make Practical File with 16 programs using Java Applications and 24 SQL queries based on one and/or two tables. Topics of Practical File 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. Make a form to add numbers. Make a form to check whether a person is eligible to vote or not. Make a form to accept day no. and print day of the week Make a form to display numbers 1 to 10. Make a form to display even numbers from 2 to 20. Make a form to display odd numbers from 3 to 21. Make a form of GRADE CALCULATOR Make a form of SALARY GENERATOR Make a form of GLAMOUR GARMENTS Make a form of KIDDI LAND Make a form of WAGE GENERATOR Make a form of PLAY WITH SERIES Make a form of INTEREST CALCULATOR Make a form of ABN SHIPMENT CORPORATION Make a form to add record in a database table. (Connection) Make a form to search record in a database table. (Connection) 24 SQL Queries 33 JAVA PROGRAMMES Q7. Shankar is a programmer at Edudel Enterprise. He created the following GUI in NetBeans. Help him to write code in Java for the following: (i) To calculate TOTAL MARKS and GRADE and display in TextField4 and TextField5 respectively on the click of Command button ‘GET TOTAL & GRADE’. Criteria for GRADE calculation is given below: MARKS (ii) (iii) GRADE Above 80 A Above 65 and <= 80 B Above 50 and <= 65 C <=50 D To clear all the Text Fields on the click of command button “CLEAR” To stop execution and exit from the application on the click of Command button “EXIT” 34 Q8. Shekhar is a programmer at EduCom Enterprises. He created the following GUI in NetBeans. Help him to write code in Java for the following: (i) To calculate INCOME TAX and SALARY and display in TextField4 and TextField5 respectively on the click of Command button ‘GET INCOME TAX AND SALARY’, as per the following condition: If the BASIC is greater than 50000 then INCOME TAX=BASIC*0.2 And if it is less than or equal to 50000 then INCOME TAX=BASIC *0.3 Calculate SALARY as SALARY= (BASIC+ HOUSE RENT ALLOWANCE + DEARNESS ALLOWANCE) - INCOME TAX) (ii) To clear all the text boxes on the click of command button “CLEAR” (iii) To stop execution and exit from the application on the click of Command button “EXIT” Q9. Glamour Garments has developed a GUI application for their company as shown below: The company accepts PAYMENTS in 3 MODES- CHEQUE, CASH AND CREDIT CARDS. The DISCOUNT given as per MODE OF PAYMENTS is as follows: MODE OF PAYMENT DISCOUNT CASH 30% CHEQUE 20% CREDIT CARD 10% Write the Java code for the following : a) To calculate DISCOUNT AND NET AMOUNT and display in TextField3 and jTextField4 respectively on the click of Command button ‘CALCULATE’. b) To clear all the text boxes on the click of command button “CLEAR” c) To stop execution and exit from the application on the click of Command button “EXIT” 35 Q10. Mr. Vikas, the owner of the Kiddi Land Enterprises has developed the following GUI in Netbeans : The DISCOUNT is given according to the following MODE OF PAYMENT: MODE OF PAYMENT OFFER PLATINUM 30% GOLD 20% SILVER 10% Write the Java code for the following : a) To calculate DISCOUNT AND NET AMOUNT and display in TextField3 and jTextField4 respectively on the click of Command button ‘CALCULATE’. b) To clear all the text boxes on the click of command button “CLEAR” c) To stop execution and exit from the application on the click of Command button “EXIT” Q11. Mr. Vikas is a programmer at Alpha Builders. To calculate wages to be paid to labourers, he has developed the following GUI in Netbeans. MALE and FEMALE labourers are respectively paid at the rate of Rs. 140/- per day and Rs. 160/- per day.Write the Java code for the following : a) To calculate RATE AND TOTAL WAGES and display in TextField3 and jTextField4 respectively on the click of Command button ‘CALCULATE WAGES’. b) To clear all the Text Fields on the click of command button “CLEAR” c) To stop execution and exit from the application on the click of Command button “EXIT” 36 Q12.Srikant is a programmer at Educo Enterprises. He created the following GUI in NetBeans. Help him to write code in Java for the following: a) To display series of odd or even numbers (depending on starting number- jTextField1 is even or odd) in jTextArea on the click of Command button ‘Diasplay the Series’. b) To clear both the Text Fields and textAreas on the click of Command Button “Reset” c) To stop execution and exit from the application on the click of Command button “Exit” Q13. Mr. Rouble is a programmer at Edudel Enterprise. He created the following GUI in NetBeans. Help him to write code in Java for the following: a) To calculate SIMPLE INTEREST AND AMOUNTand display in TextField3 and jTextField4 respectively on the click of Command button ‘CALCULATE’. b) To clear all the text boxes on the click of command button “CLEAR” c)To stop execution and exit from the application on the click of Command button “EXIT” Q14. Mr. Sharma is a programmer. He created the following GUI in NetBeans. Write code in Java for a) b) c) To calculate DISCOUNT and display in TextField3 on the click of Command button ‘CALCULATE’. If CUSTOMER TYPE is WHOLESALER then DISCOUNT is 20 else DISCOUNT is 10. To clear all the text boxes on the click of command button “CLEAR” To stop execution and exit from the application on the click of Command button “EXIT” 37 INFORMATICS PRACTICES ASSIGNMENT Chapter 3-GUI PROGRAMMING – A REVIEW 1.While working in Netbeans, Ms Kanta Surbhi wants to display 'Cleared' or 'Re-attempt required' message depending the marks entered in jTextField. Help her to choose more appropriate statement out of 'If statement' and 'Switch statement'. 1. Write a statement to make jTextArea1 as un-editable. What will be the value of A and B after execution of the following code: int A = 100, B ; for (B=10; B<=12; B++) { A+=B; } JOptionPane. showMessageDialog (this, “A:”+A+”B:”+B+””) ; 4.Write Java code that takes the price of a pencil from jTextField1 and quantity of pencils from jTextField2 and calculates total amount as price * quantity to be displayed in jTextField3 and also find 10% tax amount to be displayed in jTextField4 5.What will be displayed in jTextField1 after executing the following code. int N = 20; N=N+l; If (N<21) jTextField1.setText(Integer.toString(N+10)); else jTextField1.setText(Integer.toString(N+15)); 6. Rewrite the following program code using a Switch statement. if (code ==1) Day = "Monday" ; else if (code == 2) Day = "Tuesday" ; else if ( code ==3) Day = "Wednesday" ; else if ( code == 4) Day = "Thursday" , else Day = "No Match" ; 7. What will be displayed In jTextArea1 after executing the following statement: jTextAreal.setText("Live\nIn Peace\t and harmony") ; 8. The following code has some error(s). Rewrite the correct code underlining all the corrections made: Int P=3; sum = 0; //Declaring P and sum as Integer { Sum = P; P += 3; } while (P=<12) jTextField1 (Integer.tostring(sum)) ; 38 Chapter 4-BASICS OF OBJECT ORIENTED PROGRAMMING Q1. Explain Polymorphism with example. Q2. What do you mean by function overloading? Explain with the help of an example. Q3. Explain abstract classes with example Q4. Study the following code and answer the questions that follow: public class Employee extends javax.swing.JFrame { public Employee() { initComponents(); } } (i) Which feature of object oriented programming is depicted above? Explain it. (ii) Name the base class and derived class. (iii) Name the keyword used for passing on characteristics of the base class to derived class Chapter 5-ADVANCED PROGRAMMING CONCEPTS Q1. Write the value of ans after executing following code : String ans=”PROGRAM”, ans1=” concepts“; ans=ans.concat(ans1); Q2 Write the value of L after executing following code : String a=”p R O G R a M”, b; b=a.trim(); int L=b.length(); Q3 Study the following code and answer the questions that follow: double n,r; n=Double.parseDouble(jTextField1.getText()); r=Math.round(n*5000)/500.0; jTextField2.setText(Double.toString(r)); (i) How many variables have been declared in the above code? Identify and name them. (ii) How many objects have been declared in the above code? (iii) Name any one native class of Java used in the above code. (iv) Identify and name a method of this native class Q4 Explain toString() with example. 39 Chapter 6 DATABASE CONNECTIVITY Q1. Explain next(), removeRow(), forName(), getModel(), JDBC. Q3. Name 3 classes required to import for setting up the connection with the database and retrieve data from it. Q4 What is JDBC? What is the importance of JDBC in establishing database connectivity? Q5 Study the following code and answer the questions that follow: String query =”SELECT NAME, DESIG FROM EMPLOYEE”; ResultSet rs = stmt.executeQuery(query); // Statement 1 if (rs. next()) // Statement 2 { String Name =rs.getString(“Name”); String Desig =rs.getString(“Desig”); jTextField2.setText(Name); jTextField3.setText(Desig); } (i) Name the table from where the data is being retrieved. (ii) How many objects of the native String class have been declared in the code? (iii) Identify the object name, class name and method name used in the statement labeled as Statement1. (iv) Explain the function of the statement labeled as Statement 2. Q6. Which statement is used to instantiate a statement object using connection object. Q7. Which method is used when we simply want to retrieve data from a table modifying the contents of the table. EXTRA CLASSES WILL COMMENCE FROM 11-05-2016(WED) TO 31-05-2016(TUESDAY). SUMMER VACATIONS WILL COMMENCE W.E.F 01-06-2016(WED) TO 30-06-2016(THUR). SCHOOL WILL RE-OPEN ON 01-07-2016(FRI). 40