What will be the output of following program? Justify your answer.
#include<stdio.h>
void main()
{
int a,b,c;
a=9;
b=10;
c=(b<a||b>a);
printf(“\n c=%d”,c);
}
What will be the output of following program? Justify your answer.
#include<stdio.h>
void main()
{
int k=8,b;
b=(k++-k++-k++-k++);
printf(“\n b=%d”,b);
}
What will be the output of following program? Justify your answer.
#include<stdio.h>
void main()
{
int x,y,z;
y=2;
x=2;
x=2*(y++);
z=2*(++y);
printf(“\n x=%d y=%d z=%d”,x,y,z);
}
What will be the output of following program? Justify your answer.
#include<stdio.h>
void main()
{
int m,j=3,k;
m=2*j/2;
k=2*(j/2);
printf(“\n m=%d k=%d”,m,k);
}
what will be the mass of a certain gas if it subjected to a 6 meter diameter pressurized cylindrical container at 40 degree celcius and 110 kpa the gas is initially measured from its standard temperature and pressure which calculated its density to be 4 kg/m^3 the height of the container is 6 meters
Find the area of the region enclosed by the curve x=y-3 and the line x = y 4
𝑠=𝑢𝑡+12𝑎𝑡2 𝑒𝑞(1) The tasks are to:
a) Plot a graph of distance (s) vs time (t) for the first 10s of motion if 𝑢=10𝑚𝑠−1 and 𝑎=5𝑚𝑠−2.
b) Find the gradient of the graph at 𝑡=2𝑠 and 𝑡=6𝑠.
c) Differentiate the equation to find the functions for i) Velocity (𝑣=𝑑𝑠𝑑𝑡) ii) Acceleration (𝑎=𝑑𝑣𝑑𝑡=𝑑2𝑠𝑑𝑡2)
A tank initially contains 50 gal of fresh water. At t = 0, brine solution containing 2 lb of salt per gallon is poured into the tank at the rate of 12 gal/min, while the well stirred mixture leaves the tank at the rate of 8 gal/min. What is the amount of the salt at the end of minutes? How long it will take to obtain an amount of 50 lb?
An object has a mass of 2 kg is dropped from the top of building 30 meters tall. The initial velocity is zero. As it falls, the object encounters air resistance that is equal to 1/3 v. What is the velocity and altitude of the object after 1.5 seconds?
It has been known that a fixed dose of a certain drug results to an
average increase of pulse rate by at least 12 beats per minute with
a standard deviation of 5. A group of 20 patients given the same
dose showed the following increases: 15, 12, 10, 8, 14, 15, 16, 11,
7, 13, 9, 10, 12, 11, 9, 10, 17, 14, 15, 7. Is there proof to show that
this group has a lower average increase of pulse rate than the ones
in general? Use 0.05 level of significance