Docsity

Stanford CS229 Machine Learning Complete Course Notes: Comprehensive Supervised Learning,, Exams of Computer Science

Toggle sidebar
bg1
Stanford CS229 Machine Learning
Complete Course Notes: Comprehensive
Supervised Learning, Mathematical Proofs,
and Exam Preparation Guide
1. Which of the following is a fundamental SI unit?
A) Newton
B) Joule
C) Kilogram
D) Watt
Rationale: The kilogram is one of the seven base units of the International
System of Units (SI). The newton, joule, and watt are derived units.
2. What is the acceleration due to gravity on Earth's surface
(approximately)?
A) 5.8 m/s²
B) 9.8 m/s²
C) 12.5 m/s²
D) 15.2 m/s²
Rationale: The standard acceleration due to gravity, denoted as 'g', is
approximately 9.8 meters per second squared.
3. A scalar quantity has:
A) Only direction
B) Only magnitude
C) Both magnitude and direction
D) Neither magnitude nor direction
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Stanford CS229 Machine Learning Complete Course Notes: Comprehensive Supervised Learning, and more Exams Computer Science in PDF only on Docsity!

Stanford CS229 Machine Learning

Complete Course Notes: Comprehensive

Supervised Learning, Mathematical Proofs,

and Exam Preparation Guide

1. Which of the following is a fundamental SI unit? A) Newton B) Joule C) Kilogram D) Watt Rationale: The kilogram is one of the seven base units of the International System of Units (SI). The newton, joule, and watt are derived units. 2. What is the acceleration due to gravity on Earth's surface (approximately)? A) 5.8 m/s² B) 9.8 m/s² C) 12.5 m/s² D) 15.2 m/s² Rationale: The standard acceleration due to gravity, denoted as 'g', is approximately 9.8 meters per second squared. 3. A scalar quantity has: A) Only direction B) Only magnitude C) Both magnitude and direction D) Neither magnitude nor direction

Rationale: A scalar is defined by its magnitude alone (e.g., mass, speed), while a vector has both magnitude and direction. The option C is incorrect as it describes a vector. Let's re-evaluate. The correct answer is B. A scalar has only magnitude. Correction:

3. A scalar quantity has: A) Only direction B) Only magnitude C) Both magnitude and direction D) Neither magnitude nor direction Rationale: A scalar is a physical quantity that is completely described by its magnitude alone, such as mass, time, or temperature. 4. Which of Newton's laws is also known as the law of inertia? A) First Law B) Second Law C) Third Law D) Law of Universal Gravitation Rationale: Newton's First Law states that an object at rest stays at rest and an object in motion stays in motion with the same speed and in the same direction unless acted upon by an unbalanced force. This concept is also called inertia. 5. The unit of force is the: A) Joule B) Watt C) Newton D) Pascal Rationale: The Newton (N) is the SI unit of force. It is defined as the force required to accelerate a one-kilogram mass at a rate of one meter per second squared (1 N = 1 kg·m/s²).

Rationale: Momentum (p) is the product of mass (m) and velocity (v). p = m * v = 2 kg * 3 m/s = 6 kg·m/s.

10. Which of the following is NOT a contact force? A) Friction B) Tension C) Normal Force D) Gravitational Force Rationale: Gravitational force is a non-contact force, meaning it acts over a distance without physical touch. Friction, tension, and normal force all require physical contact. 11. The tendency of an object to resist a change in its state of motion is called: A) Force B) Inertia C) Momentum D) Acceleration Rationale: Inertia is the property of matter that causes it to resist changes in its velocity. It is directly related to mass. 12. What is the SI unit of power? A) Joule B) Newton C) Watt D) Volt Rationale: Power is the rate at which work is done or energy is transferred. The Watt (W) is the SI unit, equal to one Joule per second. 13. Which simple machine is a sloping surface used to raise objects? A) Lever B) Pulley

C) Inclined Plane D) Wheel and Axle Rationale: An inclined plane is a flat supporting surface tilted at an angle, with one end higher than the other, used as an aid for raising or lowering a load.

14. The frequency of a wave is measured in: A) Meters B) Seconds C) Hertz D) Decibels Rationale: Frequency is the number of cycles per second, and its SI unit is the Hertz (Hz). 15. In a vacuum, all electromagnetic waves travel at the same: A) Frequency B) Wavelength C) Speed D) Amplitude Rationale: All electromagnetic waves travel at the speed of light (c ≈ 3.0 x 10⁸ m/s) in a vacuum, regardless of their frequency or wavelength. 16. What type of wave is a sound wave? A) Transverse B) Longitudinal C) Electromagnetic D) Surface Rationale: Sound waves are longitudinal waves, meaning the particles of the medium vibrate parallel to the direction of wave propagation. 17. The bending of light as it passes from one medium to another is called:

21. The first law of thermodynamics is a statement of: A) Entropy B) Conservation of Energy C) Heat Transfer D) Absolute Zero Rationale: The first law of thermodynamics is a version of the law of conservation of energy, stating that energy can be converted from one form to another but cannot be created or destroyed. 22. Heat transfer by direct contact is called: A) Convection B) Radiation C) Conduction D) Induction Rationale: Conduction is the transfer of heat through a material without the movement of the material itself, typically by microscopic collisions of particles. 23. What is the boiling point of water at standard atmospheric pressure in Celsius? A) 0°C B) 50°C C) 100°C D) 212°C Rationale: At standard atmospheric pressure (1 atm), water boils at 100 degrees Celsius (212 degrees Fahrenheit). 24. Which temperature scale has its zero point at absolute zero? A) Celsius B) Fahrenheit C) Kelvin D) Rankine

Rationale: The Kelvin scale is an absolute thermodynamic temperature scale that starts at absolute zero, the theoretical point where all thermal motion ceases.

25. The process of a solid changing directly to a gas is called: A) Evaporation B) Condensation C) Melting D) Sublimation Rationale: Sublimation is the transition of a substance directly from the solid phase to the gas phase without passing through the intermediate liquid phase. 26. Which of the following is a good conductor of electricity? A) Rubber B) Glass C) Copper D) Wood Rationale: Copper is a metal and is an excellent conductor of electricity due to its free electrons. The other materials are generally insulators. 27. Ohm's Law relates voltage (V), current (I), and: A) Power (P) B) Energy (E) C) Resistance (R) D) Charge (Q) Rationale: Ohm's Law states that the current through a conductor between two points is directly proportional to the voltage across the two points, with resistance being the constant of proportionality (V = IR). 28. The unit of electrical resistance is the: A) Ampere

32. What is the SI unit of magnetic flux density? A) Weber B) Henry C) Tesla D) Farad Rationale: The Tesla (T) is the SI unit of magnetic flux density (or magnetic field strength). One Tesla is one Weber per square meter. 33. The device that converts mechanical energy into electrical energy is a: A) Motor B) Transformer C) Generator D) Battery Rationale: A generator uses electromagnetic induction to convert mechanical energy (from a turbine, for example) into electrical energy. A motor does the reverse. 34. What is the process by which a nucleus of an unstable atom loses energy by emitting radiation? A) Ionization B) Fission C) Fusion D) Radioactive Decay Rationale: Radioactive decay is the spontaneous process by which an unstable atomic nucleus loses energy by emitting radiation. 35. Which particle has a negative charge? A) Proton B) Neutron C) Electron D) Positron

Rationale: The electron is a subatomic particle with a negative fundamental electric charge. Protons are positive, and neutrons are neutral.

36. The "strong nuclear force" is responsible for: A) Radioactive decay B) Holding protons and neutrons together in the nucleus C) Chemical bonding D) Gravity Rationale: The strong nuclear force is the fundamental force that binds quarks together to form protons and neutrons, and it also holds these nucleons together within the atomic nucleus. 37. In nuclear fission, a heavy nucleus: A) Combines with another nucleus B) Splits into two or more lighter nuclei C) Emits an alpha particle only D) Gains a neutron Rationale: Nuclear fission is the process of splitting a large nucleus (like Uranium-235) into smaller, lighter nuclei, releasing a large amount of energy. 38. What is the antiparticle of an electron? A) Neutrino B) Proton C) Positron D) Muon Rationale: The positron is the antiparticle of the electron. It has the same mass but a positive charge. 39. Which fundamental force is the weakest? A) Strong Nuclear Force B) Electromagnetic Force

B) Watt C) Joule D) Pascal Rationale: Work is defined as the product of force and displacement (W = F d). The SI unit of work is the Joule (J), which is equal to one Newton-meter.*

44. What is the mechanical advantage of a machine that requires 10 N of effort to lift a 100 N load? A) 1 B) 5 C) * 10 * D) 100 Rationale: Mechanical advantage is the ratio of the output force (load) to the input force (effort). MA = Load / Effort = 100 N / 10 N = 10. 45. The property of a fluid that resists flow is called: A) Density B) Buoyancy C) Viscosity D) Pressure Rationale: Viscosity is a measure of a fluid's resistance to deformation at a given rate. For example, honey is more viscous than water. 46. Archimedes' principle relates to: A) The pressure of a fluid B) The buoyant force on an object C) The flow rate of a fluid D) The viscosity of a fluid Rationale: Archimedes' principle states that the upward buoyant force exerted on a body immersed in a fluid is equal to the weight of the fluid that the body displaces.

47. Which of the following is an example of simple harmonic motion? A) A car accelerating on a straight road B) A ball rolling down a hill C) A pendulum swinging back and forth D) A skydiver falling at terminal velocity Rationale: Simple harmonic motion is a periodic motion where the restoring force is directly proportional to the displacement. A swinging pendulum is a classic example. 48. The time it takes for one complete cycle of a wave is its: A) Frequency B) Wavelength C) Amplitude D) Period Rationale: The period is the duration of one complete cycle of a repeating event, and it is the reciprocal of frequency (T = 1/f). 49. The Doppler effect describes a change in the observed: A) Amplitude of a wave B) Speed of a wave C) Frequency of a wave D) Medium of a wave Rationale: The Doppler effect is the change in frequency or wavelength of a wave in relation to an observer who is moving relative to the wave source. 50. Which type of lens is thicker in the middle than at the edges? A) Concave lens B) Convex lens C) Plano-concave lens D) Cylindrical lens Rationale: A convex lens is thicker at the center and thinner at the edges. It converges light rays and is used to correct farsightedness.

D) Ionization Rationale: Nuclear fission is the splitting of a large atomic nucleus into smaller nuclei, accompanied by the release of a significant amount of energy.

55. What is the charge of an alpha particle? A) - 1 B) 0 C) * +2 * D) + Rationale: An alpha particle is identical to a helium nucleus, consisting of two protons and two neutrons, giving it a charge of +2. 56. The concept that energy and mass are interchangeable is summarized by the equation: A) F = ma B) V = IR C) E = mc² D) P = W/t Rationale: Einstein's mass-energy equivalence formula, E = mc², states that mass and energy are different forms of the same thing and can be converted into each other. 57. The force that opposes the relative motion of two surfaces in contact is: A) Tension B) Gravity C) Friction D) Normal Force Rationale: Friction is the force resisting the relative motion of solid surfaces, fluid layers, or material elements sliding against each other.

58. What is the formula for calculating work? A) W = ma B) W = Fd C) W = mgh D) W = ½mv² Rationale: Work is calculated as the product of the force applied and the distance over which it is applied in the direction of the force (W = Fd). 59. A measure of how much a machine multiplies a force is its: A) Efficiency B) Power C) Mechanical Advantage D) Work Output Rationale: Mechanical advantage is the factor by which a machine multiplies the force put into it. 60. The pressure at a depth of 10 meters in water is approximately: A) 1 atm B) 2 atm C) 10 atm D) 100 atm Rationale: The pressure due to 10 meters of water is about 1 additional atmosphere (1 atm ≈ 101.3 kPa, and 10m of water ≈ 98.1 kPa). So the total pressure is roughly 1 atm (surface) + 1 atm (water) = 2 atm. 61. The SI unit of frequency is: A) Second B) Hertz C) Meter D) Radian Rationale: The Hertz (Hz) is the SI unit for frequency, defined as one cycle per second.

D) Sublimation Rationale: Convection is the primary mode of heat transfer in fluids, where warmer, less dense material rises and cooler, denser material sinks, creating a circulation pattern.

66. Absolute zero is equivalent to: A) 0°C B) 0°F C) - 273.15°C D) 273.15 K Rationale: Absolute zero, the lowest possible temperature where all thermal motion ceases, is 0 Kelvin, which is equal to - 273.15 degrees Celsius. 67. What is the process of an object gaining heat and changing from a liquid to a gas? A) Condensation B) Freezing C) Melting D) Vaporization Rationale: Vaporization (or evaporation/boiling) is the phase transition from liquid to gas, which requires an input of heat energy. 68. In an electrical circuit, what is the unit of current? A) Volt B) Ampere C) Ohm D) Watt Rationale: The Ampere (A) is the SI unit of electric current, defined as the flow of one Coulomb of charge per second. 69. What is the relationship between voltage, current, and resistance known as?

A) Faraday's Law B) Coulomb's Law C) Ohm's Law D) Kirchhoff's Law Rationale: Ohm's Law (V=IR) is the fundamental relationship between voltage, current, and resistance in an electrical circuit.

70. A device that measures electric current is a: A) Voltmeter B) Ammeter C) Ohmmeter D) Galvanometer Rationale: An ammeter is an instrument used to measure the current in a circuit. It is connected in series with the component being measured. 71. The force between two charged particles is described by: A) Newton's Law of Gravitation B) Coulomb's Law C) Ohm's Law D) Faraday's Law of Induction Rationale: Coulomb's Law quantifies the electrostatic force of attraction or repulsion between two point charges. 72. The magnetic field inside a long solenoid is: A) Zero B) Uniform and strong C) Weak and non-uniform D) Circular Rationale: The magnetic field inside a long, tightly wound solenoid is nearly uniform in magnitude and direction, and is much stronger than the field outside.