Answer:
public class Main
{
public static void main(String[] args) {
Main m=new Main();
System.out.println(m.mymath(true,5,2)); // calling the function mymath
}
public int mymath(boolean a,int b,int c) // mymath function definition
{
if(a==true)
{
int d=b+c;
return d;
}
else{int e=b-c;
return e;
}
}
}
Answer:
The output of this question is 21. As show in the image
The explanation is given in below
Explanation:
Let first write the question
C=1
sum = 0
while(C<10):
C=C+3
sum=sum + C
print(sum)
Now Focus on
while(C<10):
C=C+3
sum=sum + C
The value of C is initially 1
C=1+3
Sum= 0+4
In second loop the value of C will become 4
c=4+3
sum=4+7
In third loop the value of C will be 7
c=7+3
sum=11+10
so the answer is 11+10=21
Answer:
An example of effective communication is when the person who you are talking to listens actively and absorbs your point and understands it.
Explanation:
Hope this helps!!
Answer:
D) can access main memory at the same time as the main CPU
Explanation:
DMA is short for Direct Memory Access, these controllers allow the device to transfer data directly to and from the memory modules without interfering with CPU processes. Therefore it can access main memory at the same time as the main CPU. Thus freeing up CPU processing power for other tasks while also retrieving the data necessary.