I think it's b because "end application" would make the most sence
You can insert a text box ~ wubba lubba dub dub!
Answer:
Option d is the correct answer for the above question.
Explanation:
- The first loop of the program has a second loop and then the statement. In this scenario, the second loop executes for the value of the first loop and the statement executes for the value of the second loop.
- The first loop executes 4 times, Then the second loop or inner loop executes n times for the n iteration of the first loop, for example, 1 time for the first iteration of the first loop, 2 times for the second iteration of the first loop and so on.
- Then the inner loop executes (1+2+3+4) iteration which gives the result 10 iterations.
- The sum initial value is 0 and the "sum++", increase the value of the sum by 1.
- So the value of the sum becomes 10 after completing 10 iterations of the inner for loop.
- Hence the 10 will be the output. So the Option d is the correct answer while the other is not.
Answer:
The answer is "Always true
"
Explanation:
Following are the program to this question:
#include <iostream>//header file
using namespace std;
int main()//main method
{
bool x=true;//defining bool variable x and assign value
bool y=false;//defining bool variable y and assign value
if(!(x || y) || (x || y))//use given condition with if block
{
cout<<"True";//print true message
}
else//defining else block
{
cout<<"false";//print false message
}
return 0;
}
In the above code two bool variable is declared, that hold ture and false, and used in the given expression with the condition statement, that checks the given value. In the code the logical gate OR gate that always print the true value.
I think the answer is A. The classroom is a place for learning not for making phone calls