- Документ(Answer all questions in this section) 1. In Alice, which function is used to move an object directly to the center point of another object? Mark for Review (1) Points getObject getDuration getDepth getDistance (*) Correct 2. In Alice, Do In Order and Do Together: Mark for Review (1) Points Are move statements Are control statements (*) Are complex statements None of the above Incorrect. Refer to Section 2 Lesson 6. 3. In Alice, the procedures' arguments allow the programmer to adjust the object, motion, distance amount, and time duration. True or false? Mark for Review (1) Points True (*) False Correct 4. In Alice, the setVehicle procedure will associate one object to another. Trзагружено:Si Kecil Madun
- Документ1. Following good programming guidelines, what access modifier should be used for the class fields in the following situation? A car insurance company wants to create a class named Customer that stores all data for a specified customer including the fieldsзагружено:Si Kecil Madun
- ДокументSection 1 (Answer all questions in this section) 1. What will print if the following Java code is executed? Mark for Review (1) Points 0 3 (*) 4 5 Correct 2. Which of the following correctly initializes an instance of Scanner, called "in", that reads input from the console screen? Mark for Review (1) Points Scanner in = new Scanner(System.in); (*) Scanner in = new Scanner("System.in"); Scanner in = Scanner(System.in); System.in in = new Scanner(); Correct 3. Which of the two diagrams below illustrate the correct syntax for variables used in an if-else statement? Mark for Review (1) Points Example A (*) Example B Correct 4. In an if-else construct, the condition to be evaзагружено:Si Kecil Madun
- Документ1. What is the output of the following lines of code? int j=7,k=5,m=8,result; result=j/m*k; System.out.println(result); Mark for Review (1) Points 0 (*) 4.375 0.175 280 Incorrect. Refer to Section 4 Lesson 3. 2. What is the output of the following lines of code? int j=7,k=5,m=8,result; result=j-k%3*m; System.out.println(result); Mark for Review (1) Points 0 16 2 -9 (*) Correct 3. Which of the following is not correct Java code? Mark for Review (1) Points double x=Math.sqrt(16); double x=Math.pow(3,4)*5.0; double x=Math.PI*5.0; double x=Math.pow; (*) Correct 4. Which line of Java code assigns the value of 5 raised to the power of 8 to a? Mark for Review (1) Pointsзагружено:Si Kecil Madun
- ДокументReview your answers, feedback, and question scores below. An asterisk (*) indicates a correct answer. Section 1 (Answer all questions in this section) 1. Which of the two diagrams below illustrate the general form of a Java program? Mark for Review (1) Points Example A Example B (*) Correct 2. When importing another package into a class you must import the entire package as well as the package classes that will be called. True or False? Mark for Review (1) Points True False (*) Correct 3. Which of the following defines a driver class? Mark for Review (1) Points Contains a main method and other static methods. (*) Contains classes that define objects. Contains a main method, a package, static methods, and classes that define objects. None oзагружено:Si Kecil Madun
- Документ1. What does it mean to inherit a class? Mark for Review (1) Points The subclass (or child class) gains access to any non-private methods and variables of the superclass (or parent class). (*) The access specifier has been set to private. A way of organizing the hierarchy of classes. Extending a method from a superclass. Correct 2. Which is the most accurate description of the code reuse philosophy? Mark for Review (1) Points A programming philosophy that promotes stealing your classmates' code. A programming philosophy that promotes having no concern about the security of code. A programming philosophy that promotes protecting data and hiding implementation in order to preserve the integrity of data and methods. A programming philosophy that promotes simpler, more efficient coding by using existing code for new applicationsзагружено:Si Kecil Madun
- ДокументSection 1 (Answer all questions in this section) 1. Why would a programmer use polymorphism rather than sticking to a standard array? Mark for Review (1) Points Because arrays only work using the same object type and polymorphism provides a way around this. (*) Because it is easier to add or remove objects using polymorphism even when all of the objects are of the same type. Because arrays are more complex and polymorphism simplifies them by restricting them to only contain the same type objects. A programmer wouldn't use polymorphism over a standard array. Correct 2. If Sandal extends Shoe, it is possible to declare an object such that Sandal s = new Shoe(); Mark for Review (1) Points True False (*) Correct 3. It is possible to override methods such as equals() and toString() inзагружено:Si Kecil Madun
- ДокументSection 1 (Answer all questions in this section) 1. Why would a programmer use polymorphism rather than sticking to a standard array? Mark for Review (1) Points Because arrays only work using the same object type and polymorphism provides a way around this. (*) Because it is easier to add or remove objects using polymorphism even when all of the objects are of the same type. Because arrays are more complex and polymorphism simplifies them by restricting them to only contain the same type objects. A programmer wouldn't use polymorphism over a standard array. Correct Correct 2. If Sandal extends Shoe, it is possible to declare an object such that Sandal s = new Shoe(); Mark for Review (1) Points True False (*) Correct Correct 3. It is possible to override methods such as equals() and toString() in a subclass of Object to fit the needs of the objects of the subclass. True or false?загружено:Si Kecil Madun
- Документoracleзагружено:Si Kecil Madun
- Документ152635644 New Text Documentзагружено:Si Kecil Madun
- ДокументContoh Surat Keterangan Telah Selesai Magang Atau Pklзагружено:Si Kecil Madun
- Документ07-CA-M4B-02загружено:Si Kecil Madun
- ДокументInfrastruktur Jaringan Komputerзагружено:Si Kecil Madun