What is the value of v1 at LINE1 ?
v1,sum=3;
for ( i=2;i>=2;i--){
for (j=1;j<=1;j++)
sum=sum*j;
LINE1:
v1=sum;
v1=sum+i;
}// for i
| a. |
6 |
|
| b. |
4 |
|
| c. |
3 |
|
| d. |
None of the above |
What is the value of v1 at LINE1 ? v1,sum=3; for ( i=2;i>=2;i--){ ...
1. if x=3 then x*=2 evaluates to a. 6 b. 5 c. 2 d. none of the above 2. if x = 2 then the command j = i++ assigns the value to j of a. 3 b. 2 c. 4 d. none of the above
Induction proofs. a. Prove by induction: n sum i^3 = [n^2][(n+1)^2]/4 i=1 Note: sum is intended to be the summation symbol, and ^ means what follows is an exponent b. Prove by induction: n^2 - n is even for any n >= 1 10 points 6) Given: T(1) = 2 T(N) = T(N-1) + 3, N>1 What would the value of T(10) be? 7) For the problem above, is there a formula I could use that could directly calculate T(N)?...
1) What is the value for the van't Hoff factor (i) for Zn(NO:)? a) i = 1 b) i - 2 di-4 e)i>4 2) Which of the following makes formation of a solution from two pure chemical substances more likely to occur? a) If randomness increases when a solution forms b) If energy decreases when a solution forms c) If energy increases when a solution forms d) Botha and be e) Both a and 3) For a chemical reaction to...
Two dice were rolled. Answer the questions: I) What is the probability that the first die will have a number that is a multiple of 2 as the outcome? (10 points) a. 1/2 b. 1/5 c. 1/6 d. 1/36 e. None of the above II) What is the probability that the first die will have “a number less than 4” as the outcome? (10 points) a. 1/5 b. 1/3 c. 1/6 d. 1/36 e. None of the above III) What...
Question 1 What is the resultant sum of the voltages V1= 100V Z 0° and V2 = 100 V Z 300 ? a. 186.6 V 2150 b. 2001 30° C. 193.2V 2 15° d. 240V Z 30°V
What is the output of the following codes? Line1: public class ArrayCompare { Line2: public static void main (String[] args) { Line 3: int arrill {1, 2, 3}; Line 4: int arr2[1 {1, 2, 3}; Line5: if (arri == arr2) Line 6: System.out.println("Same"); Line: else Line 8: System.out.println("Not game"); Line9 : Line10:) حسین Same Not same
, > 1 Let f(3) = 3 J , where a is real. What value of a will make f continuous at 2 = 1? -+a, I <1 Select one: a. 2 b. 1 o co a d.-1 D e. None of the these
a. What is the numerical value of velocity V1?
b. What is the numerical value of velocity V2?
c. what is the value of manometer reading h?
d. What formula can be used to determine h?
Water flows steadily through a pipe reducer in the absence of significant friction as shown in the figure. The static pres- sures at (1) and (2) are measured by the inverted U-tube ma- nometer containing oil of specific gravity SG = 0.876. The volume...
1.
2.
3.
(a) In unit-vector notation, what is the sum of a - ! 3.4 m ji + 2.1 m |j and b-Ί-14.0 m i + 17.9 m |j . what are (b) the magnitude and (c) the direction of a + b (relative to i )? (a) Number Units (b) Number Units (c) Number Units The two vectors a and b in the figure have equal magnitudes of 11.9 m and the angles are θ,-30° and θ2-1060. Find...
ILS thE Sum of 3- m divided by the quantity m 4. (8 Points) Consider the following fragment and determine its output: #include <iostream> #include <string> using namespace std: Assume the function prototype is given int main() int í. 4, j 6, k = 9; string st "abcde fghijklmnopgrstuvwxyz" cout << st.find ("abcdef") <<"* func (i, i, k) 13-3 1: -5 cout << st[?] << endl; // OMG..what does this do? ???? return 0 ) I end of main program...