Student Name Ta, anc Thanos^ Student ID 142613 CS3360 Concepts of Object Program
ID: 3601083 • Letter: S
Question
Student Name Ta, anc Thanos^ Student ID 142613 CS3360 Concepts of Object Program I Middle Exam Fall 2017 1. True or False 1.I A program is a series of instructions 1.2 Computers store all analogy information 1.3 Main memory stores the instructions and data that are t currently used by CPU 1.4 CPU continuously follows the execute- decode-fetch cycle 1.5 Java is considered to be architecture-neutral 1.6 A program that is syntactically correct is always logically (semantically) correct 1.7 A program will always do what we tell it to do, not what we meant to tell it to do 1.8 An object is a fundamental entity in a Java program 1.9 A Java applet is a program that is intended to be transported over the Web and executed using a web browser .10 An applet has a main method 1·11 ( ) Java performs automatic garbage collection periodically 1.12 Static methods are invoked through the class name; we do not need to create object to call method of Math class. 2. Short Answer 2.1 For a binary number with n bits, how many different items it can represent? Answer: 2.2 Please complete the following figure to show Java translation Java Source CodeExplanation / Answer
1.1 true
1.2 true
1.3 true
1.4 true
1.5 true
1.6 false a program which is syntactically correct can be logically or semantically completely wrong and such an error computer cannot detect.
1.7 true because computer does not have brains.
1.8 true
1.9 true
1.10 false
1.11 true
1.12 true
2.1 2n different items for example if there 3 bits total combinations are 8 that is 23.