You need to provide "the following", otherwise other users cannot answer your question.
However, the Java operator for "not equal to" is "!=".
// For example.
if (1 != 2) {
System.out.println("1 doesn't equal 2");
}
The if-statement in the code above will always run, since 1 is not equal to 2.
Answer:
Following are the code to this question:
#include<iostream>//defining header file
using namespace std;
int main()//defining main method
{
bool a = true;//defining bool variable that holds true value
bool b = false;//defining bool variable that holds false value
cout<<a+b<<endl;//using print method to add bool value
cout<<a-b<<endl;//using print method to subtract bool value
cout<<a*b<<endl;//using print method to multiply bool value
return 0;
}
Output:
1
1
0
Explanation:
In this code, Firstly we import the header file, and in the next step, the main method is defined, in this, two bool variable "a, b" is declared, that holds true and false value respectively, and in the next step, three print method is declared that adds, subtract, and multiply the given value and use print its calculated value.
Answer:
Option A, initiative
Explanation:
Initiation is an art of performing an act or task by self motivation rather on command or instruction from anyone.
Insubordination is incorrect as here there is no mentioning of disobeying seniors or authority
Also, courage and power means having strength to perform any task. Here action is performed without any instruction and it in no sense signifies a brave deed.
Hence, option A is correct
Answer:
The value is always zero
.
Explanation:
If both have different values
a = 10, b = 20
As
xp = xp+yp so
xp = 30
yp =20
As
yp = xp-yp
so xp=30
yp=10
Now
xp = xp-yp = 20
so we can conclude that both a and b have been interchanged.
if both direct to same object
then
xp = xp+yp
so xp = 40
yp =40
Now
yp = xp-yp
so xp=0
yp=0
and
xp = xp-yp = 20
The fetch decode execute cycle is the basic operational process of a computer system.