Podcast
Questions and Answers
What does the expression 6 + 4 / 2 evaluate to?
What does the expression 6 + 4 / 2 evaluate to?
- 5.0
- 8 (correct)
- 6
- 4
If a = 1.0, b = 2.0, c = 3.0, and d = 4.0, what is the result of the expression 1.0 - 2.0 / 3.0 * 4.0?
If a = 1.0, b = 2.0, c = 3.0, and d = 4.0, what is the result of the expression 1.0 - 2.0 / 3.0 * 4.0?
- -0.666666
- -2.333333
- -1.0
- -1.666666 (correct)
What is the final value of N when N = 10 / 3 is executed?
What is the final value of N when N = 10 / 3 is executed?
- 2.666666
- 3.333333
- 3 (correct)
- 4
In the expression 10 / (3 * 3), what is the final evaluated result?
In the expression 10 / (3 * 3), what is the final evaluated result?
Given X = 10 / 3 and Y = 10 / 3.0, what is the difference between X and Y?
Given X = 10 / 3 and Y = 10 / 3.0, what is the difference between X and Y?
What is the output of the expression 6 + 4 ) / 2?
What is the output of the expression 6 + 4 ) / 2?
Which of the following operators is used to determine the size of a variable?
Which of the following operators is used to determine the size of a variable?
What is the output of the following code: int x = 5; printf("%d", sizeof(x++));
What is the output of the following code: int x = 5; printf("%d", sizeof(x++));
Given that i = 3, j = 6, and k = 9, what is the value of the expression (j == 6) && (k != 9)?
Given that i = 3, j = 6, and k = 9, what is the value of the expression (j == 6) && (k != 9)?
Which of the following operators has the highest precedence?
Which of the following operators has the highest precedence?
If i = 5 and j = 10, what is the value of the expression (i > 3) ? i++ : j++?
If i = 5 and j = 10, what is the value of the expression (i > 3) ? i++ : j++?
Which of the following expressions is equivalent to (x != y) && (x > 0) && (y < 0)?
Which of the following expressions is equivalent to (x != y) && (x > 0) && (y < 0)?
What is the value of x after the following code executes? int x = 5; x++;
What is the value of x after the following code executes? int x = 5; x++;
What is the output of the following code? int x = 3; printf("%d", ++x * x++);
What is the output of the following code? int x = 3; printf("%d", ++x * x++);
What is the value of the expression sizeof(int) * sizeof(char)?
What is the value of the expression sizeof(int) * sizeof(char)?
What is the output of the following code? int x = 5, y = 10; printf("%d", x-- - ++y);
What is the output of the following code? int x = 5, y = 10; printf("%d", x-- - ++y);
Which of the following is a valid use of the sizeof operator?
Which of the following is a valid use of the sizeof operator?
What is the value of x after the following code executes? int x = 10; x = x++ + ++x;
What is the value of x after the following code executes? int x = 10; x = x++ + ++x;