Skip to main content

PROBLEM SOLVING AND PYTHON PROGRAMMING QUIZ

1) What is the first step in problem-solving? A) Writing code B) Debugging C) Understanding the problem D) Optimizing the solution Answer: C 2) Which of these is not a step in the problem-solving process? A) Algorithm development B) Problem analysis C) Random guessing D) Testing and debugging Answer: C 3) What is an algorithm? A) A high-level programming language B) A step-by-step procedure to solve a problem C) A flowchart D) A data structure Answer: B 4) Which of these is the simplest data structure for representing a sequence of elements? A) Dictionary B) List C) Set D) Tuple Answer: B 5) What does a flowchart represent? A) Errors in a program B) A graphical representation of an algorithm C) The final solution to a problem D) A set of Python modules Answer: B 6) What is pseudocode? A) Code written in Python B) Fake code written for fun C) An informal high-level description of an algorithm D) A tool for testing code Answer: C 7) Which of the following tools is NOT commonly used in pr...

Mechanics and properties of matter

MECHANICS AND PROPERTIES 
OF MATTER 
Elasticity:
* The property of a material to regain its original state when the deforming force is removed is called elasticity. 
Stress and strain:
* This restoring force per unit area of a deformed body is known as stress. 
 Stress= (restoring force / area)
* Its dimensional formula is ML^–1T^–2. 
* Strain produced in a body is defined as the ratio of change in dimension of a body to the original dimension. 
Strain = (Change in dimension / original dimension)
* Strain is the ratio of two similar quantities. Therefore it has no unit. 
Elastic limit:
* If an elastic material is stretched or 
compressed beyond a certain limit, it will not recover its original state and will remain deformed. The limit beyond which permanent deformation occurs is called the elastic limit. 
Hooke’s law:
* Within the elastic limit, strain produced in a body is directly proportional to the stress that produces it. (i.e) stress α strain.
 Stress / strain = a constant
Pascal’s law:
* Pascal’s law states that if the effect of gravity can be neglected then the pressure in a fluid in equilibrium is the same everywhere. 
Applications of Pascal’s law
(i) Hydraulic lift 
(ii) Hydraulic brake
Viscosity:
* Viscosity is the property of the fluid by virtue of which it opposes relative motion between its different layers. Both liquids and gases exhibit viscosity but liquids are 
much more viscous than gases. 
Co-efficient of viscosity: 
* The coefficient of viscosity of a liquid is numerically equal to the viscous force acting tangentially between two layers of liquid having unit area of contact and unit 
velocity gradient normal to direction of flow of liquid. 
* The unit of η is Ns m–2. Its 
dimensional formula is ML^–1T^–1
Streamline flow:
* The flow of a liquid is said to be steady, streamline or laminar if every particle of the liquid follows exactly the path of its preceding particle and has the same velocity of its former particle at every point. 
Turbulent flow: 
* When the velocity of a liquid exceeds the critical velocity, the path and velocities of the liquid become disorderly. At this stage, the flow loses all its regular arrangement and is called turbulent flow. 
Some examples of turbulent flow are: 
1. After rising a short distance, the smooth column of smoke from an incense stick breaks up into crooked and random patterns. 
2. The flash - flood after a heavy rain. Critical velocity of a liquid can be defined as that velocity of liquid upto which the flow is smoothed and above which its flow becomes turbulent. 
Stroke's law (for highly viscous liquids):
1. Coefficient of viscosity η of the liquid depends on 
2. Radius a of the sphere and 
3. Velocity v of the spherical body. 
Dimensionally it can be proved that 
F = k ηav
Experimentally Stoke found that 
k = 6π
∴ F = 6π ηav
This is Stoke’s law.
Application of stroke's law:
* Falling of rain drops: When the water drops are small in size, their terminal velocities are small. Therefore they remain suspended in air in the form of clouds. But as the drops grouped and grow in size, 
their terminal velocities increase. Hence they start falling as rain. 
Surface tension Intermolecular forces:
* The force between two molecules of substance is called intermolecular force. 
* The intermolecular forces are of two types. They are (i) cohesive force and (ii) adhesive force. 
(i) Cohesive force
* Cohesive force is the force of attraction between the molecules of the same substance. This cohesive force is very strong in solids & weak in liquids & extremely weak in gases. 
(ii) Adhesive force
* Adhesive force is the force of attraction between the molecules of a two different substances. 
* For example due to the adhesive force, ink sticks to paper while writing. Fevicol & gum etc exhibit strong adhesive property. 
Surface tension of a liquid:
* Surface tension is the property of the free surface of a liquid at rest to behave like a stretched membrance in order to acquire minimum surface area. 
Capillarity:
* The property of surface tension gives rise to an interesting phenomenon called capillarity The rise of a liquid in a capillary tube is known as capillarity 
Illustrations of capillarity: 
(i) A blotting paper absorbs ink by capillary action. The pores in the absorb paper act as capillaries. 
(ii) The oil in a lamp rises up the wick through the small spaces between the threads of the wick. 
(iii) A sponge retains water due to capillary action. 
(iv) Walls get moisten in rainy season due to absorption of water by bricks.
Factors affecting surface tension:
Impurities present in a liquid appreciably affect surface tension. A highly soluble substance like salt increases the surface tension whereas sparingly soluble substances like soap decreases the surface tension. The surface tension decreases with rise in temperature. The temperature at which the surface tension of a liquid becomes zero is called critical temperature of that liquid. 
Applications of surface tension
(i) During stormy weather, oil is streamed into the sea around the ship. As the surface tension of oil is less than that of water, it spreads on water surface. Due to the decrease in surface tension, the  velocity of the waves decreases. This reduces the outrage of the waves on the ship. 
(ii) Lubricating oils spread easily to all parts because of their low surface tension. Detergent action is due to the decrease of surface tension of water when soap or detergent is added to water 
(iii) Cotton dresses are preferred in summer because cotton dresses have fine pores which act as capillaries for the sweat. 
Bernoulli’s theorem:
Streamline flow of a non-viscous and incompressible liquid, the sum of the pressure energy, kinetic energy and 
potential energy per unit mass is a constant. 
(P/p)+(v^2/2)+gh=constant
This equation is known as Bernoulli’s equation 
Application of Bernoulli’s 
theorem:
(i) Lift of an aircraft wing 
(ii) Blowing of roofs 
(iii)Bunsen burner 
(iv)Motion of two parallel boats 
Liquids:
Liquids flow from one place to another.
They have a definite volume. They take the shape of the container. Liquids show very little change in volume even when large compressive forces are applied. So we assume that liquids are incompressible. Pressure at any point inside a liquid is P = hpg. This shows that pressure increases with depth. When a body floats or submerge in a liquid, the pressure on the bottom surface is more than that the pressure on the top surface. Due to the 
difference in pressure, an upward force acts on the body. This upward force is called upthrust or buoyant force. The buoyant force is equal to the weight of the liquid replaced.
Archimedes Principle:
When a body is submerged in fluid (liquid or gas) it experiences an apparent loss of weight which is equal to the weight of the fluid displaced.
Density:
Density of a body is defined as the mass per unit volume of the body. Unit of density is Kg m-3
Relative density (Specific gravity):
Relative density is defined as the ratio of density of the body to the density of water.
Relative density=( Density of the body / Density of the water)
It has no unit. 
Laws of floatation:
1. The weight of the floating body is equal to the weight of the liquid replaced by it. 
2. The centre of gravity of the floating body and the centre of gravity of the liquid replaced (centre of buoyancy) are in the same vertical line. A ship made up of iron floats in water. This is because the ship is 
hollow and contains air. The large space inside the ship enables it to displace a volume of water much greater than the actual volume of iron that was used in the 
construction. So the weight of water displaced is greater than the weight of the ship. 
Know more: 
* The density of air is 14 times greater than that of hydrogen. The weight of a hydrogen filled balloon is much less than the weight of the air it displaces. The
difference between the two weights gives the lifting power of the balloon. Thus a hydrogen filled balloon flies high in the air. 
* Submarines float on the surface of the water and can also submerge below the surface of the water. They have ballast 
tanks which can be filled with sea water when the submarine wants to immerse. 
* When it wants to surface, the tanks are make vacant by blowing compressed air. 
Hydrometers:
* The laws of floatation are made use of in the erection of hydrometers used for the determination of the relative 
densities of solids and liquids. There are two types of hydrometers. 
* The constant immersion hydrometer, in which the weight of the hydrometer is adjusted to make it sink to the same fixed 
mark in all liquids. 
* The variable immersion hydrometer in which the weight of the hydrometer remains the same, but the depth to which it sinks in different liquids vary A common hydrometer used to test the purity of milk by noting its specific gravity is called a 
LACTOMETER.


Popular posts from this blog

Introduction to C Programs

INTRODUCTION The programming language ‘C’ was developed by Dennis Ritchie in the early 1970s at Bell Laboratories. Although C was first developed for writing system software, today it has become such a famous language that a various of software programs are written using this language. The main advantage of using C for programming is that it can be easily used on different types of computers. Many other programming languages such as C++ and Java are also based on C which means that you will be able to learn them easily in the future. Today, C is mostly used with the UNIX operating system. Structure of a C program A C program contains one or more functions, where a function is defined as a group of statements that perform a well-defined task.The program defines the structure of a C program. The statements in a function are written in a logical series to perform a particular task. The most important function is the main() function and is a part of every C program. Rather, the execution o...

Performance

Performance ( Optional ) * The I/O system is a main factor in overall system performance, and can place heavy loads on other main components of the system ( interrupt handling, process switching, bus contention, memory access and CPU load for device drivers just to name a few. ) * Interrupt handling can be relatively costly ( slow ), which causes programmed I/O to be faster than interrupt driven I/O when the time spent busy waiting is not excessive. * Network traffic can also loads a heavy load on the system. Consider for example the sequence of events that occur when a single character is typed in a telnet session, as shown in figure( And the fact that a similar group of events must happen in reverse to echo back the character that was typed. ) Sun uses in-kernel threads for the telnet daemon, improving the supportable number of simultaneous telnet sessions from the hundreds to the thousands.   fig: Intercomputer communications. * Rather systems use front-end processor...

HEAT AND THERMODYNAMICS

Heat: * Temperature is the thermal state of the body, that chooses the direction of flow of heat.  * “Heat is a form of energy transfer between two systems or a system and its surroundings due to temperature difference between them.  Specific heat capacity  * Specific heat capacity of a substance is determined as the quantity of heat required to raise the temperature of 1 kg of the substance through 1K. Its unit is J kg^–1K^–1. * The specific heat capacity of water is the highest for any substance, 4180 J/kg K. It is 30 times the specific heat capacity  of mercury which is about 140J/kg K.  Specific Latent Heat  Specific Latent Heat of fusion of any substance is the quantity of heat energy needed to melt one kilogram of a substance without change in temperature. The symbol used is L. The unit for specific  latent heat is Joule/kilogram or J/kg  The Gas Laws  * Boyle’s Law  “Temperature remaining constant, the pressure of a given mass of ...