HHW Class12 New PDF
HHW Class12 New PDF
2017-18
SECTION-A
1 To determine resistance per cm of a given wire by plotting a graph of potential difference Versus
current.
2 To find resistance of a given wire using meter bridge and hence determine the specific resistance of
its material.
3 To verify the laws of combination of resistors in series using a meter bridge.
4 To verify the laws of combination of resistors in parallel using a meter bridge.
5 To compare the emf of two given primary cells using potentiometer.
6 To determine the internal resistance of given primary cell using potentiometer.
7 To determine resistance of a galvanometer by half deflection method and to find
its figure of merit SECTION-B
8 To find the value of v for different values of u in case of a concave mirror and to
find the focal length.
9 To find the focal length of a convex lens by plotting graphs between u and v or
between 1/u and 1/v .
10 To find the focal length of convex mirror using convex lens.
11. To determine angle of minimum deviation for a given prism by plotting a graph
between angle of incidence and angle of deviation.
12 To draw the I-V characteristic curve of a p-n junction in forward bias and reverse bias.
13 To draw the characteristic curve of a Zener diode and to determine its reverse break down
voltage.
14. To study the of commom emitter n-p-n transistor and to find the values of current
and voltage gains characteristic curve.
SETH ANANDRAM JAIPURIA SCHOOL
CURRENT ELECTRICITY
Q1. A wire of 10 ohm resistance is stretched to twice its original length. What will be its (i) new
resistance and (ii) resistivity? (Ans. 40Ω, same)
Q2. Two wires A and B of same material have their lengths in the ratio 1:5 and diameters in the
ratio 3:2. If the resistance of the wire B is 180 ohm, find the resistance of the wire A.
(Ans. 16 Ω)
Q3. A voltage of 30 V is applied across a colour coded carbon resistor with first, second and
third rings of blue, black and yellow colours. What is the current flowing through the resistor?
(Ans. 0.5 x 10-4 A)
Q4. The temperature coefficient of a resistance wire is 0.00125oC-1 . At 300 K, its resistance is 1
Ω. At what temperature the resistance of the wire will be 2Ω? (Ans. 1127 K)
Q5. The V-I graph for a metallic wire at two temperatures T1 and T2 as shown in figure below.
Which of the two temperature will be higher and why?
T1
I T2
Q7. Why it is easier to start a car engine on a warm day than on a chilly day?
Q9. Why a bulb gets dimmer when the geyser is switched on?
Q10. Two conductors one having resistance R and another 2R are connected in turn across a d.c
source. If the rate of heat produced in the two conductors is Q1 and Q2 respectively, what is the
value of Q1/Q2?
Short Answer Type Questions
Q1. The car battery is of 12 V. Eight dry cells of 1.5 V each connected in series can give 12 V.
But such cells are not used in starting a car, why?
Q2. A cylindrical metallic wire is stretched to increase its length by 5%. Calculate the percentage
change in its resistance. (Ans. 10%)
Q3. Two cells E1 and E2 in the given circuit diagram have an emf of 5 V and 9 V and internal
resistance of 0.3 Ω and 1.2 Ω respectively. Calculate the value of current flowing through the
resistance of 3Ω. (Ans. 0.33 A)
Q4. Calculate the equivalent resistance of the resistance network between the points A and B as
shown in figure, when switch S is closed. (Ans. 9.6 Ω)
Q5. (i) Calculate the equivalent resistance of the given electrical network between points A and
B. (Ans. R)
(ii) Also calculate the current through CD and ACB, if a 10 V d.c. source is connected betweenA
and B and the value of R is assumed as 2Ω. (Ans. 2.5 A)
Q5(i) Q5(ii)
Q6. Six resistors, each of value 4 Ω, are joined together in a circuit as shown in figure. Calculate
equivalent resistance across the points A and B. If a cell of emf 2 V is connected across AB,
compute the current through the arms AB and DF of the circuit
Q6 Q7
Q7. Two cells of emfs 1.5 V and 2.0 V and internl resistances 2 Ω and 1 Ω, respectively have
their negative terminals joined by a wire of 6 Ω and positive terminals by a wire of 4 Ω
resistance. A third resistance wire of 8 Ω connects middle points of these wires. Draw the circuit
diagram. Using Kirchoff’s laws, find the potential difference at the ends of this third wire.
Q8. In the given network shown in fig, find the values of the currents I1, I2 and I3.
Q9. A 10m long wire of uniform cross-section and 20 Ω resistance is used in a potentiometer.
The wire is connected in series with a battery of 5 V along with an external resistance of 480 Ω.
If an unknown emf E is balanced at 6.0 m length of the wire calculate
Q10. AB is 1m long uniform wire of 10 Ω resistance. The other data are as shown in the circuit
diagram given in figure. Calculate (i) Potential gradient along AB, and (ii) length AO of the
wire, when the galvanometer shows no deflection.
Q10 Q12
Q11. In the given circuit diagram , E1 and E2 are 2.0 V and 6.0 V, respectively and resistances r1,
r2 and R 2.0Ω, 4.0Ωand 10.0Ω, respectively. Calculate the value of current and indicate its
direction. Also calculate the potential difference between the points (i) B and A, (ii) A and C.
Q13. In a potentiometer experiment it is found that no current passes through the galvanometer
when terminals of the cell are connected across 52 cm of the potentiometer wire. If the cell is
shunted by a resistance of 5 Ω, a balance is obtained for 40 cm of the wire. Determine the
internal resistance of the cell. (Ans. 1.5 Ω)
MAGNETIC EFFECTS OF CURRENT
Q1. Under what condition does an electron moving through a magnetic field experience
maximum force?
Q2. Under what condition is the force acting on a charge moving through a uniform magnetic
field minimum?
Q3. Consider the circuit shown here where APB and AQB are semi-circles. What will be the
magnetic field at the centre C of the circular loop?
Q4. The force F experienced by a particle of charge q moving with velocity v in a magnetic field
B is given by F=q(v x B). Of these, name the pairs of vectors which are always at right angles to
each other.
Q5. Which one of the following will experience maximum force, when projected with the same
velocity ‘v’ perpendicular to the magnetic field:
Q6. An electron and a proton moving parallel to each other in the same direction with equal
momenta, enter into a uniform magnetic field which is at right angles to their velocities. Trace
their trajectories in the magnetic field.
Q7. Two wires of equal lengths are bent into the form of two loops. One of the loop is square
shaped whereas 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? Give
reasons.
Q 1 A short bar magnet placed with its axis at 300 with uniform magnetic field 0.16 T
and (ii) unstable equilibrium .What is the potential energy in two cases ?
Q 3 The coercive force for a certain permanent magnet is 4X 104 A/m .The magnet is
placed inside the long solenoid of 40 turns /cm a current is passed in the solenoid to
Q 4 The vertical component of earth’s magnetic field at a place is0.15√3 G. What is the
horizontal component if dip at that place is place is 300 Also find the magnetic field
Q 5 A solenoid has a core of material with relative permeability is 400 .The winding of
solenoid carrying a current of 2A .If the number of turns is 1000per meter ,calculate
Q 6 A magnetic needle is free to oscillate in uniform magnetic field .The magnetic needle
Q 7 An electron is moves around the nucleus in a hydrogen atom of radius 0.51A0 with a
velocity of 2X106m/s .Calculate the following (i)the equivalent current due to orbital motion of
electron .(ii)the magnetic fields produce at the centre of the nucleus (iii)the magnetic moment
associated with the electron.
Q 8 Two magnets of magnetic moment m and √3 m are joined to form a cross ( +).The
combination is suspended freely in the uniform magnetic field .In equilibrium position the
magnets of magnetic moments m makes an angle θ.f ind the value of θ
Q9.Deduce an expression for magnetic dipole moment of an electron revolving around the
nucleus in a circular orbit of radius r .
Q1. 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 along its length?
Q2. A short bar magnet placed with its axis making an angle θ with uniform magnetic field B,
experiences a torque τ. What is the magnetic moment of the magnet?
Q3. What should be the orientation of a magnetic dipole in a uniform magnetic field so that its
potential energy is maximum?
Q5. A magnetic dipole is placed in the position of stable equilibrium in a uniform electric field B
(i) How much is the potential energy of the magnet? (ii) If it is rotated through 180o, then what
will be the amount of work done?
Q6. If the ratio of the horizontal component of earth’s magnetic field to the resultant magnetic
field at a place is 1/√2, what is the angle of dip at that place?
Q7. Which direction would a compass needle point to if located right on the geomagnetic north
or south pole?
Q1. Calculate magnetic moment of dipole? Couple of moment is 3 x 10-6 newton-meter and
magnetic field is 12 x 10-5 Weber/mt2 and θ=90o.
Q3. Find the magnetic field strength due to bar magnet when point lies on equatorial line?
Q4. Horizontal component of earth’s magnetic field at a place 2 x 10-4 Weber/mt and angle of
dip 30o. Calculate magnetic of vertical component and magnetic field.
Q6. The magnetic moment needle 60 amp-mt2 and experience torque 1.2 x 10-3 Newton-mt.
Horizontal component of earth is magnetic field at the place 40 x 10-6 Weber/mt2. Calculate
declination
SETH ANAND RAM JAIPURIA SCHOOL
VASUNDHRA , GHAZIABAD
SESSION 2017-18
CLASS-XII
HOLIDAY HOMEWORK
ENGLISH
1) Complete the given worksheet on the topics :
a)The Last Lesson
b) The Lost Spring
c) Deep Water
d) Elementary School Classroom in the Slum
e) Silas Marner
2) Read the news paper every day and prepare notes of any three articles of
your choice.
MATHS
1) Prepare the chapters 1. Continuity and differentiability 2.Applications of derivatives
for Unit Test – 2 and Class tests.
2) Attempt the assigned worksheet on Applications of derivatives.
PHYSICS
1) Select a suitable topic for the Investigatory project and working model from the
syllabus, collect information using various sources and compile it in a soft copy.
2) Complete the practical record and also write down five activities on A4 sheets in a
separate file. ( two from each section).
3) Complete the worksheets of chapter 3 to 5 .
CHEMISTRY
1) Select a relevant topic for the Investigatory project, collect information using various
sources and compile it in a soft copy
2) Complete the assigned worksheets. (Unit- XII & XIV)
3) Make notes of the chapter “Polymers” by covering all the NCERT exercise questions.
4) Attempt All NCERT exercise questions of Amines(UNIT-XIII) and UNIT-1 in
chemistry register.
5) Complete the practical record till the test of Carbohydrates, Fats and Proteins in the
given food sample.
6) Prepare Unit–I and XIII, XIV & XV for UNIT TEST-2.
BIOLOGY
1) Select a suitable topic for the Investigatory project, collect relevant information using
various sources like internet, books, and science magazines and published articles.
Compile the information collected in form of a file.
2) Complete the assigned worksheet.
BUSINESS STUDIES
1) Complete the assignments given on the syllabus covered ( Chapter 1,2,3 – Self
Evaluation Test)
2) Revise for the UNIT Test II( Chapter1,2,3).
3) Complete the Project on Principles of management as per the CBSE guidelines.
ACCOUNTANCY
1) Redo the chapters covered so far for the UNIT-TEST II to be held after the holidays.
Also complete the questions given in Scanner.( Chapter 1,3 ,4, 5 )
2) Project as per CBSE on Analysis of Financial Statements
ECONOMICS
1) Complete the project as instructed in class.
2) Complete the given worksheet.
Topics:
a) PPC
b) Consumer Equilibrium
c) Theory of demand
d) Production Function
e) National Income Accounting
POLITICAL SCIENCE
HISTORY
1) Revise the given syllabus for UNIT TEST-2.
2) Complete the research work for the project (discussed in class).
COMPUTER SCIENCE
Revise the chapters covered so far for the UNIT-TEST II to be held after the holidays.
Also complete the questions given in given in worksheet and also in question bank.
ENTREPRENEURSHIP
Prepare a questionnaire and conduct sample survey in your locality with the objective to
launch a new product or existing product with some additional benefits, of your own.
FINE ARTS
Make:
1) 3-Still life Composition (pencil shading) A-2 size
2) 3-Sketches of daily life(picture Composition) A-2 size
3) 2-Still life Composition (water colour) A-2 size
PSYCHOLOGY
1) Case Study about psychological disorders and intellectual disability
2) Complete the given worksheet from chapter -3
PHYSICAL EUCATION
1) Make a model on any one of the game.
2) Complete your practical file
GENERAL STUDIES
Choose any suitable topic and prepare a project
Some suggested topics are :-
1) The changing trends in Secondary Education
2) Financial Inclusion
3) Relationship of India with its neighboring countries.
4) Most lucrative careers of youth today.
GUIDELINES: ( Word limit-1000 to 2000 words, should be creative and original,
to be made on ruled sheets, all the work should be handwritten, the written matter
should not be copied from the net, only the pictures can be downloaded. It should be
properly filed with a cover page containing the name of the student, class and section,
roll no and name of the project.)
HOLIDAY HOME WORK 2017- 2018
SUBJECT - ENGLISH
Class - XII
My Mother at Sixty-Six:
1. How does the poem bring out the irony about human relationship?
2. What mental aspect of the poet is reflected in the concluding lines of the
poem?
3. Discuss that the poet captivates the complex subtleties of human
relationship in the poem ‘My Mother at Sixty-Six’?
4. With fear and ache inside her heart and words of assurance on lips and
smile on the face, the poet presents two opposite and contrasting
experiences. Elucidate.
Lost Spring:
Short Answer Questions:
1. Why has Saheb left his home town? Does he remember it? Why/Why
not?
2. Reading ‘Lost Spring’ leaves a bad taste in the mouth and a trial of
helplessness caused by the pitiable condition of these people. Elaborate.
3. What is pitiable about Savita, a young girl bangle maker and the elderly
woman sitting by her side?
4. ‘Why do you do this?’ Who ask this question and why? What is the reply
that the speaker gets?
Long Answer Questions:
1. What could be some of the reasons for migration of people from villages
to cities?
2. “Being born into the cast of bangle makers has become both a curse and a
destiny”. Discuss giving examples from the text.
3. The erudite scholars opine that success in any field requires perseverance,
patience, equanimity and practice. Discuss the dictum keeping in mind
the expression-‘I will be a motor mechanic…I will learn to drive a car.’
Deep Water:
Short Answer Questions:
1. But the jump made no difference. Describe how the author felt at that
time.
2. What did Douglas mean by saying, “All we have to fear is fear itself”?
3. What physical complexes did Douglas suffer from?
Long Answer Questions:
1. Discuss the personality traits of William Douglas as revealed from his
auto biographical account?
2. ‘Deep Water’ is a saga of courage and perseverance. It highlights the need
to overcome fear. What qualities according to you are needed to battle
obstacles?
3. “All we have to fear is fear itself.” William Douglas had developed a
phobia of water and he realised that fears are very difficult to overcome,
unless they are tackled. Write an article on the topic ‘Conquering Fear is
the beginning of Wisdon’.
3. Answer the following questions (i) and (ii) after going through the following class.
class Interview
{
int Month;
public:
interview(int y) {Month=y;} //constructor 1
interview(Interview&t); //constructor 2
};
(i) Create an object, such that it invokes Constructor 1.
(ii) Write complete definition for Constructer 2.
4. Answer the following questions (i) and (ii) after going through the following class.
class Test
{
char Paper[20];
int Marks
public:
Test() //Function 1
{
strcpy(Paper,.Computer.);
Marks=0;
} //Function 2
Test(char P[])
{
strcpy(Paper,P);
Marks=0;
} //Function 3
Test(int M)
{
strcpy(Paper,.Computer.);
Marks=M;
}
Test(char P[],int M) //Function 4
{
strcpy(Paper,P);
Marks=M;
}
Test(Test &T); //Function 5
~Test() //Function 6
{ cout<<”\n over”;
}
};
(i) Which feature Object Oriented Programming is demonstrated using Function 1,
Function 2, Function 3 and Function 4 in the above class text?
(ii) Write statements in C++ that would execute Function 2 and Function 4 of class
Text.
(iii) Write statements in C++ that would execute Function 1 and Function 3 of class
Text.
(iv) Complete the definition of function 5
(v) When function 6 will be executed.
INHERITANCE
1. Consider the following declarations and answer the questions given below:
#include <iostream.h>
class book
{char title[20];
char author[20];
int noof pages;
public:
void read();
void show();};
class textbook: private textbook
{int noofchapters, noofassignments;
protected:
int standard;
void readtextbook();
void showtextbook();};
class physicsbook: public textbook
{char topic[20];
public:
void readphysicsbook();
void showphysicsbook();};
(i) Name the members, which can be accessed from the member functions of class
physicsbook.
(ii) Name the members, which can be accessed by an object of Class textbook.
(iii) Name the members, which can be accessed by an object of Class physicsbook.
(iv) What will be the size of an object (in bytes) of class physicsbook.
i) In case of the class father, what is the base class of father and what is the derived class of
father?
(ii) Write the data member(s) that can be accessed from function dispdata().
(iii) Write the member function(s), which can be accessed by an object of mother class.
(iv) Is the member function outputdata() accessible to the objects of father c
A. Member Variable
B. Member function
C. Class function
D. Classic function
6.
Which of the following is an abstract data type?
A. int B. Double
C. string D. Class
7. Which of the following is correct about class and structure?
A. class can have member functions while structure cannot.
B. class data members are public by default while that of structure are private.
C. Pointer to structure or classes cannot be declared.
D. class data members are private by default while that of structure are public by default.
8. Which of the following two entities (reading from Left to Right) can be connected by the dot
operator?
A. A class member and a class object.
B. A class object and a class.
C. A class and a member of that class.
D. A class object and a member of that class.
9 Which of the following keywords is used to control access to a class member?
A. Default B. Break
C. protected D. Asm
10. Which of the following can access private data members or member functions of a class?
A. Any function in the program.
B. All global functions in the program.
C. Any member function of that class.
D. Only public member functions of that class.
11.
Which of the following also known as an instance of a class?
A. Friend Functions B. Object
A. ~ B. :: c. : d. ;
A. Member function and data are by default protected in structures but private in classes.
B. Member function and data are by default private in structures but public in classes.
C. Member function and data are by default public in structures but private in classes.
D. Member function and data are by default public in structures but protected in classes.
17. Which of the following is user defined data type?
A. int
B. Private
C. Class
D. A & B Both
18. The Object is not declared for which class?
A. Parent B. Base
C. Abstract D. Derived
A. Attribute
B. Method
C. Class
D. Object
20. A Class can have how many destructors?
A. 1 B. 2 C. 3 D. 4
23. What happens when we try to compile the class definition in following code snippet?
#include<iostream.h>
void main()
{
class Birds {};
class Peacock : protected Birds {};
}
A. It will not compile because class body of Eagle is not defined.
B. It will not compile because a class cannot be protectedly inherited from other class.
C. It will compile successfully.
25. Which of the following type of data member can be shared by all instances of its class?
A. Public
B. Inherited
C. protected
Private
D.
A. :
B. ::
C. #
D. none of the above
28. What is the output of this program?
#include <iostream.h>
classrect
{
int x, y;
public:
voidval(int, int);
int area ()
{
return(x * y);
}
};
voidrect::val(int a, int b)
{
x = a;
y = b;
}
int main ()
{
rectrect;
rect.val(3, 4);
cout<<"rect area: "<<rect.area();
return0;
}
A. rect area:12
B. rect area: 12
C. rect area:24
D. rect area:42
classRect
{
int x, y;
public:
voidset_values(int,int);
int area ()
{
return(x * y);
}
};
voidRect::set_values(int a, int b){
x = a;
y = b;
}
int main ()
{
Rect recta, rectb;
recta.set_values(5, 6);
rectb.set_values(7, 6);
cout<<"recta area: "<<recta.area();
cout<<"rectb area: "<<rectb.area();
return0;
}
}
A. Variable entered is 5
B. runtime error
C. private member access by object
D. none of the mentioned
class number
{
inti;
public:
intgeti();
voidputi(int j);
};
int number::geti()
{
returni;
}
void number::puti(int j)
{
i= j;
}
void main()
{
number s;
s.puti(10);
cout<<s.geti();
}
A. 10
B. 11
C. 20
D. 22
40. Which is true for this keyword
A. this.member
B. this->member
C. this*.member
D. *this.member
CONSTRUCTORS & DESTRUCTORS
1. Which of the following is not a type of constructor?
A. Copy constructor
B. Friend constructor
C. Default constructor
D. Parameterized constructor
A. one B. two
C. no D. five
9.
What happens when a class with parameterized constructors and having no default
constructor is used in a program and we create an object with no-arguments?
A. Compile-time error.
B. Preprocessing error.
C. Runtime error.
D. Runtime exception.
10.
Destructor has the same name as the constructor and it is preceded by ______ .
A. ! B. ?
C. ~ D. &
11.
Constructors and destructors are called implicitly when the objects of the class is .....
C. are constructed
D. are destroyed
12.
Which constructor function is designed to copy objects of the same class type?
A. Create constructor
B. Object constructor
C. Dynamic constructor
D. Copy constructor
13.
Which of the following statement is correct?
D. Both B and C.
15.
When are the Global objects destroyed?
A. When the control comes out of the block in which they are being used.
C. When the control comes out of the function in which they are being used.
16.
Copy constructor must receive its arguments by __________ .
A. constructor B. destructor
C. function D. object
18.
Which of the following gets called when an object goes out of scope?
A. constructor
B. destructor
C. main
D. virtual function
19.
20.
__________ is used to make a copy of one object to another object of the same class
type.
A. constructor
B. copy constructor
C. destructor
D. default constructor
21.
Constructors __________ to create objects in different ways.
A. cannot overloaded
B. can be overloaded
C. can be called
D. can be nested
22.
Which of the following statement is correct?
A. Zero-argument Constructor
B. Destructor
C. Copy Constructor
D. A&B
24.
It is a __________ error to pass arguments to a destructor.
A. logical B. virtual
C. syntax D. linker
25.
If the programmer does not explicitly provide a destructor, then which of the following
creates an empty destructor?
A. Preprocessor
B. Compiler
C. Linker
D. main() function
26.
A constructor having parameters with default values is known as ..........
A. default constructor
B. copy constructor
D. None of these
27.
How many default constructors per class are possible?
A. Only one
B. Two
C. Three
D. Unlimited
28.
Which of the following statement is correct about destructors?
29.
Which of the following statement is correct?
A. A constructor has the same name as the class in which it is present.
30.
Which of the following implicitly creates a default constructor when the programmer does
not explicitly define at least one constructor for a class?
A. Preprocessor B. Linker
C. Loader D. Compiler
E.
31.
A destructor takes __________ arguments.
A. one B. two
C. three D. no
32.
Destructor calls are made in which order of the corresponding constructor calls?
A. Reverse order
B. Forward order
C. Depends on how the object is constructed
D. Depends on how many objects are constructed
33.
Which of the following never requires any arguments?
A. Member function
B. Friend function
C. Default constructor
D. const function
34.
A class's __________ is called when an object is destroyed.
A. constructor
B. destructor
C. assignment function
copy constructor
D.
35.
Destructors __________ automatically when the program terminates with a call to
function exit or function abort.
A. are called
B. are inherited
C. are not called
D. are created
36.
Which of the following statement is correct?
A constructor of a derived class can access any public and protected member of
A.
the base class.
B. Constructor cannot be inherited but the derived class can call them.
A constructor of a derived class cannot access any public and protected member
C.
of the base class.
D. Both A and B
37.
Which of the following statements are correct?
Constructor and destructor functions are not called at all as they are always
D.
inline.
38.
How many times a constructor is called in the life-time of an object?
A. Only once
B. Twice
C. Thrice
39.
Which of the following statement is correct about constructors?
public:
void Disp( ) //Function 2
{
cout<<Type<<”-“<<Product<<”:“<<Qty<<”@“<<Price<<endl;
}
};
void main( )
{
Bazar B; //Statement 1
B.Disp(); //Statement 2
}
(i) Will Statement 1 initialize all the data members for object B with the values
given in the Function 1? Justify your answer suggesting the correction(s) to be
made in the above code.
A. Yes
B. No
(ii) What shall be the possible output when the program gets executed?
(Assuming, if required – the suggested correction(s) are made in the program).
A. Electronic-Calculator:10@225
B. Electronic Calculator ::10@250
C. Electronic Calculator :10@250
D. Electronic-Calculator::10@225
42. Answer the questions (i) and (ii) after going through the following class:
class Seminar
{
int Time;
public:
Seminar() //Function 1
{
Time=30;cout<<”Seminar starts now”<<end1;
}
void Lecture() //Function 2
{
cout<<”Lectures in the seminar on”<<end1;
}
Seminar(int Duration)//Function 3
{
Time=Duration;cout<<”Seminar starts now”<<end1;
}
~Seminar() //Function 4
{
cout<<”Vote of thanks”<<end1;
}
};
A. Copy Constructor
B. Constructor
C. Destructor
D. Default Constructor
C. It can’be invoked.
D. A & C
A. Inheritance
B. Encapsulation
C. Constructor Overloading (Polymorphism)
D. Data hiding
A. Polymorphism
B. Structure
C. Inheritance
D. Cascading
A. Polymorphism
B. Single Inheritance
C. Multilevel Inheritance
D. Message Passing
3. If a class C is derived from class B, which is derived from class A, all through public
inheritance, then a class C member function can access
4. The base class access specification determines how ___________ members in the base
class may be accessed by derived classes.
A. Private
B. Public
C. Protected
D. All of the above
A. Child class
B. Subclass
C. Derived class
D. Parent class
A. I, II, III
B. II, III, V
C. III, IV, V
D. I, II, IV
7. In multiple inheritance -
8. When a sub class is inherited from only one super class .It is known as
A. Single inheritance
B. Multiple inheritance
C. Hierarchical inheritance
D. Multilevel inheritance
A. Private
B. Public
C. Protected
D. All of the above
10. What part of object-oriented technology defines superclass and subclass relationships?
A. Inheritance
B. Scalability
C. Encapsulation
D. Polymorphism
11. In a student grading system, objects from different classes communicate with each other. These
communications are known as _____.
A. Inheritance
B. Scalability
C. Encapsulation
D. Polymorphism
12. What common technique attempts to save time and energy by reducing redundant work in
object-oriented programming?
A. Reduce lines of programming
B. Reuse of code
C. Reduce size of systems being developed
D. Merging different systems together
13. Which of the following term is used for a function defined inside a class?
A. Member Variable
B. Member function
C. Class function
D. Classic function
14. Which of the following is the valid class declaration header for the derived class b with base
class a and derived class c with base class b?
23. When you derive a class privately, a protected base class member becomes
A. private
B. public
C. not inherited
D. protected
24. Irrespective of type of derivation__________members of a base class are never accessible in
derived class.
27.
Which type of inheritance is depicted in the given example?
class school : public student, private teacher
A. Multilevel Inheritance
B. Multiple Inheritance
C. Single Level Inheritance
D. None of these
28. When derived class and base classes both contain constructors, the base constructor is
executed first and then the constructor in the derived class is executed.
A. True
B. False
C. All of the above
D. None of the above
29. How Many bytes will be required by an object of the class SHOP?
class CUSTOMER
{
intCust_no;
char Cust_Name[20];
};
class SALESMAN
{
intSalesman_no;
char Salesman_Name[20];
protected:
float Salary;
};
class SHOP : private CUSTOMER, public SALESMAN
{
char Voucher_No[10];
char Sales_Date[8];
};
A. 56 bytes
B. 18 bytes
C. 88 bytes
D. 66 bytes
30. Which type of inheritance is shown in the following example?
class olympics
{
int no_of_events; char country_name[25];
};
class outdoorgame : public olympics
{
char eventname[20];
inteventcode;
};
class hockey : public outdoorgame
{
intno_of_players;
char venue[25];
};
A. Multilevel Inheritance
B. Multiple Inheritance
C. Single Level Inheritance
D. None of these
31. consider the following class declaration and answer the question below :
class university {
intnoc;
protected;
char uname[25];
public:
university();
char state[25];
};
class college:public university{
int nod;
char cname[25];
public:
college();
};
class department:public college{
char dname[25];
intnof;
public:
department();
};
Which class’s constructor will be called first at the time of declaration of an object of
class department?
A. university
B. department
C. college
D. No class constructor will be called
32. consider the following class declaration and answer the question below :
class university {
int noc;
protected;
char uname[25];
public:
university();
char state[25];
};
class college:public university{
int nod;
char cname[25];
public:
college();
};
class department:public college{
char dname[25];
intnof;
public:
department();
};
(i) How many bytes does an object belonging to class college, university and
department require respectively?
A. 79, 52,106
B. 52,106,79
C. 106,79,52
D. 79,54,106
(ii) Which data member will be accessible from the object of class department?
A. noc
B. dname
C. nof
D. state
classBaseClass
{
protected:
inti;
public:
BaseClass(int x)
{
i= x;
}
~BaseClass()
{
}
};
classDerivedClass:publicBaseClass
{
int j;
public:
DerivedClass(int x, int y):BaseClass(y)
{
j = x;
}
~DerivedClass()
{
}
void show()
{
cout<<i<<" "<< j <<endl;
}
};
int main()
{
DerivedClassob(3, 4);
ob.show();
return0;
}
A. 3 4
B. 4 3
C. 4
D. 3
class Base
{
public:
int m;
Base(int n=0)
: m(n)
{
cout<<"Base"<<endl;
}
};
class Derived:public Base
{
public:
double d;
Derived(double de =0.0)
: d(de)
{
cout<<"Derived"<<endl;
}
};
int main()
{
cout<<"Instantiating Base"<<endl;
Base cBase;
cout<<"Instantiating Derived"<<endl;
Derived cDerived;
return0;
}
A. Instantiating Base
Base
Instantiating Derived
Base
Derived
B. Instantiating Base
Instantiating Derived
Base
Derived
C. Instantiating Base
Base
Instantiating Derived
Base
36.
What is the output of this program?
#include <iostream.h>
class Parent
{
public:
Parent (void)
{
cout<<"Parent()\n";
}
Parent (inti)
{
cout<<"Parent("<<i<<")\n";
};
Parent (void)
{
cout<<"~Parent()\n";
};
};
class Child1 :public Parent {};
class Child2 :public Parent
{
public:
Child2 (void)
{
cout<<"Child2()\n";
}
Child2 (inti): Parent (i)
{
cout<<"Child2("<<i<<")\n";
}
~Child2 (void)
{
cout<<"~Child2()\n";
}
};
int main (void)
{
Child1 a;
Child2 b;
Child2 c(42);
return0;
}
A. Parent()
Parent()
Child2()
Parent(42)
Child2(42)
~Child2()
~Parent()
~Child2()
~Parent()
~Parent()
B. Error C. runtime error D. None of the mentioned
CHAPTER WISE QUSTIONS
Computer Science: Class XII
(c++ REVISION TOUR, CLASSES&OBJECTS, CONSTRUCTOR&DESTRUCTOR and
Inheritance)
Short Answer Type Questions (2-Marks)
1. Which C++ header file (s) will be included to run /execute the following C++ code?
void main( )
{ int Last =26.5698742658; Ans: iostream.h,
cout<<setw(5)<<setprecision(9)<<Last; } iomanip.h
2. Name the header files that shall be needed for successful compilation of the following C++
code :
void main()
{ char str[20],str[20];
gets(str);
strcpy(str1,str);
strrev(str);
puts(str);
puts(str1); }
3. Write the names of the header files to which the following belong:
(i) strcmp() (ii) fabs()
4. Write the names of the header files to which the following belong:
(i) frexp() (ii) isalnum()
1. Rewrite the following program after removing any syntactical errors. Underline each
correction made.
#include<iostream.h> Ans :- #include<iostream.h>
void main( ) int void main( )
A[10]; { int A[10] =
A=[3,2,5,4,7,9,10]; {3,2,5,4,7,9,10};
for( p = 0; p<=6; p++) int S = 0,p;
{ if(A[p]%2=0) for(p = 0; p<=6; p++)
int S = S+A[p]; } { if(A[p]
cout<<S; %2==0) S =
} S+A[p]; }
cout<<S;
}
2. Deepali has just started working as a programmer in STAR SOFTWARE company. In
the company she has got her first assignment to be done using a C++ function to find the
smallest number out of a given set of numbers stored in a one-dimensional array. But she has
committed some logical mistakes while writing the code and is not getting the desired result. Rewrite
the correct code underlining the corrections done. Do not add any additional statements in the
corrected code
int find(int a[],int n)
{ int s=a[0];
for(int x=1;x<n;x++)
if(a[x]>s)
a[x]=s;
return(s); }
3. Rewrite the following program after removing the syntactical errors (if any). Underline each
correction.
#include [iostream.h]
class PAYITNOW
{ int Charge;
PUBLIC:
void Raise(){cin>>Charge;}
void Show{cout<<Charge;}
};
void main()
{
PAYITNOW P;
P.Raise();
Show();
}
4. Rewrite the following program after removing the syntactical errors (if any). Underline each
correction.
#include <iostream.h>
struct Pixels
{ int Color,Style;}
void ShowPoint(Pixels P)
{ cout<<P.Color,P.Style<<endl;}
void main()
{
Pixels Point1=(5,3);
ShowPoint(Point1);
Pixels Point2=Point1;
Color.Point1+=2;
ShowPoint(Point2);
}
Short Answer Type Questions (2-Marks Finding Output)
} } }
void main() void main()
{ char MyText[]="Input Raw";
{ Mycode(MyText,‘@’);
char str[]="SUCCESS"; cout<<"NEW
cout<<”Original TEXT:"<<MyText<<endl;
String”<<str }
repch(str);
cout<<"Changed }
String"<<str;
Ans: Original String SUCCESS
Changed String S@C!ES!
3. Find the output of the following #include <iostream.h>
program: #include <ctype.h>
void Encrypt(char T[])
{ 4. Find the output of the following
for (int i=0;T[i]!='\0';i+=2) program:
if (T[i]=='A' || T[i]=='E') #include <iostream.h>
T[i]='#'; struct Game
else if (islower(T[i])) {
T[i]=toupper(T[i]); char Magic[20];
else T[i]='@'; int Score;
} };
void main() void main()
{ {
char Text[]="SaVE EArtH"; Game
//The two words in the string Text M={“Tiger”,500};
//are separated by single char *Choice;
space Encrypt(Text); Choice=M.Magic;
cout<<Text<<endl; Choice[4]=’P’;
} Choice[2]=’L’;
M.Score+=50;
cout<<M.Magic<<M.Score<<e
ndl;
Game N=M;
N.Magic[0]=’A’;N.Magic[3
]=’J’; N.Score-=120;
cout<<N.Magic<<N.Scor
e<<endl;
}
1. Observe the following C++ code and find out , which out of the given options i) to iv) are
the expected correct output. Also assign the maximum and minimum value that can be
assigned to the variable ‘Go’.
void main() Ans :
{ int X [4] (iv) is the correct
={100,75,10,125}; option. Minimum
int Go = random(2)+2; value of Go = 2
for (int i = Go; i< 4; i+ Maximum value of Go = 3
+) cout<<X[i]<<”$$”;
}
(i) 100$$75 (ii) 75$$10$$125$$ (iii) 75$$10$$ (iv)10$$125$
2. Write a user defined function DIVT() which takes an integer as parameter and returns whether
it is divisible by 13 or not. The function should return 1 if it is divisible by 13, otherwise it should
return
0.
3. In the following program, if the value of N given by the user is 15, what maximum and minimum
values the program could possibly display?
#include <iostream.h>
#include <stdlib.h>
void main()
{
int N,Guessme;
randomize();
cin>>N;
Guessme=random(N)+10;
cout<<Guessme<<endl;
}
4. In the following program, if the value of N given by the user is 20, what maximum and minimum
values the program could possibly display?
#include <iostream.h>
#include <stdlib.h>
void main()
{
int N,Guessnum;
randomize();
cin>>N;
Guessnum=random(N-10)+10;
cout<<Guessnum<<endl;
}
5. Read the following C++ code carefully and find out, which out of the given options (i) to (iv) are
the expected correct output(s) of it. Also, write the maximum and minimum value that can be
assigned to the variable Taker used in the code :
void main()
{ int GuessMe[4]={100,50,200,20};
int Taker=random(2)+2;
for (int Chance=0;Chance<Taker;Chance++)
cout<<GuessMe[Chance]<<”#”; }
classes &objects
Public member:
1. feedinfo(): to input train no, destination, distance and invoke calfuel() function to
assign value of fuel.
2. showinfo(): to display all the details for a train.
Constructors&Destructors
25
Q6. Find the output of following-
26
#include<iostream.h>
class METRO
{
int Mno, TripNo, PassengerCount;
public:
METRO(int Tmno=1)
{
Mno= Tmno; TripNo =0; PassengerCount=0;
}
void Trip(int PC=20)
{ TripNo++; PassengerCount +=PC;
}
void StatusShow()
{
cout<<Mno<<":"<<TripNo<<":"<<PassengerCount<<endl;
}
};
void main()
{
METRO M(5),T; M.Trip(); T.Trip(50); M.StatusShow(); M.Trip(30);
T.StatusShow(); M.StatusShow();
}
INHERITANCE
Short Anwer Type Questions(2 Marks)
27 27
public:
void emp_input();
void emp_print();
};
28 28