In C++
What is the sections doing ? and
What is the output from the sections
below ?
a. int p=o;
for (int i=1; i<=30; i++){
if (i%5==0)
p+=i;
}
cout<<p<<endl;
b. int count=2;
int g=0;
while (count<=50){
g=count;
cout<<g<<endl;
count +=2;
}
cout<<count<<endl;
A particle moving in a straight line OX has a
displacement x from O at time t where x satisfies
the equation (d^2 x/(dt^2 )) + 2(dx/dt) + 3x = 0
the damping factor for the motion is
[A] e^(−1)
[B] e^(−2t)
[C] e^(−3t)
[D] e^(−5t)
Which one of the following sets of
vectors is a basis for R^2
[A] { ((1),((−2)) ) , (((−3)),(6) )}
[B] { ((1),(1) ) , ((2),(2) )}
[C] { ((2),(1) ) , ((0),(1) )}
[D] { ((1),(2) ) , ((4),(8) ) }