24
HOLIDAY HOMEWORK
CLASS-XII SCIENCE
English 1.Write on following topics in your respective English Registers.
a) Value Based Education Remedy to Decrease Crime
b) Hazards of Environmental Pollution.
c) Circus- “A Menace to Animals”.
d) The Role of Youth in Combatting Corruption.
e) Minimizing of Human Rights is the way to cleanse society from corruption.
f) Teaching Profession is better Medical profession.
2. Prepare a power point presentation or write review of chapters : 1 to 13.
3. Learn the syllabus completed in class till 30May 2018 for Selection Test in June month.
Maths
Q.1 Show that A’A and AA’ are both symmetric matrices for any matrix A.
Q.2 If A=*
+ *
+
Q.3 Find the value of x for which the matrix product
[
] [
]
Q.4 If A =[
]
Q.5 Find a matrix A such that 2A-3B+5C=0 where B= [
] [
]
Q.6 If A= *
+ , B=*
+ and (A+B)2=A2+B2, find a and b.
Q.7 If A=*
+ , f(x)=x2-2x-3, show that f(A)=0.
Q.8 If A=*
+, find .
Q.10 Given A=[
] [
] find BA and use this to solve the system of
equations y+2z=7 , x-y=3 , 2x+3y+4z=17.
25
Q.11 If A=[
] ?
Q.12 Two factories decided to award their employees for three values of (a) adaptable to new techniques, (b) careful and alert in difficult situations and (c) keeping clam in tense situations, at the rate of RS. X, Rs. Y and Rs. Z per person respectively. The first factory decided to honour respectively 2,4 and 3 employees with a total prize money of Rs. 29000. The second factory decided to honour respectively 5,2,and 3 employees with the prize money of 30500. If the three prizes per person together cost Rs. 9500 , then i) Represent above situation by a matrix equation and form linear equations using matrix multiplication. ii) Solve these equations using matrices.
Q.13 Two institutions decided to award their employees for the three values of
resourcefulness ,competence and determination in the form of prizes at the rate of Rs. X, Rs. Y and Rs. Z respectively per person.. The first institution decided to award respectively 4,3 and 2 employees with a total prize money of 37000 and the second institution decided to award respectively 5,3 and 4 employees with a total prize money of 47000. If all the three prizes per person together amount to Rs. 2000 then using matrix method find the value of x, v and z
Q.14 Using properties of determinants, solve for x:|
|
Q.15 Using properties of determinants, Show that |
( )( ) ( )( ) ( )( )
|
Q.16 Write the value of |
|
Q.18 The slope of the curve 2y2=ax2 at (1,1) is -1. Find a.
Q.19 Show that the acute angle of intersection between the curves xy=6 and x2y=12 is
(
)
Q.20 Show that the acute angle of intersection between the curves y2=4x and x2=4y is (
).
Q.22 Find the equation of tangent to the curve y=(x3-1)(x-2)at the points where the curve cuts at
the x-axis.
26
Q.23 The volume o a cube is increasing at a constant rate. Prove that the increase in surface area
varies inversely s the length of edge of cube.
Q.24 Show that f(x)=sin x -2cos x -2 is increasing in (
)
Q.27 Determine the value of x, the function f(x)=
is increasing or decreasing. Also find the
points on the graph of function at which the tangent is parallel to x-axis.
Q.30 For the curve y=5x-2x3 , if x increases at the rate of 2 units/sec, then find the rate of change
of the slope of the curve when x=3.
Q.31 Show that the points (a+5,a-4), (a-2,a+3) and (a,a) do not lie on a straight line for any value
of a.
Q.32 To raise money for an orphanage, students of three schools A, B and C organized an exhibition in their locality, where they sold paper-bags, scrap-books and pastel-sheets made by them using recycled paper, at the rate of Rs. 20, Rs. 15 and Rs. 5 per unit respectively. School A sold 25 paper bags, 12 scrap-books and 34 pastel sheets. School B sold 22 paper-bags, 25 scrap-books and 28 pastel sheets while School C sold 26 paper-bags, 18 scrap-books and 36 pastel sheets. Using matrices, find the total amount raised by each school. By such exhibitions, which values are inculcated in the students?
Q.33 Ishan wants to donate a rectangular plot of land for a school in his village. When he was asked to give dimensions of the plot, he told that if its length is decreased by 50 m and breadth is increased by 50 m, then its area will remain same, but if length is decreased by 10 m and breadth is decreased by 20 m, then its area will decrease by 5300m2 . Using matrices, find the dimensions of the plot. Also give reason why he wants to donate the plot for a school.
Q.35 Using properties of determinants, |
|
Q.36 For what value of x the matrix A=[
]
27
Q.37 Determine the value of x for which the matrix [
] is singular.
Q.38 Evaluate |
|
Q.39 Without expanding show that |
|=0
Q.40 Let A=*
+ Using this result calculate A3 and A5.
Q.41 If A=|
| . Using , solve the system of linear
equation x-2y=10, 2x-y-z=8 and -2y+z=7.
Q.42 Find the intervals in which the function f(x)=
+51 is
i) Strictly increasing ii) Strictly deceasing
Q.48 Show that the function f(x)=tan-1(sinx+cosx) ,x>0 is always increasing in (0,
).
Q.49 Find the intervals in which the function f given by f(x) = sin x + cos x, 0 ≤ x ≤ 2π is (i) Strictly increasing (ii) Strictly decreasing
Q.50 Prove that the radius of the right circular cylinder of greatest curved surface area which can be inscribed in a given cone is half of that of the cone.
Q.51 If log(x2+y2)=2 ( )
Q.52 If y=log tan(
) , show that
Q.53 If y= ( )( )( )( ) , Find
Q.54 If y = √ ( )
⁄
( )
⁄ , Find
Q.55 If a+b+c and |
|
Q.56 If x,y,x R then show that |
( ) ( )
( ) ( )
( ) ( )
|
28
Q.57 If x=-9 is a root of [
]
Q58 Prove that |
| is divisible by a+b+c then find the quotient.
Q.59 In a triangle ABC , if [
]=0 then prove that
is an isosceles triangle.
Q.60 Solve the following determinant equations:
i) |
| ii) |
|
Q.61 Without expanding Show that |
| |
|
Q.62 show that i) |
|=0
Q.63
Q.64 Show that |
|
Q.65 Without expanding the determinant show that (a+b+c) is a factor of the |
|
Q.66 Expand |
( ) ( )
( ) ( )
( ) ( )
|
Q.67 Expand |
|
Q.68 Prove that |
| ( )( )( )
Q.69 Solve the following determinant equations:
I ) |
| ii) |
|
Q.70 Solve the following determinant equations:
i) |
| ii) |
|
29
Q.71 Using properties of determinants, Prove that:|
|
Q.72 Prove that:|
| ( )( )( )
Q.73 Using properties of determinants, Solve for x:|
|
Q.74 Using properties of determinants, Prove that |
|
Q.75 Using properties of determinants, Prove that :|
|
Q.76 Using properties of determinants, Prove that :|
| (
)
Q.77 Prove that: |
| ( )( )( )
Q.78 A school wants to award its students for the values of honesty, Regularity and Hard work
with a total cash award of Rs. 6000. Three times the award money for hard work added to
that given for honesty amounts to Rs. 11000. The award money given for Honesty and Hard
work together is double the one given for Regularity. Represent the above situation
algebraically and find the award money for each value, using matrix method.
Q.79 Two Schools A and B decided to award prizes to their students for three values, team spirit, truthfulness and tolerance at the rate of Rs. X , Rs. Y Rs. Z per student respectively, School A decided to award a total of Rs 1100 for the three values to 3,1 and 2 students respectively While School B decided to award Rs. 1400 for the three values to 1,2 and 3 students respectively. If one prize for all the three values together amount to Rs. 600 then i) Represent the above situation by a matrix equation after forming linear
equations. ii) Is it Possible to solve the system of equations so obtained using matrix.
Q.80 Two schools P and Q want to award their selected students for the values of
sincerity, truthfulness and hard work at the rate of RS. X , Rs.. Y and Rs. Z for each respective value per student. School P awards its 2,3 and 4 students on the above respective values with a total prize money of RS. 4600. School Q wants t award its 3,2 and 3 students on the respective values with a total award money of Rs, 4100. If the total amount of award money for one prize on each value is Rs. 1500, using matrices find the award money for each value.
30
Q.81 A total amount of Rs. 7000 is deposited in three different savings bank accounts with annual interest rates of 5%, 8% and 8.5% respectively. The total annual interest from these three accounts is RS. 550. Equal amounts have been deposited in 5% and 8% savings accounts .Find the amount deposited in each of the three accounts, with the help of matrices.
Q.82 The monthly incomes of Aryan and Babban are in the ratio 3 : 4 and their monthly
expenditures are in the ratio 5 : 7. If each saves Rs. 15,000 per month, find their monthly incomes using matrix method. This problem reflects which value?
Q.83 If A=diag(1,-1,2) and B =diag(2,3,-1), find A+B, 3A+4B.
Q.84 If [ ] *
+ *
+
Q.85 If A=*
+ *
+ ( )
Q.86 If A= *
+
Q.87 If A is square matrix such that A2=A. Show that (I+A)3=7A+I
Q.88 If [
]
Q.89 Find the equation of the tangent and the normal to the curve y=2
at the point where
curve cuts y=axis.
Q.90 Prove that the tangent to the curve y=x2-5x+6 at the points (2,0) and (3,0) are at right
angle.
Q.91 Find the intervals in which the function f(x)=
is strictly increasing or decreasing.
Q.92 Show that the function tan x-4x is decreasing on (
)
Q.93 An open box with square base is to be made out of a given quantity of cardboard of area c2
square units. Show that the maximum volume of the box is
√ cubic units.
Q.94 A manufacturer can sell x items at a price of (5-
) each. The cost price of x items is Rs.
(
). Find the number of items he should sell to earn maximum profit.
Q.95 Solve for x,yand z by Matrix Method
Xy+yz+zx=11
Xy-3yz+5zx=35
2y+4yz-3zx=-14
Q.96 Two schools A and B want to award their selected students on the values of sincerity, truthfulness and helpfulness. The school A wants to award Rs. X each, Rs. Y each and Rs. Z each for the three respective values to 3,2 and 1 students respectively with a total award money of Rs 1600 School B wants to spend Rs. 2300 to award its 4,1 and 3 students n the respective values (by giving the same award money to the three values as before). If the total amount of award for one prize on each value is Rs. 900 using matrices, find the award money for each value.
31
Q.97 Two schools P and Q want to award their selected students on the values of Discipline, Politeness and Punctuality. The school P wants to award Rs. X each, Rs. Y each and Rs. Z each for the three respective values to its 3,2 and 1 students with a total award money of Rs. 1000. School Q wants to spend Rs. 1500 to award its 4,1 and 3 students on the respective values. (by giving the same award money for the three values as before). If the total of awards for one prize on each value is Rs. 600, using matrices, find the award money for each value.
Q.98 Using properties of determinants, Find the value of f(2x)-f(x) where f(x)=|
|
SUBJECT- PHYSICS
1. All solved examples, exercises and additional exercises of chapter 1, 2, 3,4,5,6 from 8 NCERT book to be
done in a separate register.
2. 15 Experiments to be written in Practical note book.
4. Write 6 activities in a separate practical file
3. An Investigatory Project on any of the following topics. Electrostatics, Current Electricity, Magnetism,
EMI and AC, Optics, Modern Physics, Electronics and Communication Systems.
Electrochemistry 1. Calculate the cell potential and ΔG˚ of the given cell at 25˚C,
Ni / Ni2+ (0.01 M) // Cu2+ (0.1 M) / Cu
(Given R= 8.314 JK-1mol-1, F=96500 Cmol-1, E˚ Cu2+/Cu= +0.34V, E˚Ni2+/Ni = - 0.25V)
2. State Kohlrausch law of independent migration of ions . Write an expression for the
molar conductivity of acetic acid at infinite dilution according to Kohlrausch law
3. Gaurav’s father wants to buy new car. they find various option in the market Gaurav
persuades his father to buy hybrid car. Which can run both on electricity as well as
on petrol. Mention the values associated with the decision. Name the battery used
in the car. Write the reaction taking place at the anode and cathode of battery
4. Sameer , a software professional wishes to buy an electric –generator which runs on
LPG or diesel, to face long power cuts during summer .But his son Akhil , a class -12
science student suggests his father to buy the more expensive modern fuel cells
which run on liquid fuel like methyl alchohol . After reading the above passage ,
answer the following questions:
i) As a student of chemistry give atleast two reasons as to why Sameer should
follow Akhil’s suggestion and buy the more expensive fuel cells?
5. a) In a mercury cell ,
I. which substances act as the anode and the cathode?
32
II. which electrolyte is used in the cell ?
III. what is the cell potential ?
IV. why does its cell voltage remain constant throughout its lifetime?
b) A voltaic cell is set up at 25:C with the half –cells: Ag⁺(0.001M)/Ag Cu<⁺(0.10)/Cu What would be its cell potential ? ( given :E: cell =0.46V,log10⁵=5)
6. State Kohlrausch law of independent migration of ions . Write an expression for the
molar conductivity of acetic acid at infinite dilution according to Kohlrausch law .
b) Molar conductivities at infinite dilutions for NH₄Cℓ,NaOH &NaCℓ at 298K are respectively 129.8Scm<mol⁻; ,217.4Scm<mol⁻; & 108.9Scm<mol⁻; and the molar conductivity of a 10⁻<Msolution of NH₄OH is 9.33 Scm<mol⁻; . Suggest how this information may be used to calculate the degree of dissociation of NH₄OH & its dissociation constant in its above mentioned solution .
7. The conductivity of 0.00001 M acetic acid of 4 x 10-5 Scm.calculate the dissociation
constant of acetic acid ,its molar conductivity at infinite dilution for Acetic acid is
390 Scm2/mol.
8. (a) What are lead storage battery ?write the charging and discharging reaction?
Represent the galvanic cell in which following reaction takes place
Zn + Cu2+ Zn2+ + Cu
9. What are fuel cell ? Explain the electrode reaction involved in the working of H2 –
O2 fuel cell
10. Illustrate with the help of diagram how the molar conductivity of a strong
electrolyte
and weak electrolyte vary with dilution of solution
11. Conductivity of 0.00241M acetic acid is 7.89x 10-5 S/cm. Calculate The dissociation
constant of acetic acid. If molar conductivity at infinite dilution for acetic acid is
390.5 Scm2/mol. What would be its dissociation constant
12. What is corrosion? Explain the electrochemical theory of rusting of iron and write
the
reaction involved in it?
13. Calculate the emf for the given cell at 25 :C Also determine the value of :G and
equilibrium constant Kc
Cr ICr3+ (0.1) || Fe2+(0.01M)| Fe
E: Cr3+/Cr = -0.74V E: Fe2+/Fe = -0.44V
14. The resistance of a conductivity cell containing 0.001 M KCl. Solution at 298K is 1500
What is the cell constant if the conductivity of 0.001M KCl solution at 298K is
0.146x10 -3 Scm-1
33
15. Define kholrausch law Molar conductivity Conductivity
16. i) For the cell Zn |Zn2+(2M) || Cu2+(0.5)|Cu
Write the equation for each half reaction ? Calculate the cell potential at 25 K
Zn2+| Zn = -0.76V Cu2+|Cu=+0.34V
ii) A Copper silver cell is set up. The copper ion concentration
is 0.1M. The concentration of silver ion is not known the cell
potential when measured was 0.422V.determine the
concentration of silver ion in the cell
Ag+|Ag = 0.84 Cu2+|Cu=+0.34V
HALOALKANE AND HALOARENE
1. (a) What is meant by chirality of a compound? Give example
(b) Which one of the following compound is more easily hydrolysed by KOH and
why?
(c) Why haloarenes are much less reactive than haloalkane towards nucleophilic
substitution reaction?
2. (a) Haloalkane easily dissolve in organic solvent,why?
(b) What is known as racemic mixture? Give an example.
(c) Chloroform is stored in closed dark coloured bottles completely filled so
that air is kept out.Explain?
ii) Write the mechanism of following reaction?
n-BuBr + KCN ———— nBuCN
3. (a) Why does p-dichlorobenzene have a higher melting point than its o- and
m- isomers?
(b) Why is (+)-Butan-2-ol is optically inactive?
(c) C—Cl bond length in chlorobenzene is shorter than that in CH3—Cl
4. (a) Chlorine is electron withdrawing group yet it is ortho -para directing in
electrophilic substitution reaction.why?
34
(a) Haloalkane undergo Nucleophilic substitution reaction whereas haloarene
undergoes electrophilic substitution .Explain?
5. How would you differentiate between SN1 and SN2 mechanism of substitution
reaction? Give one example of each
6. Which compound react faster and why ?
i) 1- bromopentane or 2-bromopentane (SN2 )
ii) 1- bromo-2-methylbutane or 2-bromo-2-methylbutane (SN2)
7.
(a) Wurtz fittig reaction
(b) Finkel stein reaction
(c) Swart’s reaction
(d) Williamsons synthesis
(e) Hundsdiecker reaction
8. Complete the following reaction:
(b) CH3CH2CH=CH2 + HBr —— —————
(c) CH3 + HI ———————
(c) —OH + SOCl2 ———————
9. Alkyl halide react with KCN to form alkyl cyanide as main product while AgCN forms isocyanides as the main product
(b) Which one undergoes SN2 substitution reaction faster and why
(d) Which one will have a higher dipole moment : CH2Cl2 or CCl4 and why
10. a) What happens when 2-chloropropane reacts with sodium in dry ether ? b) CH3CH2Br + AgF -------------- A + B .What is A and B ?
11. The treatment of RX with aq. KOH gives alcohol, but with alc.KOH gives Alkene why?
12. complete the following reaction.(write the name 0f type of reaction or the
mechanism involved in it)
(i) CH3CH2Cl + SO2Cl ----------
35
(ii) CH3CH2Cl + alc. KOH ------------->
(iii) CH3CH2 CH2CH2Cl + HBr --------------->
ALCOHOL AND PHENOL
13. (a) Why phenol is more acidic than ethanol?
(b) Ortho nitro phenol has lower boiling point than p- nitrophenol..Why ?
(c) Ortho nitro phenol is more acidic than ortho –methoxyphenol
14.
(i) Methyl magnesium bromide ———— 2-methyl propan-2-ol
(ii) Phenol ———— Picric acid
(iii) 2 methyl propanol ———— 2-methylpropene
(iv) Propene ———— propan-2-ol
(v) Propene ———— propan-1-ol
15. Mechanism of the following
2 CH3CH2OH ——— ————
CH3CH2OH ——— —
16. Describe a chemical test to distinguish between the following
(i) Phenol and ethanol
(ii) 1-propanol and 2-propanol
(iii) 2-pentanol and 3-pentanol
17. Name reaction
A)Kolbes reactio b) Riemer-tiemann reaction c) Williamsons synthesis
18. How will you obtain 2-hydroxybenzoic acid from phenol
19. (i) Explain the mechanism of formation of ethoxyethane from ethanol 20. (ii) How is toluene obtained from phenol
36
ALDEHYDE AND KETONE
1. Name reaction:
(i) Clemensen reduction
(ii) Hell-volhard-zelinsky reaction
(iii) Cross aldol condensation
(iv) Decarboxylation
(v) Stephen reaction
(vi) Aldol condensation
(vii) Etard reaction
(viii) Sandmeyers reaction
(ix) Coupling reaction
(x) Wolf kishner reaction
(xi) Friedel – craft‟s acetylation of anisole
(xii) Canninzaro‟s reaction
(xiii) Rosenmund reaction (friedel craft acylation)
(a) Phenoxide ion has more number of resonating structure than carboxylate ion in
carboxylic acid is a stronger acid than phenol
(b) Aldehyde and ketones have lower boiling points than corresponding
alcohol.why?
(c) Two –NH groups in semicarbazide. However only one such group is involved in
the formation of semicarbazone.
(d) Cyclohexanone forms cyanohydrins in good yield but
2,4,6trimethylcyclohexanone
(e) Aldehyde are more reactive than ketone
(f) pH is specified for reaction of ammonia derivative compound with carbonyl group.
2. Conversion
i. Propanone to propane
ii. Benzoyl chloride to benzaldehyde
iii. Ethanal to but-2-enal
iv. Propan-2-ol to propanone
37
v. Phenol to 2,4,6-tribromophenol
vi. Ethanol to propan-2-ol
vii. Nitrobenzene to benzoic acid
viii. Benzyl chloride to 2-phenylethanamine
ix. Aniline to benzyl alcohol
x. Ethylcyanide to ethanoic
xi. Buta-1-ol to butanoic acid
xii. Benzoic acid to m- bromobenzoic acid
xiii. Aniline to chlorobenzene
xiv. Nitrobenzene to phenol
xv. Aniline to nitrobenzene
xvi. Aniline to iodobenzene
xvii. Ethyl benzene to Benzoic acid
xviii. Toulene to benzaldehyde
3. Chemical test to distinguish between the following pairs of compounds
(a) Benzene amide and 4-aminobenzoic acid
(b) Methyl acetae and ethyl acetate
(c) Benzoic acid and phenol
(d) Benzaldehyde and acetophenone (2011 also)
(e) Pentan-2-one and pentan -3-one
(f) Propanal and propanone
4. An organic compound with molecular formula C9H100 forms 2,4-DNP derivative and
reduces tollen ‟s reagent and undergoes canninzaro‟s . on vigorous oxidation ,it
gives 1,2-benzene dicarboxylic acid .identify the compound and write chemical
equation for the reactions.
(a) An organic compound with molecular formula C5H10O does not reduce tollen‟s
reagent but forms an addition compound with sodium hydrogen sulphite and
gives a positive idoform test .on vigorous oxidation , it gives ethanoic acid and
propanoic acid.identify the compound and write all equation
(b) An organic compound A contains 69.77% carbon , 11.63% hydrogen
And rest oxygen. The molecular mass 86. It does not reduce tollens reagent but
forms an addition compound with sodium hydrogen sulphite
38
And give positive iodoform test .on vigorous oxidation gives ethanoic and
propanoic acids.derive possible structure of compound A?
AMINES AT GLANCE
1. pkb for aniline is more than that for methylamine.?
2. Why alkylamine more basic than ammonia?
3. Methylamine solution in water reacts with FeCl 3 solution to give a precipitate
Of ferric hydroxide?
4. Aniline doesnot undergoes friedel craft reaction?
5. Primary amines have higher boiling point than tertiary amines?
6. M-aminophenol is stronger acid than o-aminophenol?
7. Conversion
(a) Aniline to chlorobenzene
(b) Aniline to benzyl alcohol
(c) Nitrobenzene to benzoic acid
(d) Nitrobenzene to phenol
(e) Ethyl cyanide to ethanoic acid
(f) Aniline to benzyl alcohol
(g) Aniline to p hydroxyazobenzene
(h) Ethanoyl chloride to
ethanenitrile
39
8. Name reaction:
(a) Hoffmann’s bromamide reaction
(b) A coupling reaction
(c) Gatterman reaction
(d) Gabriel thalimide reaction
(e) Carbylamines reaction
(f) Sandmeyer reaction
9. CH3NH2 is a stronger base than NH3
10. Silver chloride dissolves in aqueous methyl amine solution?
11. Ethylamine is soluble im water but aniline is insoluble?
12. Arrange the following in increasing order of their solubility in water?
C6H5NH2 , (C2H5) 2NH , C2H5NH2
13. Arrange the following in decreasing order of their basic strength in aqueous
Solution. CH3NH2 , (CH3)3NH , (CH3)3N ,NH3
14. Arrange the following in decreasing order of their basic strength in aqueous
Solution . CH3NH2 , (CH3)3NH , (CH3)3N
15. C6H5N2Cl A – B C
16. C6H5NO2 A – B C
17. Give a chemical test to distinguish between
(a) Ethylamine and aniline
(b) Ethylamine and dimethylamine
40
XII SCIENCE,COMMERCE,HUMANITIES
INFORMATICS PRACTICES (065) ASSIGNMENT
Note:-
i. Do the assignments in Assignment Note Book.
ii. GUI case studies and SQL Queries should be done in practicals too,
bring the soft copy of the same.
GUI Case Studies (6 marks Question)
1.
a. Ms. Jenny wants to create a form for Indian Railways Accomodation
Charges. She has created the following GUI using Netbeans, as shown
below:
There are three types of accommodation with charges as:
For AC Rs. 400 per day.
For Non-AC Rs.250 per day.
For Dormitory Rs. 100 per day.
Write the code to do the following :
i. „Calculate‟ Balance Amount, on the basis of combo box optionis
selected using formula.
Balance=no_of_days*Selected_cat_charges-Advance
ii. Write the code required for „CLEAR ALL‟ to clear all the textfields.
iii. Write the code to Exit the program.
2. M/s. R Ltd wants to calculate mean value for its business. They designed a GUI
in java using Netbeans as below:
41
Accept frequencies (f) in the first 4 text boxes.
Write the code to do the following :
i. „Calculate‟ Mean value, on the basis of all the 4 frequencies using
formula.
Mean=(f1+f2+f3+f4)/4
ii. Write the code required for „CLEAR ALL‟ to clear all the textfields.
iii. Write the code to Exit the program.
3. Ms. Rakhi works in an International Bank as an IT Head. She designs a simple
Interest
calculator
program as
shown below:
The interest rate is given based on the account type as shown below:
Account Type Interest Rate %
SAVING 4%
RECURRING DEPOSIT 6%
42
FIXED DEPOIST 8%
i. Write the code required for „INTEREST RATE „ button to display
interest rate as per the above given criteria.
ii. Write the code required for „SI‟ button to calculate and display
„SIMPLE INTEREST‟ based on the given formulae:
SI=(amount*interest_rate*duration)/100
iii. Write the code required for „CLEAR ALL‟ to clear all the textfields.
4. Mr.Kunalworksasaprogrammerin“DeliciousIceCream”parlourwherehe
hasdesignedasoftware tocomputechargestobepaidbythecustomer.A
screenshotofthesameis shownbelow:
Acustomercantakeanyice creamoutof1Scoop/2Scoops/IceCreamSundae.
Acustomercan alsooptforone,twoorall threetoppingsoverIceCream. Chargesoftoppingsareextra.Eachtoppingsisfor30.00.Forexampleiftwo toppings arechosen,60.00willbedisplayedas Toppings Charges. HelpMr.Kunalinwritingthecodetodothe following: (i) AfterselectingappropriateRadioButtonandcheckbox(es),(ifrequired),when„CalculateAmount‟buttonisclicked,IceCreamcharges,ToppingsCharges and „TotalAmounttoPay‟shouldbecalculatedanddisplayedtherespectivetext fields. ChargesforIceCreamsareasfollows :
Typeof IceCream
IceCream Charges 1Scoop 60.00
2Scoops 80.00
43
IceCream Sundae
120.00
TotalAmounttoPay=IceCreamCharges +Toppings Charges. (ii) When„CLEAR‟buttonisclicked,allthetextfields,radio buttonsand checkboxes shouldbecleared. (iii) When„Exit‟buttonis clicked, theapplicationshouldclose.
5. Ms. Charma works as a programmer in “ABG Gar Rental Gompany”
where she has designed a software to compute charges to be paid bythe
client. A screenshot of the same is shown below:
A client can take any car out of Deluxe/CemiDeluxe/Ordinary for rent.
A client can also opt for services of a guide. Gharges vary depending
on the type of car opted.
Charges of services of Guide are extra.
Help Ms. Charma in writing the code to do the following :
a. AfterselectingappropriateRadioButtonandcheckbox(ifrequired),
b. when „CALCULATE‟ button is clicked, Amount, Guide Charges and Total
Amount should be calculated and displayed in therespective text fields.
44
Cat ego ry of Car Amo u nt (in
Rs) Deluxe Car 1000 per day
Semi Deluxe Car 800 per day
Ordinary Car 700 per day
AmountisobtainedbymultiplyingperdaychargesofCarwith
number of days for which the car is taken.
If „Guide Required‟ checkbox is selected, Guide charges per day are
Rs 500.00.
Guide Gharges is calculated as : car required for No. of days * 500;
TotalAmount=Amount+Guidecharges
c. When „CLEAR‟ button is clicked, all text fields andcheckboxshould
be cleared.
d. When „Close‟ button is clicked,the applicationshouldclose. 6. Ms.Neelamworksasaprogrammerin“Kidz EntertainmentZone”.Shehas
designeda Registration Pagetocalculate thetotalfee of summercampdepending
uponthenumberofactivitiesselectedbytheuserconsideringageeligibility as well. A
screenshot of thesame is shown below:
45
Help herin writingthe codeto do the following: i. Afterenteringtheagein the specified text field,when „ChkEligibility‟button is clicked,adialogueboxshouldbedisplayedwithamessage“Welcome”ifageis inbetween3-13yearselsetheprogramshould beterminatedafterdisplaying the message “Sorry!You are either underageor overage!!”.
ii.Afterselecting the desirableactivities,totalfeeshouldbedisplayedinthe specifiedtextfieldontheclickof“Proceed”buttonattherateofRs.1000per activity.
iii.Adiscountof20%isapplicableifmorethanoneactivityischosenbythe user.
iv.Afterclickingonthe“NetFee”button,NetFeeshouldbecalculatedand displayed in therespectivetext field as perthegiven formula:
NetFee= Fee – Discount
7. Read the following case study carefully and answer the questions that
follows –
Read the following case study and answer the questions that follow : AVON Tools has
computerized its billing. The following is the data entry screen used by them :
Write code to implement the following :
(a) when user clicks Clear button , all the values stored in text fields and radio buttons
should be cleared.
46
(b) Ensure that value entered in quantity text field is positive only.
(c) Close the application when exit button is clicked.
(d) when calculate button is clicked , sub total , tax ( 6.50% of Sub Total), delivery and
handling charges and total amount
are computed and displayed in respective text fields.
The criterion of Delivery and Handling charges is as given below :
Category of City Charges
A Rs. 2000. B Rs. 3000
C Rs. 3500
(g) Read the following case study carefully and answer the questions that follows
–
Read the following case study and answer the questions that follow : AVON Tools has
computerized its billing. The following is the data entry screen used by them :
Write code to implement the following :
(a) when user clicks Clear button , all the values stored in text fields and radio buttons
should be cleared.
(b) Ensure that value entered in quantity text field is positive only.
(c) Close the application when exit button is clicked.
(d) when calculate button is clicked , sub total , tax ( 6.50% of Sub Total), delivery and
handling charges and total amount
are computed and displayed in respective text fields.
The criterion of Delivery and Handling charges is as given below :
Category of City Charges
A Rs. 2000. B Rs. 3000
47
C Rs. 3500
SQL ASSIGNMENT
1. Write SQL command to view the constraints to EMP table.
2. Mr. Naveen wants to remove the entire content of a table “RESULT” alongwith its
structure to release the storage space. What Mysql statement should be used?
3. Distinguish between Primary Key and Unique key.
4. Sheela created a table in Mysql later on she found that she did not need a
column “fee” . Which command should she use to delete the column from the
table.
5. Write a command to add a NOT NULL constraint on FEES column of a student
table.
6. In an item table columns include ItemCode, ItemName, Price and Qty. Which one
of these columns should be set as primary key and why?
7. Mr. Manjeet created two tables wit Department as Primary key in table 1 and
foreign key in Table2. While inserting a row in Table2. Mr. Manjeet is not able to
enter a value in the column Deptno. What could be the possible reason for it?
8. What is the purpose of GROUP BY clause in Mysql? How is it different from
ORDER BY clause?
9. There is a column SALARY in a table EMPLOYEE . The following two
statements are giving different outputs. What may be the possible reason?
SELECT COUNT(*) FROM EMPLOYEE;
SELECT COUNT(SALARY) FROM EMPLOYEE;
10. A table FLIGHT has 4 rows and 2 columns and another table AIRHOSTESS has
3 rows and 4 columns . How many rows and columns will be there, if we obtain
the Cartesian product of these two tables?
11. State two difference between date function NOW() and SYSDATE() of MySQL.
12. ShanyaKhanna is using a table EMPLOYEE . It has the following columns:
Admno, Name, Agg, Stream[Column Agg contains Aggregate Marks]
She wants to display highest Agg obtained in each stream.
She wrote the following statement:
SELECT Stream, Max(Agg) FROM EMPLOYEE;
But she did not get the desired result . Rewrite the above query with necessary
changes to help her get the desired output.
13. Write two eg. Of DML commands to SQL.
14. When using the LIKE clause, which wildcard symbol represents any sequence of
none, one or more characters?
15. Write the UPDATE statement in Mysql to increase the commission by 100.00 in
the “Commission” Column in the „EMP‟ table.
48
16. Rewrite the following SQL statement after correcting error(s) .underline the
corrections made.
INSERT IN STUDENTS(RNO, MARKS) VALUE(5,78.5);
17. Distinguish between ALTER TABLE and UPDATE commands of mysql.
18. Mention any two categories in which Mysql Commands are broadly classified.
19. Give any two characteristics of Primary key.
20. Write two examples of DBMS software.
21. Define Foreign key with reference to DBMS.
22. Write the command to display the list of existing databases.
23. Mr. William wants to remove all the rows from the INVENTORY table to release
the storage space, but he does not want to remove the structure of the table.
What Mysql statement should be used.
24. Write Mysql command to open an existing database.
25. Write Mysqlcommand , which will be used to open an already existing database
“LIBRARY”.
26. Differentiate between alternate key and candidate key.
27. In mysqlReena andZebi are getting the following output of SELECT statement
on a table EMPLOYEE.
Which keyword has Zebi used with Select Statement to get the above output.
28. Write Mysql command, which will open an already existing database
“CONTACTS”.
29. Mr. James created a table CLIENT with 2 rows and 4 columns. He added 2 more
rows to it and deleted one column. What is the cardinality and degree of the
Table Client.
30. A table “Trains” has degree 3 and cardinality 8. What is the number of rows and
columns in it.
31. Sam , a student of class XI created a table “CLASS”. Grade is one of the column
of this table. To find the detail of students whose Grades have not been entered ,
he wrote the following Mysql query, which did not give the desired result.
SELECT * FROM CLASS WHERE GRADE=”NULL”;
Help Sam to run the query by removing the errors from the query and write the
correct query.
32. Amit, a salesman in an Outlet , create a table TRANSACTION on Amount is one
of the column of this table. To find the details of customer whose transaction is
Reena
Lucknow Delhi Mumbai Delhi Kanpur Delhi
Zebi
Lucknow Delhi Mumbai Kanpur
49
more than 800, he wrote the following mysql query, which did not give the
desired result.
SELECT * FROM TRANSACTIONS
WHERE AMOUNT > “800”;
Help Amit to run the query by removing the errors from the query and write the
correct query.
33. Anushika , a salesman in an outlet, created a table Customers. Phoneno is one
of the column of the table , which is character type. To find the details of
customers whose Phoneno is 259624, she wrote the following Mysql query,
which did not give the desired result.
SELECT * FROM CUSTOMERS WHERE PHONENO=259624;
Help Anushika to run the query by removing the errors from the query and write
the query.
34. The Fname column of table „Friends „ is given below:
FNAME
Aakash
Ashna
Ena
Gavi
Arjav
Based on the information , find the output of the following :-
i. SELECT FNAME FROM FRIENDS WHERE FNAME LIKE “%V”;
j. SELECT FNAME FROM FRIENDS WHERE FNAME LIKE
“%e%”;
35. Ms. Pushpa wishes to change the size of column „Publisher‟ of author table from
15 characters to 25 characters.Write the statement for the same.
36. Write the correct code for the following statement:
UPDATE FROM STUDENT;
SETS MARKS=MARKS+10;
37. Roli wants to list the names of all the tables in her database named „Gadgets‟
.Which command should she use to get the desired result?
38. Observe the given statements carefully:
i. SELECT * FROM CLUB WHERE SALARY BETWEEN 20000 AND
30000;
ii. SELECT * FROM CLUB WHERE SALARY IN(20000,30000);
iii. SELECT * FROM CLUB WHERE SALARY>=20000 OR
SALARY<=30000;
iv. SELECT * FROM CLUB WHERE SALARY=20000 OR
SALARY=30000;
50
Make pairs of the equivalent SQL statements given above (which
give the same output ) and place each pair in a group.
SQL 6 MARKS QUESTIONS
39. Consider the following table:
RxID Drug ID
DrugName Price Pharmacy Name
PharmacyLocation
R1000 5476 Amlodipine 100.00 Rx Pharmacy Pitampura, Delhi
R1001 2345 Paracetamol 15.00 Raj Medicos Bahadurgarh, Haryana
R1002 1236 Nebistar 60.00 MyChemist Rajouri Garden, Delhi
R1003 6512 VitaPlus 150.00 MyChemist Gurgaon,Haryana
R1004 5631 Levocitrezine 110.00 RxPharma cy South Extension,Delhi
Write commands in SQL for (i) to (iv):
i. To increase the price of “Amlodipine” by50. ii. To display all those medicines whose price is in the range 100 to150. iii. To display the Maximum price offered by pharmacy located in
“Gurgaon” iv. To display the Drug ID, DrugName and Pharmacy Name of all the
records in descending order of theirprice. On the basis of the Table Pharma ,write the output(s) produced by executing the following queries:
v. SELECT RxID, DrugName, Price from PharmaDB where PharmacyName IN (“Rx Parmacy”, “RajMedicos”);
vi. SELECT PharmacyName, COUNT(*) FROM PharmaDB GROUP BY PHARMACYNAME;
40. Srishti has created the following table with thename„Veterinary‟.
Col u mn Na me Co n straint
AnimalId Primary Key
VaccinationsDate
AnimalName Not Null
OwnerName
One of the rows inserted is as follows :
51
An imalId VaccinationDate An imalNa me
Ow n erNa me
A101 2015-02-12 Sheru Amit Sharma
a. What are the data type of columns AnimalId and
VaccinationDate in the table Veterinary?
b. Srishtiisnowtryingtoinsertthefollowingrow:
AnimalId Vaccination Date AnimalNa me
Ow n erNam e
A102 2015-08-09 NULL Abhimanyu Shah
41. Will she be able to successfully insert it ? Give reason. Table:TEACHER
No. Name Age Department Dateofadm Salary Sex
1 Jugal 34 Computer 10/01/97 12000 M
2 Sharmila 31 History 24/03/98 20000 F
3 Sandeep 32 Maths 12/12/96 30000 M
4 Sangeeta 35 History 01/07/99 40000 F
5 Rakesh 42 Maths 05/09/97 25000 M
6 Shyam 50 History 37/06/98 30000 M
7 Shivam 44 Computer 25/02/97 21000 M
8 Shalakha 33 Maths 31/07/97 20000 F
(i) To show all information about the teachers of Historydepartment.
(ii) To list the names of female teachers who are in Mathsdepartment.
(iii) To list names of all teachers with their date of admission in ascendingorder.
(iv) To insert a new row in the TEACHER table with the followingdata: 9,’Raja’, 26,’Computer’, ‘13/05/95’,23000,’M’
(v) Give the output of the following SQLstatements.
(a) Select COUNT(DISTINCT department) fromTEACHER;
(b) Select MAX(Age) from TEACHER where SEX=’F’; (c)Select AVG(Salary) from TEACHER
52
whereSEX=’M’;
(d) Select SUM(Salary) from TEACHER where Date<{12/07/96}; XII SCIENCE
COMPUTER SCIENCE (083) ASSIGNMENT
Note:-
iii. Do the assignments in Assignment Note Book.
1. Differentiate between public and private visibility modes in context of object
oriented programming using a suitable eg.
2. What do you understand by Classes and objects?
3. When is public visibility mode is applied to members of a class?Also give an eg
to illustrate.
4. Define a class Seminar with the following details
Venue Location Fees
Outdoor 5000
Indoor Non AC 6000
Indoor-AC 7500
5. Define a Class Restra with the following description:-
Private Members
53
Public Members
6. Define a class Applicant in C++ with the following description:
Private Members
Public Members
7. Find the output
1. a)
54
}
55
}
8.
56
9.
57
10.
58
11.
59
12.
60
13. Answer the following questions:-
61
14. Answer the following questions:-
62
15. What is the relationship between a class and an object? Illustrate with a suitable example.
16. What is the differences between members in private visibility mode and the members in public
visibility mode inside a class ? Also give a suitable C++ CODE to illustrate the same.
17. When is public visibility of a mode applied to members of a class? Also give an eg, to illustrate
the same.
18. Explain data hiding and Data Encapsulation with an eg.
19. Write any four characteristics of object oriented programming. Give eg of any one of the
characteristics using C++ .
20. What is function overloading? Give an eg. In C++ to illustrate function overloading.
21. What is operator overloading?Explain with eg.
22. What do you understand by Polymorphism? Give an eg. Illustrating its use.
23. How is abstraction and encapsulation interrelated?
24. What are the advantage of object oriented programming over Procedural Programming.
25. What is the difference between call by value and call by reference ?(two)
26. How classes are different from structure.
27. What is the difference between actual parameter and formal parameter?
28. What is the function of typedef and #define keyword . Also give a suitable eg to illustrate both.
29. State the difference between Syntax Error, Runtime Error , Logical Error .
30. How implicit type conversion is different from Explicit type conversion?
31. State two different types of comments used in C++.
32. Differentiate between typecasting and automatic type conversion. Also give a suitable C++ code
to illustrate the same.
33. What Is the difference between local and global variable? Also give a suitable eg to illustrate
both.
63