Monday, 31 July 2023

S.S.C 2024 most important questions science 1 c.h.p 1 gravitation

 S.S.C 2024 most important questions 

science 1 c.h.p 1 gravitation

M.C.Q

The minimum velocity of a spacecraft to escape from gravitational force is ………

The value of gravitational acceleration (g) is ………..

The ……………..force is much weaker than other forces in nature.

The value of universal gravitational constant (G) in SI unit is…………

The gravitational force between two bodies is directly proportional to the product of the masses of those bodies and is ……….of the distance between them.

The square of its period of revolution around the sun is directly proportional to the ……….. Of the mean distance of a planet from the sun.

The orbit of a planet revolving around a star is ……

A ……. Is necessary to change the speed as well as the direction of motion of an object.

The value of gravitational acceleration (g) is …………at the equator

The free fall of an object is possible only in…….

The weight of any object on the moon is nearly …………of the weight of the earth

A person weighs 60 N on earth. His weight on the moon will be……

Newton presented the laws of motion, equations of motion and theory of gravitation in his book…….

Laws of planetary motion were discovered by ……………………….

True or false

If the distance between two masses is doubled, the gravitational force between them becomes less than the previous force.

The CGS unit of G is dyne.cm

The value of gravitational acceleration with the centre of the earth is zero.

The value of g is highest at the equator.

The value of G varies from place to place.

As it rises above the earth's surface, its value increases.

The speed of release of an object does not depend on the mass of the object.

Mass is a qualitative measure of the inertia of an object.

Distinguish between

Mass and weight

Give scientific reasons

The weight of the object changes from place to place while the mass is constant

Answer the following

Explain why value of g changes if we go inside the earth

If mass of 2 bodies are m1 and m2 respectively and if distance between them is 3d then force F =

State the 3 planetary laws of KEPLER or of the given figure showing orbit of a planet write the 3 laws related to it

Will the weight of an object on earth will be same as that on mars? Why

What is Free Fall, acceleration due to gravity, escape velocity and centripetal force?

A stone thrown vertically upwards with an initial velocity u reaches a height h before coming down show that the time taken to go up is same as time taken to come down.

Let the period of revolution of a planet at a distance R from a star be T. Prove that if it was at a distance of 2R from the star, its period of revolution will be √8T.

Tuesday, 4 July 2023

EVS Project work on conducting energy audit for energy conservation

 

E.V.S Project work on conducting energy audit for energy conservation


Introduction:

An energy audit is an analysis of a facility, indicating how and where

that facility can reduce energy consumption and save energy costs. Its

insight to energy efficiency and conservation can lead to significant

savings on the utility bill of houses, institutions, companies etc. and

suggest the energy conservation techniques. Hence to put more light in

this conservation technique I have selected this topic.

Energy audit refers to examination and verification of energy

consumption in the form of electricity, gas and other forms of fuel energy

used in households, industries, institutes, schools etc. It can be considered

as the first step towards knowing how energy is being used in a given

facility. It indicates the ways in which various forms of energy are being

Used and quantifies energy use according to different functions.

Energy Audit is an integral part of Green auditing. Green Audit is an

unique process of systematic identification, quantification, recording,

reporting and analysis of components of environmental diversity of

various establishments. It allows us to know the uses of available

resources i.e. Energy, Water quality, Built-up Space, Air quality in the

organization. It was initiated in 1970 with the motive of inspecting the

work conducted within the organizations, which can cause risk to

inhabitants and environment.Rapid urbanization and economic development at local, regional and global level has led to several environmental and ecological crisis.

Hence It becomes essential to adopt the system of environmental audit for institutes, organizations etc. It will lead to sustainable development.In the given research I have made an attempt to conduct the energy audit of my house.

Importance of the Project:

Energy conservation means using energy more efficiently and less wastefully. Conservation of energy is an important energy resource because a Unit of energy saved is as good as a unit of energy generated. It helps you to lower energy bills. It helps you to increase the life span of the equipment. Helps in understanding energy consumption pattern of the Institute and house. By identifying energy wastage areas, saving energy and using renewable energy sources, the institute can become more energy Efficient. Thus Energy audit is a small step towards preventing global warming as well as saving the valuable conventional energy resource

Objectives:

To create awareness towards wastage of electrical energy.

To make statistical analysis of electrical energy usage in order to reduce unnecessary consumption.

To sensitize the community about lawful consumption of electrical energy in their houses and work places.

To study about alternatives to cut down the cost as well as reduce the energy loss.

To find the difference in the electricity bills in order to analyses the impact of alternatives used in conserving electricity.

To learn electric energy consumption pattern and its calculation. 

Methodology

I am doing my research project by applying the survey method in which I have used Interview method to do the analysis of my research have selected my own house to conduct the energy audit have compared the electricity bills of 2 months (January & March respectively) in order to find the difference in the electricity consumption. This difference has helped me to find the reduction in electricity consumption due to the use of alternatives. In interview method I have taken interview of two experts, an architecture and an electrical engineer to put light on my research and to gain in-depth knowledge about electricity consumption its conservation. During interview session I have asked 5 questions each to the experts

Name of the Expert & List of questions asked.

Mr. Rajendra Baburao (Electrical Engineer-Reliance)

1. What is the effect of Wattage difference of same appliances on electricity consumption?

2. Can replacement of a part of electrical appliances help to reduce electricity consumption?

3. Is there any user guide available by which we can use electrical energy more wisely?

4. Is there any specific electrical wires available in the market which helps in reducing the electricity consumption?

5. How to calculate electrical energy consumption of appliances?

Observations:




Analysis:



Calculation of electricity consumption was done in following way:

DATA: 1kWh=1unit

Where, W stands for Wattage which means operating power of electrical

Appliances.

Convert Wattage into Watt-hour = Watt/60 mins

Convert Watt-hour into KWh = Watthr/1000

FOR EXAMPLE: CALCULATION OF ELECTRICAL CONSUMPTION BY TUBE LIGHTS.

Wattage of tube light = 40 W

No. of tube lights = 6 K + B + H

Hrs. of Consumption/day = 8 (On an average) {(4+4+8+8+12+12)/6 = 8}

WattHr./day = 40 X 6 X 8 = 1920

KiloWatt Hr. = 1920/1000 = 1.920

Kilowatt Hr. / month = 1.920 X 31 = 59.52 units

Resultant and Conclusion

After understanding the application of Energy audit in energy Conservation, I have taken an initiative to conduct an energy Audit to calculate and compare the electricity usage at my own House for the month of January and March have reduced the usage of appliances with respect to numbers And hours of operation. Based on the results obtained it has been noticed that without Taking much effort I could save 200 units of electricity. I have consciously made an effort for reducing the hours of Operations and number of appliances like Geyser, Fan, and tube light etc. On regular basis. Along with the conservation of energy this initiative has also given me the financial benefit where I could save around 600 rupees.

Monday, 3 July 2023

EVS Projects List

E.V.S  Projects List ( All Projects )


Click on below links to watch & download 👇

Visited historic place & environmental issues over there ðŸ‘ˆ( click here )

Project work on global warming ðŸ‘ˆ( click here )

Project work on organic farming ðŸ‘ˆ( click here )

Project work on solar energy  ðŸ‘ˆ( click here )

Project work on water pollution ðŸ‘ˆ( click here ) 

Project work on biodiversity 👈(click here)

Project work on conservation of natural resources 👈(click here)

Project work on airpollution 👈(click here)



Wednesday, 28 June 2023

Airpollution

 

Project work on Air Pollution

Introduction:

Air pollution is contamination of the indoor or outdoor environment by any chemical, physical or biological agent that modifies the natural characteristics of the atmosphere. Household combustion devices, motor vehicles, industrial facilities and forest fires are common sources of air pollution.

Pollutants of major public health concern include particulate matter, carbon monoxide, ozone, nitrogen dioxide and sulphur dioxide. Outdoor and indoor air pollution cause respiratory and other diseases and are important sources of morbidity and mortality. WHO data show that almost all of the global population (99%) breathe air that exceeds WHO guideline limits and contains high levels of pollutants, with low- and middle-income countries suffering from the highest exposures.

 

Air quality is closely linked to the earth’s climate and ecosystems globally. Many of the drivers of air pollution (i.e. combustion of fossil fuels) are also sources of greenhouse gas emissions. Policies to reduce air pollution, therefore, offer a win-win strategy for both climate and health, lowering the burden of disease attributable to air pollution, as well as contributing to the near- and long-term mitigation of climate change.

Importance of the Project:

This project on air pollution is important as

Air pollution in countries like India is a serious environmental issue. Of the 30 most polluted cities in the world, 21 were in India in 2019.As per a study based on 2016 data, at least 140 million people in India breathe air that is 10 times or more over the WHO safe limit and 13 of the world's 20 cities with the highest annual levels of air pollution are in India. 51% of the pollution is caused by industrial pollution, 27% by vehicles, 17% by crop burning and 5% by other sources. Air pollution contributes to the premature deaths of 2 million Indians every year. Emissions come from vehicles and industry, whereas in rural areas, much of the pollution stems from biomass burning for cooking and keeping warm. In autumn and spring months, large scale crop residue burning in agriculture fields – a cheaper alternative to mechanical tilling is a major source of smoke, smog and particulate pollution. India has a low per capita emissions of greenhouse gases but the country as a whole is the third largest greenhouse gas producer after China and the United States. A 2019 study on non-smokers has found that Indians have 30% weaker lung function than Europeans.

air pollution effect on climate as

Black carbon, a component of fine particulate matter, is one of the largest contributors to global warming after CO2. Black carbon warms the earth's atmosphere by absorbing sunlight, thereby accelerating the melting of snow and ice.

Objectives:

The main objective of this project is to cut down the air pollution

The overall aim of the proposed research is to further understand the link between air pollution levels and chemical composition and to investigate and assess the effects of air pollution on the distribution of related health impacts, socio-economics and welfare in the countries. In pursuing this aim, the following objectives will be investigated:

High spatial resolution emissions: Performing a detailed common country emission inventory Down to 1 km x 1 km resolution, based on emission databases in the individual countries. Official data available will be used as well as preparation and incorporation of additional spatial disaggregation proxies in order to achieve the high spatial resolution emission inventory needed for the air quality modelling. Different methodologies and proxies used in different countries will be analysed and preferable methodologies recommended. Special attention will be given to sources with large contribution to the total emissions in the affected countries, specifically residential wood combustion. The emission inventory will be conducted in WP1 and will be input to WP2.

Integrated modelling: Setting up of a state-of-the-art advanced and integrated air pollution model system from hemispheric scale, European scale, and national scale, for calculation and assessment of high resolution (down to 1 km x 1 km resolution) air pollution levels and human exposure, including assessing the contribution related to different emission sectors and regions. This work is carried out in WP2. The results will be hourly values of air pollutants, on a 1 km x 1 km resolution covering the affected countries over several decades (input to WP3).

Health effects of air pollution: Investigate the potential causal impact of individual chemical air pollutants as well as mixtures of air pollutants on health outcomes. In pursuing this aim, we utilize the unique population-based registers allowing linkage between historical residential address, air pollutants over decades and later health outcomes. By linking the exposure to health outcomes, new exposure-response relationships are determined of health effects for different population Groups (e.g. age, education, ethnicity, gender, lifestyle, and working life vs. retirement conditions) related to air pollution for the individual chemical air pollutants. The objective will be conducted in WP3.

Assessment and quantification of health impacts: An assessment and quantification of overall negative health outcomes of air pollution in terms of premature deaths, hospital admissions, days of reduced activity, respiratory diseases, mental disorders, etc. on high resolution down to 1 km x 1 km in the affected countries for the different population groups, using the integrated model system EVA, based on the impact pathway chain. The EVA system will be further developed utilizing the new exposure-response relationships found in WP3 and will be carried out in WP4.

Methodology

Assessing the effects of air-pollution is a significant problem in the field of modern environmental epidemiology. When modelling these effects it is important that the models must be epidemiologically meaningful and robust (that is, insensitive to variations in the model parameters). The objective of this paper is to propose a methodology for the assessment of the health impact of air pollution. The proposed methodology involves the construction of models for complex dynamic hierarchical systems in environmental epidemiology and their problem-oriented interpretation.

The principal stages of the proposed methodology are:

Creation of a multivariate hierarchical structural model based on system analysis.

Generation of a mathematical formalization for this model.

Development of a statistical model for a particular study case based on the mathematical formalization, using the generalized estimating equations technique and time-series analysis. At this stage, for a dichotomized dependent variable, a special fuzzy algorithm was used. The algorithm employed fuzzy membership functions instead of the binary variable to obtain robust regression models.

Use of the “multi-layered” approach for model interpretation developed by the authors. This approach involved the creation of special functional time-dependent coefficients that reflect the effect of air pollutants at a given time. These coefficients allow an epidemiological meaningful model interpretation. Thus, they can be used for air-pollution health effects assessment.

Observation

Western Europe, eastern North America, and East Asia, the three major industrial regions of the world, are major emission sources of air pollution (AP) and greenhouse gases (GHG). In East Asia, the fossil fuel consumption in 2005 for the three major countries of China, Japan, and Korea was 1,554M, 525M, and 225M tons, respectively (. These three alone use 21.8% of the world’s energy, adding AP and GHG to the atmosphere and causing environmental impacts, which include global warming and climate change .Strikingly, it has been reported that in heavily polluted China, the poor air and water quality affect about 1 million of the 20 million babies born each year, with about 300,000 babies suffering from visible deformities. According to a World Bank study, each year, about 460,000 people in China die prematurely because of air and water pollution.

Air pollution in India is a serious environmental issue. Of the 30 most polluted cities in the world, 21 were in India in 2019. As per a study based on 2016 data, at least 140 million people in India breathe air that is 10 times or more over the WHO safe limit and 13 of the world's 20 cities with the highest annual levels of air pollution are in India 51% of the pollution is caused by industrial pollution, 27% by vehicles, 17% by crop burning and 5% by other sources. Air pollution contributes to the premature deaths of 2 million Indians every year. Emissions come from vehicles and industry, whereas in rural areas, much of the pollution stems from biomass burning for cooking and keeping warm. In autumn and spring months, large scale crop residue burning in agriculture fields – a cheaper alternative to mechanical tilling – is a major source of smoke, smog and particulate pollution.

Analysis:

Here is a sample analysis of air pollution monitoring in Mumbai India

Mumbai (18.97N, 72.82E) with over 10 million population is one of the most populous city in India and ranks fifth among the most populous cities of the world. With considerable industrial activity and vehicular presence, air pollution is a key issue affecting the human health. Continuous air quality monitoring is being done to identify the patterns in key indicators like SOx, NOx and RSPM (respirable suspended particulate matter). We have analysed the pattern in the changes in these species using air quality data at Sion (19.04N, 72.86E) from 2004 to 2014 and Bandra (19.05N, 72.84E) from 2007 to 2014. . In time series analysis of this 10 years data at Sion we are able to get considerable decay in SOx from 30 to 10µg/m3 and in RSPM from 250 to 150µg/m3because industries are displaced from locality, not much change is seen in NOx from 110 to 100µg/m3. Whereas in case of Bandra there is little increase in SOx concentration from 18 to 20µg/m3while decay in concentration of NOx from 65 to 50µg/m3and in RSPM from 140 to 110µg/m3. The paper attempts to analyze the causes for these pattern changes in terms of industrial activity, changes in vehicular pollution norms and other anthropogenic factors.

Here is sample chart showing sources of air pollution



Resultant and Conclusion:

While the effects of air pollution on materials, vegetation, and animals can be measured, health effects on humans can only be estimated from epidemiological evidence. Most of the evidence comes from occupational exposure to much higher concentrations of pollutants than the general public is exposed to. Moreover, the health effects of smoking and other lifestyle characteristics and exposures confound the observations of air pollutant effects. Ethical considerations preclude deliberate exposure of human subjects to concentrations of pollutants that might produce adverse effects, so evidence from sources other than epidemiology is virtually impossible to obtain. All of the evidence we have suggests that air pollutants threaten human health and well-being to an extent that control of these pollutants is necessary



Wednesday, 21 June 2023

Free Maths Printable Worksheets

 Free Maths Printable Worksheets ( All Grades ) 

Click on below links to download 👇👇👇

Kinrtergarden (KG) click here 👈👈

Grade 1 ( click here )  ðŸ‘ˆðŸ‘ˆ

Grade 2 ( click here ) ðŸ‘ˆðŸ‘ˆ

Grade 3 ( click here ) 👈👈

Grade 4 ( click here ) 👈👈

Grade 5 ( click here ) 👈👈

Grade 6 ( click here) 👈👈

Saturday, 6 May 2023

Read Log & Antilog Table

How To Read Log & Antilog Table 

Watch Click Below 👇👇


Watch Click Below ðŸ‘‡ðŸ‘‡



Friday, 5 May 2023

12 Tenses in English

 12 Tenses in English 

Watch Click Below 👇


Learn all the tense Rule click here 👈👈👈

Wednesday, 26 April 2023

Fast multiplication

Fast multiplication of 2 digit numbers ending 1

Watch click below 

 



Try yourself : 
61*41 ,  81*11 , 51*41  

Tuesday, 14 March 2023

FYBSC IT SEM ( NUMERICAL METHODS QUESTION BANK SOLUTIONS )

 FYBSC IT SEM ( NUMERICAL METHODS QUESTION BANK SOLUTIONS ) 

UNIT 1

1.Let p = 0.54617 and q = 0.54601. Use three significant figures to approximate p − q and determine the absolute and relative errors using  (i) rounding and (ii) chopping 

Solution:

Using three significant figures, we have p = 0.546 and q = 0.546.

(i) Rounding:

p - q = 0.546 - 0.546 = 0.000

Absolute error = |0.000 - 0.00016| = 0.00016

Relative error = |0.00016/0.00016| = 1

(ii) Chopping:

p - q = 0.546 - 0.546 = 0.000

Absolute error = |0.000 - (-0.00017)| = 0.00017

Relative error = |0.00017/0.00017| = 1

Note that the true value of p - q is 0.00016.

2.Find the absolute error and relative error and also determine the number of significant digits in the approximations for the following.

True value =98350 and approximate value =98000

Find the absolute error and relative error and also determine the number of significant digits in the approximations for the following.

solution : 

True value =98350 and approximate value =98000

The absolute error is the difference between the true value and the approximate value: Absolute error = |true value - approximate value| = |98350 - 98000| = 350

The relative error is the absolute error divided by the true value: Relative error = Absolute error / True value = 350 / 98350 = 0.00356 (rounded to 5 decimal places)

To determine the number of significant digits in the approximation, we count the number of digits that are certain plus one uncertain digit. In this case, the approximation has two certain digits (98) and one uncertain digit (000). Therefore, there are three significant digits 

3. Create a hypothetical floating-point number set for a machine that stores information using 7-bit words.

solution : 

For a machine that uses 7-bit words, we could use the following format for a floating-point number:

1 bit for the sign (S)

3 bits for the exponent (E) 

3 bits for the mantissa (M)


4.Determine the absolute and relative errors when approximating p by p when i) p = 0.3000 × 101 and p = 0.3100 × 101 ii) p = 0.3000 × 10−3 and p = 0.3100 × 103

solution : 

To determine the absolute and relative errors when approximating p by p when p = 0.3000 × 10^1 and p = 0.3100 × 10^1, we use the following formulas:

Absolute error = |p - p|

Relative error = |(p - p)/p|

Substituting the values given in the problem, we get:

absolute error = |0.3000 × 10^1 - 0.3100 × 10^1| = |-0.0100 × 10^1| = 0.100

Relative error = |(0.3000 × 10^1 - 0.3100 × 10^1)/(0.3000 × 10^1)| = |-0.0100/0.3000| = 0.0333...

Therefore, the absolute error is 0.100 and the relative error is 0.0333... or approximately 3.33%.

ii) To determine the absolute and relative errors when approximating p by p when p = 0.3000 × 10^-3 and p = 0.3100 × 10^-3, we use the same formulas:

Absolute error = |p - p|

Relative error = |(p - p)/p|

Substituting the values given in the problem, we get:

Absolute error = |0.3000 × 10^-3 - 0.3100 × 10^-3| = |-0.0100 × 10^-3| = 0.000010

Relative error = |(0.3000 × 10^-3 - 0.3100 × 10^-3)/(0.3000 × 10^-3)| = |-0.0100/0.3000| = 0.0333...


UNIT 5

1. Fit a Poisson distribution to the following data and calculate theoretical frequencies.
No. of deaths 0 1 2 3 4  Frequency 122 60 15 2 1

Solution: 
To fit a Poisson distribution, we first need to calculate the mean of the data. The mean of a Poisson distribution is equal to its parameter λ. The formula for the mean of a Poisson distribution is: λ = Σ (xi * fi) / Σfi
Where xi is the value of the the category (0, 1, 2, 3, 4) and fi is the frequency of that category.
Using the given data, we can calculate the mean as:
λ = (0 * 122 + 1 * 60 + 2 * 15 + 3 * 2 + 4 * 1) / (122 + 60 + 15 + 2 + 1) = 0.534
Now, we can use the Poisson probability mass function to calculate the theoretical frequencies for each category:
P(X = k) = (e^-λ * λ^k) / k!
Where X is the random variable representing the number of deaths, λ is the mean or parameter of the Poisson distribution, and k is the number of deaths.
Using the mean λ = 0.534, we can calculate the theoretical frequencies as follows:
P(X = 0) = (e^-0.534 * 0.534^0) / 0! = 0.588
P(X = 1) = (e^-0.534 * 0.534^1) / 1! = 0.313
P(X = 2) = (e^-0.534 * 0.534^2) / 2! = 0.084
P(X = 3) = (e^-0.534 * 0.534^3) / 3! = 0.014
P(X = 4) = (e^-0.534 * 0.534^4) / 4! = 0.002
To calculate the theoretical frequencies, we multiply each probability by the total number of observations
Theoretical frequency of 0 deaths = P(X = 0) * (122 + 60 + 15 + 2 + 1) = 93.97 ≈ 94
Theoretical frequency of 1 death = P(X = 1) * (122 + 60 + 15 + 2 + 1) = 50.32 ≈ 50
Theoretical frequency of 2 deaths = P(X = 2) * (122 + 60 + 15 + 2 + 1) = 13.59 ≈ 14
Theoretical frequency of 3 deaths = P(X = 3) * (122 + 60 + 15 + 2 + 1) = 2.26 ≈ 2
Theoretical frequency of 4 deaths = P(X = 4) * (122 + 60 + 15 + 2 + 1) = 0.31 ≈ 0
Therefore, the theoretical frequencies for a Poisson distribution with λ = 0.534 are approximately 94, 50, 14, 2, and 0 for 0, 1, 2, 3, and 4 deaths, respectively

2.If 4 jobs arrive on an average per minute. What is the probability of waiting less than or equal to 30 seconds.
Solution:
To solve this problem, we need to first convert the arrival rate from per minute to per second. Since there are 60 seconds in a minute, the arrival rate per second would be:
λ = 4 / 60 = 0.067
Next, we need to use the Poisson distribution to calculate the probability of having 0, 1, 2, 3, or 4 arrivals in the next 30 seconds. The Poisson distribution formula is:
P(X = k) = (λ^k / k!) * e^(-λ)
where X is the random variable (number of arrivals), λ is the arrival rate, k is the number of arrivals we are interested in, and e is the mathematical constant e (approximately equal to 2.71828).
Using this formula, we can calculate the probabilities as follows:
P(X = 0) = (0.067^0 / 0!) * e^(-0.067) ≈ 0.934
P(X = 1) = (0.067^1 / 1!) * e^(-0.067) ≈ 0.062
P(X = 2) = (0.067^2 / 2!) * e^(-0.067) ≈ 0.002
P(X = 3) = (0.067^3 / 3!) * e^(-0.067) ≈ 0.00005
P(X = 4) = (0.067^4 / 4!) * e^(-0.067) ≈ 0.000001
To find the probability of waiting less than or equal to 30 seconds, we need to add up the probabilities of having 0, 1, 2, 3, or 4 arrivals in the next 30 seconds:
P(X ≤ 4) = P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3) + P(X = 4) ≈ 0.999
Therefore, the probability of waiting less than or equal to 30 seconds is approximately 0.999 or 99.9%.

3.The monthly worldwide average number of airplane crashes of commercial airlines is 2.2. What is probability that there will be
i) More than 2 such accidents in the next month
ii) Less than 4 such accidents in the next months
Solution : 
Given that the monthly worldwide average number of airplane crashes of commercial airlines is 2.2, we can assume that the number of such accidents follows a Poisson distribution.
i) Probability of having more than 2 accidents in the next month:
Let X be the number of airplane crashes in the next month. We want to find P(X > 2).
Using the Poisson distribution, we have:
P(X > 2) = 1 - P(X ≤ 2) = 1 - [P(X = 0) + P(X = 1) + P(X = 2)]
Where P(X = k) = (e^-λ * λ^k) / k!
λ = 2.2 (monthly worldwide average number of airplane crashes of commercial airlines)
Substituting the values, we get:
P(X > 2) = 1 - [((e^-2.2 * 2.2^0) / 0!) + ((e^-2.2 * 2.2^1) / 1!) + ((e^-2.2 * 2.2^2) / 2!)]
P(X > 2) = 1 - [(0.108 + 0.238 + 0.262)]
P(X > 2) = 0.392
Therefore, the probability of having more than 2 accidents in the next month is 0.392.
ii) Probability of having less than 4 accidents in the next month:
Let X be the number of airplane crashes in the next month. We want to find P(X < 4).
Using the Poisson distribution, we have:
P(X < 4) = P(X = 0) + P(X = 1) + P(X = 2) + P(X = 3)
Where P(X = k) = (e^-λ * λ^k) / k!
λ = 2.2 (monthly worldwide average number of airplane crashes of commercial airlines)
Substituting the values, we get:
P(X < 4) = ((e^-2.2 * 2.2^0) / 0!) + ((e^-2.2 * 2.2^1) / 1!) + ((e^-2.2 * 2.2^2) / 2!) + ((e^-2.2 * 2.2^3) / 3!)
P(X < 4) = 0.699
Therefore, the probability of having less than 4 accidents in the next month is 0.699.


4.In a certain examination mean of marks scored by 400 students is 45 and a standard deviation of 15.Assuming the distribution to be normal find
i) Number of students scoring marks between 30 and 60
ii) Number of students who scored marks more than 70
Solution : 
We are given that the distribution of marks is normal, with a mean of 45 and a standard deviation of 15.
Let's use the z-score formula to convert the given range of scores to z-scores:
z = (x - μ) / σ
where x is the score, μ is the mean, and σ is the standard deviation.
For the range of scores between 30 and 60:
z1 = (30 - 45) / 15 = -1
z2 = (60 - 45) / 15 = 1
Using a standard normal distribution table or calculator, we can find the proportion of the distribution that falls between z1 and z2:
P(-1 < z < 1) = 0.6827
Therefore, the number of students scoring marks between 30 and 60 is:
0.6827 * 400 ≈ 273
For the number of students who scored marks more than 70:
z = (70 - 45) / 15 = 1.67
Using the standard normal distribution table or calculator, we can find the proportion of the distribution that falls to the right of z:
P(z > 1.67) = 0.0475
Therefore, the number of students who scored marks more than 70 is:
0.0475 * 400 ≈ 19
Hence, the number of students scoring marks between 30 and 60 is approximately 273 and the number of students who scored marks more than 70 is approximately 19.



5.The length of life in years X of heavily used terminal in a student computer laboratory is exponentially distributed with mean =0.5 years. Write the PDF of the distribution and find the probability that the life of a computer terminal is at least 2 years
Solution
The PDF (Probability Density Function) of an exponential distribution with mean μ is given by:
f(x) = (1/μ) * exp(-x/μ), for x ≥ 0
where μ = 0.5 years is the mean life of a computer terminal.
So, the PDF of the distribution of the length of life in years X of heavily used terminal in a student computer laboratory is:
f(x) = (1/0.5) * exp(-x/0.5) = 2 * exp(-2x), for x ≥ 0
To find the probability that the life of a computer terminal is at least 2 years, we need to calculate:
P(X ≥ 2) = ∫2∞ f(x) dx
= ∫2∞ (2 * exp(-2x)) dx
= -exp(-2x) | 2∞
= exp(-4)
≈ 0.0183
Therefore, the probability that the life of a computer terminal is at least 2 years is approximately 0.0183 or 1.83%.

6.For the following probability distribution. Obtain i) P(X>2) ii) V(X)
X -2 -1 0 1 2 3    ,    P(X) 0.1 0.2 0.2 0.3 0.15 0.05
Solution : 
To obtain P(X>2), we need to add up the probabilities of all the values of X that are greater than 2:
P(X>2) = P(X=3) + P(X=2) = 0.15 + 0.05 = 0.2
Therefore, the probability of X being greater than 2 is 0.2.
ii) To obtain V(X), we need to use the formula:
V(X) = E(X^2) - [E(X)]^2
where E(X) is the expected value of X and E(X^2) is the expected value of X^2.
First, we calculate E(X):
E(X) = (-2)(0.1) + (-1)(0.2) + (0)(0.2) + (1)(0.3) + (2)(0.15) + (3)(0.05) = 0.4
Next, we calculate E(X^2):
E(X^2) = (-2)^2(0.1) + (-1)^2(0.2) + (0)^2(0.2) + (1)^2(0.3) + (2)^2(0.15) + (3)^2(0.05) = 1.7
Now we can substitute these values into the formula for V(X):
V(X) = E(X^2) - [E(X)]^2 = 1.7 - (0.4)^2 = 1.54
Therefore, the variance of X is 1.54.

7.In a factory 40% workers are skilled. A group of 5 workers is randomly selected from this factory. Find probability that a group consists of.
i) All skilled workers ii) At least 3 skilled workers.
Solution: 
i) To find the probability that all 5 workers are skilled, we need to find the probability of selecting 5 skilled workers from the total number of workers who are skilled.
Probability of selecting one skilled worker from the total number of workers = 0.4
Probability of selecting 5 skilled workers out of 5 workers = (0.4)^5
Therefore, the probability that all 5 workers are skilled = (0.4)^5 = 0.01024

ii) To find the probability that at least 3 workers are skilled, we need to find the probability of selecting 3 or 4 or 5 skilled workers from the total number of workers.

Probability of selecting three skilled workers out of 5 workers = (0.4)^3 x (0.6)^2 x 10 = 0.3456 where 10 is the number of ways of selecting 3 workers out of 5 workers.
Probability of selecting four skilled workers out of 5 workers = (0.4)^4 x (0.6)^1 x 5 = 0.0768
where 5 is the number of ways of selecting 4 workers out of 5 workers.
Probability of selecting five skilled workers out of 5 workers = (0.4)^5 x (0.6)^0 x 1 = 0.01024 where 1 is the number of ways of selecting 5 workers out of 5 workers.
Therefore, the probability that at least 3 workers are skilled = 0.3456 + 0.0768 + 0.01024 = 0.43264.
Hence, the probability that a group of 5 workers consists of all skilled workers is 0.01024 and the probability that a group of 5 workers consists of at least 3 skilled workers is 0.43264.


8.Fit a Binomial distribution to the following data
X 0 1 2 3 4 5
F 10 10 30 25 15 10
To fit a Binomial distribution, we need to know the number of trials and the probability of success for each trial. In this case, we don't have that information directly, but we can estimate it from the data.
Let's start by finding the total number of trials. We can do this by adding up the frequencies: n = 10 + 10 + 30 + 25 + 15 + 10 = 100
Next, we need to estimate the probability of success for each trial. Recall that the Binomial distribution represents the number of successes in a fixed number of trials, where each trial has the same probability of success. So, we need to think about what the "success" would be in this case. One way to approach this is to consider the distribution as a count of successes out of 5. For example, if we assume that the data represents the number of successes out of 5 trials, then we can estimate the probability of success as the mean number of successes divided by 5:
p = (110 + 230 + 325 + 415 + 510) / (5100) = 2.45/5 = 0.49
With these values, we can now fit a Binomial distribution to the data. The Binomial distribution with parameters n and p is given by:
P(X = k) = (n choose k) p^k (1-p)^(n-k)
where "n choose k" is the binomial coefficient.
Using our estimated values for n and p, we can compute the probabilities for each value of k:
k P(X = k)
0 0.00001024
1 0.00144900
2 0.02008114
3 0.13566406
4 0.35604104 
5 0.30875352
These probabilities represent the expected frequencies of each value of k, under the assumption that the data follows a Binomial distribution. We can compare these expected frequencies to the observed frequencies to see how well the distribution fits the data.







Tuesday, 28 February 2023

HTML SAMPLE SNAKE GAME CODE

HTML SAMPLE SNAKE GAME CODE
CODE : 

<!DOCTYPE html>
<html>
<head>
  <title></title>
  <style>
  html, body {
    height: 100%;
    margin: 0;
  }

  body {
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  canvas {
    border: 1px solid white;
  }
  </style>
</head>
<body>
<canvas width="400" height="400" id="game"></canvas>
<script>
var canvas = document.getElementById('game');
var context = canvas.getContext('2d');

var grid = 16;
var count = 0;
  
var snake = {
  x: 160,
  y: 160,
  
  // snake velocity. moves one grid length every frame in either the x or y direction
  dx: grid,
  dy: 0,
  
  // keep track of all grids the snake body occupies
  cells: [],
  
  // length of the snake. grows when eating an apple
  maxCells: 4
};
var apple = {
  x: 320,
  y: 320
};

// get random whole numbers in a specific range
// @see https://stackoverflow.com/a/1527820/2124254
function getRandomInt(min, max) {
  return Math.floor(Math.random() * (max - min)) + min;
}

// game loop
function loop() {
  requestAnimationFrame(loop);

  // slow game loop to 15 fps instead of 60 (60/15 = 4)
  if (++count < 4) {
    return;
  }

  count = 0;
  context.clearRect(0,0,canvas.width,canvas.height);

  // move snake by it's velocity
  snake.x += snake.dx;
  snake.y += snake.dy;

  // wrap snake position horizontally on edge of screen
  if (snake.x < 0) {
    snake.x = canvas.width - grid;
  }
  else if (snake.x >= canvas.width) {
    snake.x = 0;
  }
  
  // wrap snake position vertically on edge of screen
  if (snake.y < 0) {
    snake.y = canvas.height - grid;
  }
  else if (snake.y >= canvas.height) {
    snake.y = 0;
  }

  // keep track of where snake has been. front of the array is always the head
  snake.cells.unshift({x: snake.x, y: snake.y});

  // remove cells as we move away from them
  if (snake.cells.length > snake.maxCells) {
    snake.cells.pop();
  }

  // draw apple
  context.fillStyle = 'red';
  context.fillRect(apple.x, apple.y, grid-1, grid-1);

  // draw snake one cell at a time
  context.fillStyle = 'green';
  snake.cells.forEach(function(cell, index) {
    
    // drawing 1 px smaller than the grid creates a grid effect in the snake body so you can see how long it is
    context.fillRect(cell.x, cell.y, grid-1, grid-1);  

    // snake ate apple
    if (cell.x === apple.x && cell.y === apple.y) {
      snake.maxCells++;

      // canvas is 400x400 which is 25x25 grids 
      apple.x = getRandomInt(0, 25) * grid;
      apple.y = getRandomInt(0, 25) * grid;
    }

    // check collision with all cells after this one (modified bubble sort)
    for (var i = index + 1; i < snake.cells.length; i++) {
      
      // snake occupies same space as a body part. reset game
      if (cell.x === snake.cells[i].x && cell.y === snake.cells[i].y) {
        snake.x = 160;
        snake.y = 160;
        snake.cells = [];
        snake.maxCells = 4;
        snake.dx = grid;
        snake.dy = 0;

        apple.x = getRandomInt(0, 25) * grid;
        apple.y = getRandomInt(0, 25) * grid;
      }
    }
  });
}

// listen to keyboard events to move the snake
document.addEventListener('keydown', function(e) {
  // prevent snake from backtracking on itself by checking that it's 
  // not already moving on the same axis (pressing left while moving
  // left won't do anything, and pressing right while moving left
  // shouldn't let you collide with your own body)
  
  // left arrow key
  if (e.which === 37 && snake.dx === 0) {
    snake.dx = -grid;
    snake.dy = 0;
  }
  // up arrow key
  else if (e.which === 38 && snake.dy === 0) {
    snake.dy = -grid;
    snake.dx = 0;
  }
  // right arrow key
  else if (e.which === 39 && snake.dx === 0) {
    snake.dx = grid;
    snake.dy = 0;
  }
  // down arrow key
  else if (e.which === 40 && snake.dy === 0) {
    snake.dy = grid;
    snake.dx = 0;
  }
});

// start the game
requestAnimationFrame(loop);
</script>
</body>
</html>

Thursday, 23 February 2023

FYBSC IT ( SEM 2) IMP QUESTIONS WEB DEVELOPMENT

FYBSC IT  ( SEM 2) IMP QUESTIONS WEB DEVELOPMENT 

UNIT 1

What is WWW? Write difference between WWW and Internet.

List and explain different types of CSS selectors with example.

Write short note on Uniform Resource Locator.

Explain the following HTML tags with the help of example:

(i) < br> (ii)<pre> (iii) <h6> (iv) <p> (v) <a>

What is proxy server? Discuss its application with reference to internet.

Explain different types of lists available in HTML with the help of example

List and explain important applications of internet in brief.

Explain different approaches to style sheets.

Write a short note on internet address.

How hyperlinks are created in HTML? Explain with the help of an example.

What is search engine? Explain its working

What is internet? Explain any two applications of internet.

Write a short note on domain name server.

Write a short note on search engine.

Explain the structure of HTML5 file.

List different formatting tags. Explain with example any three of them.

List and explain different types of cascading style sheets.

UNIT 2

How to format and position a division on a web page? Explain with example

How will you create graphical navigation bar? Explain with example.

Explain <audio> and <video> tags in HTML 5.

Write HTML Code to design a web page with Image Maps.

List and explain any five HTML Form controls with example

What is image map? Write the difference between client-side and server-side

Image mapping.

Write the purpose of using: rowspan, colspan, cellspacing and cellpadding in Table

tag. Give example.

Write HTML code for embedding an audio and video in a web page.

Explain the semantic tags of HTML5.

Write HTML code to design a form to enter name of the user, his/her password,

and gender (radio button for male/female), hobbies (checkbox for

reading/singing/sports), favorite color (list box red/green/blue) and submit and reset button.

Explain <DIV> tag with the help of suitable example

Explain with example how text based navigation bar is created.

What is image map? Explain with example server side image map.

List various HTML5 semantic tags. Explain with example any four of them.

Explain following attributes of td tag:

i. rowspan ii. colspan iii. width iv. valign v. bgcolor

Write a HTML5 program to display college admission form.

List various tags used to embed audio in a page. Explain with example any two of them.

UNIT 3

Write a short note on “for…in” looping statement in JavaScript.

Write a program in JavaScript to accept a sentence from the user and display the number

of words in it. (Do not use split ( ) function).

Explain following events:

(i)onclick (ii) onfocus (iii) onmouseover (iv) onload (v) onerror

Write a JavaScript program using various methods of Date Object.

Write a short note on comparison and logical operators in JavaScript.

List various features of JavaScript

Differentiate between client side and server side JavaScript.

Write a JavaScript program to display all the prime numbers between 1 and 100.

List and explain the methods of string object of JavaScript.

Explain the following operators of JavaScript:

(i)                 new (ii) delete (iii) this (iv) void (v) ,(Comma)

Define events and event handlers. List various types of mouse event

Explain any five special operators of java script.

Write html code to display factorial of number entered by user.(use do while loop)

What is the purpose of break and continue statement. Give suitable example.

Explain regular expression in java script.

List different methods of document object. Explain with example any two of them.

Explain following event attributes:

i. onblur ii. onchange iii. ondblclick iv. onkeydown v. onmousedown

UNIT 4

What is PHP? Write the advantages of using PHP for server-side web scripting.

Write a PHP code to find the greater of two numbers. Accept the numbers from the user.

Explain any five string functions available in PHP with example.

What are the different methods available in PHP for passing the information from one page to another? Explain.

Write a short note on PHP data types.

Explain associative array in PHP with the help of example.

Write the difference between GET and POST methods in PHP.

Explain different types of arrays available in PHP.

Write a PHP program to demonstrate the use of different string functions.

Explain error handling in PHP.

Write a short note on variables in PHP.

Write a PHP program to create one dimensional array.

How PHP variables are used? Explain with example.

Write down the rules to determine the “truth” of any value not already of the Boolean type:

Explain doubly quoted strings in PHP. Give suitable example.

Explain the ternary operator with example.

Write the purpose of following string methods:

i. strcasecmp ii. strrpos iii. strstr iv. chop v. strtolower

List and explain functions for inspecting arrays.

UNIT 5

Explain following PHP/MYSQL functions:

(i) mysql_connect ( ) (ii) mysql_close ( ) (iii) mysql_query ( )

(iv) mysql_select_db ( ) (v) mysql_error ( )

Write a PHP program to demonstrate the use of cookies in PHP.

Compare POSIX and PERL style Regular expressions of PHP.

List various HTTP functions available in PHP. Explain header ( ) function in detail.

Write a PHP program to create a database named “employee”. Create a table named

“salary” with following fields (eid, ename, esalary). Insert 3 records of your choice.

Display the names of the employees whose salary is between 15000 to 20000 in a tabular format.

Write a short note on PHP Session.

What is a cookie? How to store and retrieve the values in cookie in PHP?

Explain any five PHP/MYSQL functions with example.

Write a PHP program to send email with attachment.

How to start and destroy a session and how to store a session variable in PHP?

Explain.

Write a short note on regular expressions in PHP.

Write a PHP code to create a database “Company” and to create a table

“Employee” (emp_id, emp_name,emp_dept,emp_salary)

Explain join with suitable example.

List various fetching functions. Explain with example any two of them.

List and explain function used to create database programmatically.

Write a PHP program to display boolean data from database on checks button.

Write down the use of following PHP-MySQL functions

mysql_affected_rows ii. mysql_data_seek iii. mysql_fetch_array

mysql_field_type v. mysql_insert_id

Explain following session functions:

i. session_register ii. session_is_registered iii. session_unset

iv. session_decode v. session_id