Which of the following is the solution to the inequality 2x + 5 > 10?
What will be the output of the following code?
#include <iostream>
using namespace std;
int main() {
int x = 5;
x += 3;
cout << x << endl;
return 0;
}
What will be the output of the following code?
#include <iostream>
using namespace std;
int main() {
int x = 7;
x *= 2;
cout << x << endl;
return 0;
}
What will be the output of the following code?
#include <iostream>
using namespace std;
int main() {
int x = 10;
int y = 3;
cout << x % y << endl;
return 0;
}
What will be the output of the following code?
#include <iostream>
using namespace std;
int main() {
int x = 15;
int y = 2;
cout << x / y << endl;
return 0;
}
Consider the following code snippet:
#include <iostream>
using namespace std;
int main() {
int n = 9;
int sum = 0;
for (int i = 1; i <= n; i++) {
if (n % i == 0) {
sum += i;
}
}
cout << sum << endl;
return 0;
}
What will be the output of the code?
Which of the following is the correct expanded form of the expression (a + b)2?
Simplify the expression: (3x - 5) / (2x + 1) - (x + 4) / (2x + 1)