Quiz

Let's solve a quiz to see where you stand!

We'll cover the following...
Technical Quiz
1.

What is the output of the code given below?

int main() {
  int cost_price = 1000;
  int sale_price = 5000;
  int profit;
  profit = sale_price - cost_price;
  if (profit > 0) {
    cout << "You have made a profit";
  } else {
    cout << "You have not made a profit";
  }
}
    
A.

You have made a profit

You have not made a profit

B.

You have not made a profit

You have made a profit

C.

You have not made a profit

D.

You have made a profit


1 / 7

🎉Congratulations! You ...