FINAL EXAM QUESTION 01 (2 points possible) Which of the following is / are primitive data types in Java? (1) int double = 2; (2) int double1 = 1.0; (3) int 1_plus_3 = 4; (4) int one-minus-two;
FINAL EXAM QUESTION 01 (2 points possible) Which of the following is / are primitive data types in Java? (1) int double = 2; (2) int double1 = 1.0; (3) int 1_plus_3 = 4; (4) int one-minus-two;
FINAL EXAM QUESTION 01 (2 points possible) Which of the following is / are primitive data types in Java? (1) int double = 2; (2) int double1 = 1.0; (3) int 1_plus_3 = 4; (4) int one-minus-two;
Grading Scheme (/courses/HKUSTx/COMP102x/2T2014/9a8d1d1df5c14062b0544272f291288b/) Resources (/courses/HKUSTx/COMP102x/2T2014/e1ac0d84b6a946278c98e4636a6f830f/) Discussion (/courses/HKUSTx/COMP102x/2T2014/discussion/forum) Progress (/courses/HKUSTx/COMP102x/2T2014/progress) (1), (2), and (3) only (1), (3), and (4) only (1) and (3) only (4) only All of the them (1) only (2) only (3) only (4) only None of them 1 2 FINAL EXAM QUESTION 01 (2 points possible) Which of the following is/are primitive data types in Java? (1)int (2)bytes (3)char (4)String You have used 1 of 1 submissions FINAL EXAM QUESTION 02 (2 points possible) Which of the following statement is/are legal in Java? (1)int double = 2; (2)int double1 = 1.0; (3)int 1_plus_3 = 4; (4)int one-minus-two; You have used 1 of 1 submissions FINAL EXAM QUESTION 03 (2/2 points) What is the result of the following expression? 3 %2 * 2 + 3 * - 1 / 3 HKUSTx: COMP102x Introduction to Computing with Java (https://www.edx.org) david_ospina (/dashboard) Pgina 1 de 3 Final Exam Question 01 | Final Exam | COMP102x Courseware | edX 27/08/2014 https://courses.edx.org/courses/HKUSTx/COMP102x/2T2014/courseware/1020d90b1741... About (https://www.edx.org/about-us) Jobs (https://www.edx.org/jobs) Press (https://www.edx.org/press) FAQ (https://www.edx.org/student-faq) Contact (https://www.edx.org/contact) EdX is a non-profit created by founding partners Harvard and MIT whose mission is to bring the best of higher education to students of all ages anywhere in the world, wherever there is Internet access. EdX's free online MOOCs are interactive and subjects include computer science, public health, and artificial intelligence. 3 4 Error 2 3 4 5 None of above (1) and (2) only (1) and (3) only (2) and (3) only (1), (2), and (3) None of them You have used 1 of 1 submissions FINAL EXAM QUESTION 04 (2/2 points) What is the value of variable z after executing the following statements? i nt x = 1; i nt y = x++; i nt z = ++y; y = z++; z = ++z; You have used 1 of 1 submissions FINAL EXAM QUESTION 05 (2 points possible) Which of the following is/are valid Java statements that give no compilation error or warning? (1)int i = 2.0; (2)double d = 2; (3)double d2 = 2.0f; You have used 1 of 1 submissions Pgina 2 de 3 Final Exam Question 01 | Final Exam | COMP102x Courseware | edX 27/08/2014 https://courses.edx.org/courses/HKUSTx/COMP102x/2T2014/courseware/1020d90b1741... (http://www.meetup.com/edX-Global- Community/) (http://www.facebook.com/EdxOnline) (https://twitter.com/edXOnline) (https://plus.google.com/108235383044095082735/posts) (http://youtube.com/user/edxonline) 2014 edX, some rights reserved. Terms of Service and Honor Code - Privacy Policy(https://www.edx.org/edx-privacy-policy) Pgina 3 de 3 Final Exam Question 01 | Final Exam | COMP102x Courseware | edX 27/08/2014 https://courses.edx.org/courses/HKUSTx/COMP102x/2T2014/courseware/1020d90b1741...