Answer:
a=4 , b=1
Explanation:
I'm not a computer science major at all but I think I can help you with this code.
Our program wants us to add 2 to a get new a value while also subtracting 1 from b value to obtain new b value. We we want to for for as long b is not 0 and a/b is nonnegative.
One round we get:
New a=0+2=2
New b=3-1=2
Let's see if we can go another round:
New a=2+2=4
New b=2-1=1
We can't go another round because b would be negative while a is positive which would make a/b negative. So our loop stops at this 2nd round.
a=4 , b=1
Other notes:
2nd choice makes no sense because a is always going to increase because of the addition on a and b was going to decrease because of the subtraction on it.
Third choice makes no sense because a/b doesn't even exist.
Fourth choice a/b is negative not nonnegative.
You need answers to the question
Answer:
c)Banana * daco;
Explanation:
To declare an variable pointer we use * symbol after writing it's type.For example int *.Then we write the name of the variable since the name of the variable is daco.The class is a user defined data type so instead of writing any data type we will write class name then the * then name of the variable.
Banana * daco; which matches the option c Banana* daco;
Explanation:
if(more than three hours left)
{
study web-development;
}
else
{
practice coding;
}
I have taken an real life example and present it as if-else statements.
If I have more than 3 hours free in a day.Then I should study web-development.
If i don't have more than 3 hours free in a day then I should practice coding.
Branches are the statements within the {} curly braces.In our case these are:-
study web-development;
practice coding;
Answer:
if i remember correctly that button is used to short cut tabs or do something with the current page