Answer:
c. classification
Explanation:
In the given situation, since you want to know what attributes shared among the most loyal customers for this you want to use the data mining software that refers to convert the raw data into the useful information so that it could become meaningful for the organization
In order to know about the characteristics we have to use the classification so that we get to know the characteristics i.e shared among the trusted customers
Answer:
The explanation to this question is given below in the explanation section.
Explanation:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int score;
cout << "Enter Score: \n";
cin>>score;
if (score == 100)
//whether the value of the score variable is equal to 100
{
cout << "Perfect ";
//If so, it should print “Perfect”
}
else
{
cout << "Nice Try ";
}
}
<u>Answer:</u>
<em>Assuming that all the necessary declarations are made and given statements are only an extract, we can conclude that the given piece of code contains error. </em>
<u>Explanation:</u>
Let us analyze each one in order.
<em>count >0 </em> This statement is right if we match this with the <em>syntax of regular comparison operation</em>. Here count is an operand, “0” is the constant operand and these two operands are operated by the operator “>”.
when we take total / count >0 Here count>0 returns <em>Boolean and total is assumed to be an integer and an integer cannot be divided by a Boolean value. so it can be rectified as (total / count)>0.
</em>
Answer:
xyz = 25
result = square(xyz)
print(result)
The above code assigns the value 25 to variable xyz as 5*5=25. Then next statement is a function call to square() function passing xyz to this function in order to compute the square of 25. The output is:
625
Explanation:
The above code can also be written as:
xyz = 5*5
result = square(xyz)
print(result)
The difference is that xyz is assiged 5*5 which is equal to 25 so the output produced will be the same i.e. 625.
The result variable is used to store the value of square of 25 after the square() method computes and returns the square of 25. So print(result) prints the resultant value stored in the result variable i.e. 625