Answer:
a)
#include <iostream>
using namespace std;
int main() {
bool a,b,c;
cin>>a>>b;
if(a^b)//X-OR operator in C++.
c=true;
else
c=false;
cout<<c;
return 0;
}
b)
#include <iostream>
using namespace std;
int main() {
bool a,b,c,d;
cin>>a>>b>>c;
if((a^b)^c)//X-OR operator in C++.
d=true;
else
d=false;
cout<<d;
return 0;
}
Explanation:
The above written programs are in C++.There is an operator (^) called X-OR operator in C++.It returns true if the number of 1's are odd and returns false if the number of 1's are even.
In the if statement I have user X-OR operator(^) to find the result and storing the result in another boolean variable in both the questions.
Answer:
The answer is "Option C"
Explanation:
Base heights are related to it as measurements of height or z-values as they are extracted by mathematics which serves to define the ground of that same world. Once applying a datatype, it can be any entire amount, that will become the level of the function in meters beyond the ground, and wrong choices can be described as follows:
- In option A, It is a part of extra dimensions object, that's why it is wrong.
- In option B, It wrong because the offset tool allows the quick and easy offsetting of the lines.
- In option D, It emphasizes the recovery charts, that's why it is incorrect.
Answer:
public class TextMessage
{
private String message;
private String sender;
private String receiver;
public TextMessage(String from, String to, String theMessage)
{
sender = from;
receiver = to;
message = theMessage;
}
public String toString()
{
return sender + " texted " + receiver + ": " + message;
}
}
Answer:
Cloud is the correct answer for the above question.
Explanation:
Missing Information:
The option is missing in the question and the question suggests to choice. The option can be liberated, cloud, disperse, digital for this question in which cloud is the correct answer.
Detailed Explanation:
- The cloud is used to store a large amount of data or information for varies users and anyone can store or modify or delete the information from anywhere.
- This service takes money from the user and gives service to modify, edit or add the data from anywhere using the internet. When a user wants to take the service of the cloud then he needs to contact the cloud service provider, then pays money to them and then he can enjoy the service.
- The above question wants to ask about the term which is a vast environment of databases that provide access to the users to store and mane the data and that is the cloud which is the correct answer for the above question.