11. Assuming m = TRUE, n = FALSE, and k = TRUE, perform an evaluation on the declarations below and identify which decla
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
11. Assuming m = TRUE, n = FALSE, and k = TRUE, perform an evaluation on the declarations below and identify which decla
11. Assuming m = TRUE, n = FALSE, and k = TRUE, perform an evaluation on the declarations below and identify which declarations expressions value is TRUE: i. ii. !k | | (n || !m) (n && k) && !n (m n) && (!m == iii. == !k) A. i, ii, iii B. i and iii C. iii and ii D. None of the above 12. If the int variables x, y, and z contain the values 5, 6, and 21 respectively, and flag is false what is the value of the following logical expression? ! (x <= (y z) || !flag) * A. True B. False C. 125 D. 126 13. What is the output of the following code fragment assuming if nom is set to 20? if (nom==30) cout <<"durian"; cout <<"berry"; A. berry B. durianberry C. durian D. No output; compile-time error 14. After execution of the following code, what will be printed if a is 10? if (a =< 10) cout << "Similar"; else cout << "Not Similar"; A. Similar B. Not Similar C. No output printed; compile-time error D. No output printed; runtime-error
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!