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...

PHYSICAL QUANTITIES, STANDARDS & UNITS

Units and Dimension & Errors:
1. Review of Basic Concepts :
* Physics is the branch of Science which deals with observation, measurement and description of natural phenomena related to Matter and Energy ‘Physics’ is also defined as the study of nature and its law. 
* Mechanics is one of the branches of Physics which deals with the studies of forces acting on the bodies. 
* Physical Quantities are the quantities which can be able to describe the Laws of physics. Physical quantities may be divided into fundamental and derived quantities. 
* Fundamental quantities can be classified into 7 Quantities . 
 Namely : 
* Mass 
* Length 
* Time 
* Temperature 
* Electric current
* Luminous Intensity 
* Amount of substance 
* In addition to these seven basic units there are two supplementary units – ‘radian’ and ‘steradian’. The units of Fundamental quantities are called ‘fundamental units'.
* In 1960, to measure the physical quantities, International System of Units abbreviated as ‘SI’ in all languages was introduced.
Supplementary units: 
Name of Quantity:Plane angle | Solid angle
Name of Unit:         Radian        |  Steradian Fundamental Quantities can be defined as follows : 
* The fundamental quantities should be independent to one another. 
* All other quantities may be expressed in terms of fundamental quantities.
Derived Quantities and their units : 
Fundamental or Basic Quantities:
* Dimension of a physical quantity are the powers to which the fundamental quantities must be raised. 
Derived Quantities : 
* The quantities derived from the fundamental quantities are called derived quantities. 
Eg. Area, Volume, Density 
Derived Units : 
* The units of derived quantities are called derived units. 
Rules and conventions for writing SI Units and their Symbols : 
1. The units named after scientists are not written with a capital initial latter. 
E.g: Newton, Henry, watt. 
2. The symbols of the units named after scientists should be written by a capital letter. 
E.g : N for Newton, H for Henry, W for watt 
3. Small letters are used as symbols for units not derived from a proper name. 
E.g : m for metre, kg for kilogram 
4. No full stop or other punctuation marks should be used within or at the end of symbols. 
E.g: 50 m and not as 50m 
5. The symbols of the units do not take plural form. 
E.g: 10kg not as 10kgs 
6. When temperature is expressed in Kelvin, the degree sign is omitted. 
E.g: 273 K not as 273°K 
7. If expressed in Celsius scale, degree sign to be included. 
E.g: 100 C not 100C 
8. Use of solidus is recommended only for indicating a division of one letter units symbol by another unit symbol. Not more 
than one solidus is used. 
E.g: ms-1 or m/s J/K or JK-1
 mol-1 but not J /K /mol 
9. Some space is always to be left between the number and the symbol of the unit and also between the symbols for 
compound units such as force,momentum etc.
10.Only accepted symbols should be used. 
E.g: ampere is represented as A not as amp. (or) am; second is represented as ‘s’ 
and not as sec. 
11. Numerical value of any physical quantity should be expressed of mercury is 1.36 x 104kg m-3 and not as 13600kg m-3 
E.g: density of mercury is 1.36 x 10 4 kg m-3 and not as 13600kg m-3
Light Year: 
In order to measure very large distance, the following units are used. 
1. Light year 
2. Astronomical Unit 
Light year is the distance travelled by light in one year in vacuum. 
Distance travelled = velocity of light x 1 year 
* 1 light year = 3 x 10^8 m x 1 year (In seconds) 
 = 3 x 10^8 x 365.25 x 24 x 60 x 60
 = 9.467x 10^15m 
1 light year = 9.467 x 10^15 m.
Greatest Units:
* 1 light year = 9.46 x 10^15 m 
* 1 parsec = 3.84 x 10^16 m 
* 1 AU = 1.5 x 10^11 m 
* 1 metric ton = 10^3 kg
* 1 Quintal = 10^2 kg
Astronomical unit : 
* Astronomical unit is the mean distance of the centre of the Sun from the centre of the earth. 1 Astronomical unit = 1.496 x 10^11m 
Expressing Larger and smaller Quantities:
* The fundamental units are defined. 
* Now it is easier to express larger and smaller units of the same physical quantity. 
* The table lists the standard SI prefixes, their meanings and abbreviation. 
10-15 femto f 
10-12 Pico p 
10-9 Nano n 
10-6 micro 
10-3 milli m 
10-2 centime c
10-1 deci d 
101 deca da
102 Hecto h 
103 Kilo k 
106 Mega M 
109 Giga G 
1012 Tera T 
1015 Peta P 
Scalar Quantities:
* Physical quantities which have magnitude only and no direction 
E.g : Mass, Speed, Volume, Work, Time, Power Energy 
Vector Quantities:
Physical quantities which have magnitude and direction both and which obey triangle law. 
Eg : Displacement, Velocity, acceleration, force, Momentum 
Dimensional Quantities : 
* Constant which possess dimensions are called Dimensionless are called ‘Dimensionless quantities’
E.g : Strain, Specific Gravity etc. Uses of Dimensional Analysis : 
* The method of dimensional analysis is used in four important ways : 
1. It is used to check the dimensional correctness of a given physical equation. 
2. To the physical equation 
3. Finding the dimensions of constants (or) variables in an equation. 
4. Conversion of one unit from one system to another. 
Limitation of Dimensional Analysis : 
1. If a physical quantity depends more than 3 quantities, the dimensions cannot be applied
2. The dimensional method cannot be applied to equations involving exponential and trigonometric functions.
3. The value of dimensionless constants be determined by this method.
Dimensional quantities:
* Constants which possess dimensions are called dimensional constants. Planck’s constant, universal gravitational 
constant are dimensional constants. 
* Dimensional variables are those physical quantities which possess dimensions but do not have a fixed value. Example − 
velocity, force, etc. 
Dimensionless quantities:
* There are certain quantities which do not possess dimensions. They are called dimensionless quantities. Examples are strain, angle, specific gravity, etc. They are dimensionless as they are the ratio of two quantities having the same dimensional formula. 


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 ...