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:
Push Z
Push Y
Pop Y
Push X
Pop X
Push W
Push V
Pop V
Push U
Pop U
Pop W
Pop Z
Push T
Push S
Pop S
Push R
Pop R
Pop T
Explanation:
A stack is a term in computer science that defines an abstract data type that acts as a collection of elements. It has two operations which are mainly push and pop.
Push is used in adding elements to the collection, while pop is used in removing elements from the collection.
If the element A has been pushed to the stack, you check if the top element in the pop[] sequence is A or not.
If it is A, you then pop it right, else top of the push[] sequence will be changed and make the sequences invalid.
So, similarly do the same for all the elements and check if the stack is empty or not in the last.
If empty you then print True else print False.
If the language is zero indexed:
a[ 33 ]
Answer:
B. Computer Repair
Explanation:
I got it right on edge. trust.
Answer:
The correct answer for the given question is "Computer virus"
Explanation:
A computer virus is a software program that is installed automatically without user's knowledge and designed to duplicate itself .The main purpose of computer virus is to harm the computer system.
Some of the points regarding computer virus
1.The computer virus contain malicious software Which harm the computer system.
2.It damage the computer computer system in such away that sometimes users will unable to access some certain functionality of computer system.