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

 


Monday, 20 February 2023

जर मी शिक्षक झालो तर मराठी निबंध

 

जर मी शिक्षक झालो तर मराठी निबंध

(१०० शब्दात)

मला लहानपणा पासूनच शिक्षक व्हायला खुप खुप आवडते त्यामुळे मी जर शिक्षक झालो तर प्रत्येक विद्यार्थाला खूप आत्मयतेने शिकवण्याचा प्रयत्न करेन. मी शिक्षक बने पर्यंत जो काही ज्ञानाचा साठा मी कमावेल त्यातील कण कण मी विद्यार्त्यापर्यंत कसा पोहचेल यासाठी प्रयत्न करेल.

मी विद्यार्थांना चांगली शिकवण देईल, त्यांना चांगली शिस्त लावेल, वडीलधाऱ्या माणसांचा आदर करायला शिकवेल त्यांच्यावर उत्तम असे संस्कार करेल. जे की त्यांना भावी आयुष्यात एक आदर्श नागरिक होण्यासाठी मदत करतील.

जर मी शिक्षक झालो तर प्रत्येक विद्यार्थ्यास शिक्षणाची समान संधी देईल. सर्वांना सारखेच शिक्षण देईल, कोणत्याही विद्यार्त्याचा तिरस्कार करणार नाही. मी प्रत्येक विद्यार्थाला असे शिक्षण देईल की तो भविष्यात कुठे नोकरीला जरी नाही लागला तरी तो आपल्या देशाचा एक आदर्श नागरिक मात्र नक्कीच बनेल.

Friday, 17 February 2023

FYBSC IT ( SEM 2) IMP QUESTIONS GREEN COMPUTING

FYBSC IT ( SEM 2) IMP QUESTIONS GREEN COMPUTING 

UNIT 1

What are the steps involved for Measuring of carbon footprint?

What is carbon footprint? Briefly explain how to compute company’s carbon footprint?

How hardware deployments can affect the environment?

Write a note on Equipment Disposal.

What are the steps taken by JAPAN for managing their own e-waste problem?

What are the Basel Action Network functions?

Write a short note on Basel Action Network.

Explain any five e-waste laws of states in US.

List and explain the various toxins present in computer systems.

Discuss about cost saving in power consumption by desktops and data centres.

Write a short note on United Nation’s solving the E-waste Problem (Step).

Discuss the European Union’s e-waste management WEEE and its RoHs directives.

Explain how green computing effect on cost saving.

How hardware deployments can affect the environment?

Mention the steps taken by CHINA in managing their own e-waste problem?

What StEP stands for? Explain objectives of StEP

What is Green IT? What are motives behind Green IT practices?

Write down the advantages of reusing equipment?

Write a short note on RoHS.

UNIT 2 

Write a note on Data De-Duplication and Virtualization.

Explain MAID and RAID.

What is polling? Give example.

List and explain the issues regarding power consumption and cooling costs.

Explain Hot Aisle (path)/Cold Aisle and Raised Floors.

List and explain datacentres design and decision making issues

Explain the features and hardware specification of NORHTEC and EXCITO.

How can you minimize excessive power output from wireless devices?

Explain the ways of reducing power consumption in storage.

How to calculate cooling requirement of a system? Explain using suitable example.

Write a note on cooling optimization by data centre design.

Explain any two best practices that can help optimize the airflow around servers

How computer monitor settings save energy?

How to achieve proper humidity levels?

How to prevent Recirculation of Equipment Exhaust?

State the advantages of custom centralized air-handling system.

Explain any two ways to reduce power usage

Explain any two low cost devices for checking power on workstations

What is economizer? What are its different types? Explain any one.

Explain how cooling needs are calculated.

What are different ways to optimize the airflow around servers and networking?

Equipment? Explain any two of them

UNIT 3

List and explain decision making pyramid with its levels.

Which things are necessary for environmentally preferable purchasing plan?

How to find out which products have low levels of toxins?

Which things are needed to go paperless in organization?

What is the use of Microsoft Office SharePoint Server 2007? List its features.

What is Value Added Network? Give its benefits.

Briefly explain steps in setting up a telecommuting program.

Write a note on Environmentally Preferable Purchasing Plan.

List the tips to keep water usage under control. List the issues to prevent wasted water.

Write a short note on intranet.

What is Microsoft Office SharePoint Server 2007?

What are the advantages and obstacles in using EDI in an organization?

What are the ways to control the use of water in organisation?

Which things are necessary for evaluating suppliers for their level of environmental responsibility?

Describe intranet? How to build it?

What is Telecommuting? Explain in brief.

Which things are needed to go paperless in organization?

Write a note on PDA and Tablet PC.

What are different issues that should be considered to know your supplier?

How the issue of CO2 emission is dealt with at different levels of the decision making pyramid.

What are different monitoring ideas?

Write down different reasons for using PDF for paperless documentation.

What is intranet? What are different components that are required for building intranet?

What is EDI? Write down advantages and problems of EDI.

UNIT 4

Explain the recycling problems in China and Africa.

How to determine the system’s long life?

Which are benefits to leasing the equipment?

Write a short note on Electronic Product Environmental Assessment Tool (EPEAT) certification.

What is Blade server? Give its benefits.

What is the use of Remote Desktop? Explain its components.

What is refurbishing? What is commercial and non-commercial refurbishing?

Briefly explain the phases of a computer product’s life cycle.

How to clean a hard drive?

Write a note on energy star program for computers.

Explain benefits and features of blade server.

How to configure a remote desktop server?

List various ways to clean a hard drive. Explain any two.

Write a short note on refurbishing.

Give advantages and disadvantages of buying equipment’s.

Explain how remote desktop server is configured.

Explain Restriction of Hazardous Substances certification.

Define and explain the terms packaging and Toxins with respect to Hardware Considerations.

UNIT 5

How CRM segregate the people of organization in group?

What are the steps involved for good green procurement program?

Explain characteristics of Software as a Service.

Explain transitioning four-step process.

Write a note on SMART goals.

Which steps are involved to conduct energy audit?

How BI tools and MS SQL Server are useful in order to measure and track data?

Write a note on Customer Relationship Management. Explain its technology components.

What is Green Procurement?

Write a note on SMART Goals.

Explain the role of Chief Green Officer?

What is baseline data, benchmarking and data analysis in equipment check-up.

List and explain tools used for measuring and tracking our data.

What is the difference between Application Service Providers and Software as a Service?

Which area needs to be updated in organization to reduce the amount of waste?

Explain characteristics of Software as a Service.

Describe the work of Chief Green Officer.

List and explain key strategies to review action plan.

Tuesday, 14 February 2023

FYBSC IT ( SEM 2 ) IMPORTANT QUESTIONS C++

FYBSC IT ( SEM 2  ) C ++

IMPORTANT QUESTIONS 

UNIT 1 

What is procedure oriented Programming? What are its characteristics?

Differentiate between Object Oriented and Procedure & Oriented Programming

Paradigms.

Discuss procedure oriented programming paradigm. Also discuss its characteristics.

What is object oriented programming paradigm? Discuss its characteristics.

Discuss the need and advantages of Object Oriented Programming.

Discuss various applications of Object Oriented Programming.

What do you mean by Dynamic and static binding.

Write a short notes on (i) Object (ii) Class

Define any two of the following

(i) Classes (ii) Objects (iii) Data abstraction

Discuss benefits and applications of oops.

Write a short note on data abstraction and data encapsulation

Write down advantages and disadvantages of procedure oriented language.

Explain object oriented development.

Write down benefits of using object oriented programming.

Write a short note on Data abstraction and data encapsulation.

Explain dynamic binding with example. Give proper example.

What is inheritance? Explain with example the concept of multiple inheritances

UNIT 2 

What is a class? Illustrate the use of class with a simple c++ program.

What are inline functions? How an outside function can be made inline?

What is a constructor? Explain its characteristics. List various types of constructors?

What are friend functions? What are their characteristics? Write a small program to

Illustrate the use of a friend function.

Explain the use of parameterized constructors with a programming example.

What do you understand from nesting of member functions? Explain with suitable programming example

What is friend function? Write a friend function to display mark sheet of the F. Y. B.Sc. IT student.

What is class? Explain with example how objects are passed as argument to member function and objects are returned from member function.

What is inline function? Explain with example.

What is use of constructor? Explain with example parameterized constructor.

Write a C++ program to demonstrate the use of constructor and destructor.

What are objects? How they can be declared? Also discuss memory allocation for objects in object oriented programming

How data members and member functions of a class can be accessed. Write a program to demonstrate the concept of accessing public members of a class.

What is a constructor? List various types of constructors. Explain copy constructor

What is a friend function? How it can be declared? What are its characteristics?

What is Member function ? explain the nesting of member functions 


UNIT 3

What is function overloading? Explain with suitable example.

What is operator overloading? List the operators which can be overloaded and which cannot be overloaded.

Write a c++ program to overload unary minus operator.

What are virtual functions? Explain.

Define the following

(i) Abstract Class (ii) Pure Virtual Function

What is a pointer? Write a program to illustrate its use

What is operator overloading? Write down the rules for operator overloading.

How binary operators are overloaded? Write a C++ program to overload binary operator +.

What is method overriding? Explain with example.

Explain with example abstract class.

Explain virtual destructor. Give suitable example

What is this pointer? Write a C++ program to demonstrate use of this pointer.

What are virtual functions? What are the rules for writing virtual functions?

UNIT 4

What do you understand from the concept of inheritance? Explain its various types.

Explain the use of various visibility modes used in inheritance.

Discuss the role of constructors in derived classes in detail.

What is an exception? What are advantages of exception handling mechanism in a

Program?

Explain the concept of throw and catch with suitable example.

Write a c++ program to illustrate multilevel inheritance.

Can private members of a base class are inheritable? Justify.

Explain with example multilevel inheritance.

Explain how a base class is derived in public and private mode.

What is exception? Explain exceptions handling mechanism?

What happen when raised exception is not caught by catch block? Explain with suitable example.

UNIT 5

What are class templates? Explain their use. How a class template can be declared?

Explain function template with a programming example.

Write a c++ program to implement bubble sort using function template.

Explain the working of files in c++.

Explain various methods to detect end of file in a c++ program.

Explain the following (i) seekg() (ii) seekp()

Explain with example how function templates are used.

Explain how compiler calls to a class and function template.

Write a C++ program which defines and uses student class template.

What is file? Write down the steps for manipulating files in C++.

Explain the hierarchy of file stream class.

What are different methods of opening a file? Write a program to open file and enter student details into the file using any method.

Explain various methods to detect end of file.

Write a program to open two files country and capital simultaneously and print the Name of the capital in front of the country.

Explain the use and purpose of following functions

(i) seekg() and seekp()

(ii) tellg() and tellp()

What are class templates? Explain their use. How they can be declared?

Define a class named vector. Illustrate the use of vector class template for performing the scalar product of int type vectors as well as float type vectors.

What is a function template? Write a C++ program to demonstrate the use of function templates?