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

SOUND

SOUND 
* Sound waves can travel through liquids, solids as well as gasses. The substance (solid, liquid or gas) through which sound waves travel is called a medium. Sound waves requires a material medium to propagate, they cannot travel through vacuum. 
* Robert Boyle, the scientist, showed that sound waves cannot pass through vacuum or empty space. 
Wave 
* “If the particles of a medium vibrate in a direction, analogue to or along the direction of propagation of wave, it is called a longitudinal wave” 
* Sound waves travel in the form of longitudinal waves through gases. 
* “If the particles of the medium vibrate in a direction, vertical to the direction of propagation, the wave is called a transverse wave.”
Definitions of some terms used in relation to waves: 
Amplitude (a) 
* The maximum displacement of a particle from the mean position is called amplitude. Its unit is metre. 
Time period (T) 
* Time taken by a particle of the medium to complete one vibration is called Time period. Its unit is second. 
Frequency (n) 
* The number of vibrations completed by a particle in one second is called frequency. Its unit is hertz. n =1/T
Wave Length (λ) 
* Distance moved by a wave during the time a particle completes one vibration. Its unit is metre.
Reflection of Sound WAVES 
*Echo reflected sound waves reach the ear it can be heard distinctly after the original sound has stopped. This is called an Echo. The completion of sound persists in our 
brain for about 1/10th of a second. If the reflected sound wave reaches the ear in less than 1/10th of a second the brain cannot make out the difference between the original sound and the echo. If the reflected sound wave reaches the ear after 1/10th of a second then a distinct 
echo can be heard. 340 m/s at a temperature of 15°C, sound waves must travel about 34m if it is to be heard as an echo. Therefore, to hear a distinct echo, the surface reflecting the sound should be at least 17 meters away. 
Distance = velocity x time
= 340 x 1/10
 = 34 m. (17 m going and 17 m return) 
The speed of sound 
* The Pitch and loudness of sound have no effect on their speed. The rate of sound increases with humidity. Sound travels moist air than in through day air. The speed of sound in air increases by 0.61 
metre per second for each degree rise in temperature above 0°C. The rate of sound depends on the medium. It is more in solids, less in liquids, and the least in gases. 
Range of hearing 
* Human – 20 to 20000 hertz 
* Above 20000hz ultrasonic sound, below 20hz infrasonic sound 
Applications of Ultrasound 
1. SONAR (Sound Navigation And Ranging) 
2. Ultra Sonography ‘Ultra sonic waves’ can be used to visualize inner organs of the human body. 
Reverberation 
* The repeated reflection that results in the persistence of sound, often referred to as ‘rolling sound’ is called reverberation.
Intensity of sound 
* The intensity is described as the amount of energy crossing per unit area per unit time perpendicular to the direction of propagation of the wave. Intensity is measured in Wm–2.
Loudness : The loudness of a sound is related to the energy of the waves and depends on amplitude. The relative loudness of a sound is measured in decibels. Noise level of 85db or above can impair (or) damage hearing. 
Refraction of sound : 
Sound moves from one medium to another, it undergoes refraction. 
Applications of refraction of sound 
* It is quite easier to hear the sound during night than during day-time. During day time, the upper layers of air are cooler than the layers of air near the surface of the Earth. During night, the layers of air near the Earth are cooler than the upper layers of air. As sound travels faster in hot air, 
during day-time, the sound waves will be refracted upwards and travel a short distance on the surface of the Earth. On the other hand, during night the sound waves are refracted downwards to the Earth and will move a long distance. 
Doppler Effect 
* The phenomenon of the apparent switch in the frequency of sound due to the relative motion between the source of sound and the observer is called Doppler effect. 
* When the source moves towards the 
stationary observer the pitch sound to increase. 
* When the source moves away from the stationary observer the pitch sound appears to decrease. 
* When the observer moves towards the stationary source the pitch the sound appears to increase. 
* When the observer moves away from the stationary source the pitch of the sound appears to decrease. 
Applications of Doppler Effect 
1. To calculate the speed of an automobile 
2. Tracking a satellite 
3. Radar (Radio Detection And Ranging) 
4. Sonar (Sound Navigation And Ranging)


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