Given, a = 3, r = 1/2, n = 10
%r is common ratio
%n is number of terms
%a is the first term of the series
Sum = 0;
a = 3;
r = 1/2;
for i = 0 : 1 : 10;
Sum = Sum + a * r ^ i;
end
Sum
Answer:
d) y=x++
Explanation:
In all 3 statements:
y= ++x;
y=x=5;
y=5;
The value of y is equal to 5.
However in the statement y=x++, the value of 5 is equal to value of x prior to the increment operation. The original value of x was 4. So the value of y will be 4. Note that after the statement execution, the value of x will be updated to 5. In effect y=x++ can be visualized as a sequence of following steps:
x=4;
y=x;
x=x+1;
Answer:
Physical security
Explanation:
The computers that run the DBMS and all devices that store database data should reside in locked, controlled-access facilities. This is done to physical security. stop SQL injection attacks prevent unauthorized encryption provide physical security prevent email spoofing prevent brute force attacks
Answer:
48.3
Explanation:
double [] a = {12.5, 48.3, 65.0}; This line creates the array a, which has three values, those three values can be accesed with the index operator, [].
System.out.println(a[1]); This line prints in the console the value in the array a in the second position, in Java the index inside arrays starts from zero, then puts a new line.
Answer:
False.
Explanation:
Computer-aided design is the use of computers to aid in the creation, modification, analysis, or optimization of a design. Computer-aided design is also referred to as the CAD software. CAD would not mean computer aided manufacturing because the last word (manufacturing) starts with an M, not a D.