Skip to main content

Section 2 Oracle Java Fundamentals Quiz

Section 2 - Quiz 1 L1-L7
            (Answer all questions in this section)
                                                           
1.         In Alice, which control statement is used to invoke simultaneous movement?         Mark for Review
(1) Points                                
            Do In Order
            Count
            Do Together (*)                                 
            While
            Variable

2.         In Alice, a computer program requires functions to tell it how to perform the procedure. True or false?            Mark for Review
(1) Points
            True
False (*)

3.         Manually manipulating an Alice object with your cursor is a way to precisely position an object. True or false?   Mark for Review
(1) Points
            True
            False (*)

4.         Only acting objects have one-shot procedures. True or false?            Mark for Review
(1) Points
            True
            False (*)

5.         In Alice, where are objects added and positioned in the scene?        Mark for Review
(1) Points
            The template
            The Scene editor (*)
            The Code editor
            The gallery

6.         Before you can begin to develop the animation storyboard, what must be defined?            Mark for Review
(1) Points
            The debugging process
            The control statements
            The code
            The scenario (*)

7.         In Alice, which of the following are benefits of separating out motions into their own procedures?            Mark for Review
(1) Points
                                    (Choose all correct answers)  
            It makes the scene easier to view.
            It can allow subclasses of a superclass to use a procedure. (*)
            It simplifies code and makes it easier to read. (*)
            It makes the animation easier to run.
            It allows many objects of a class to use the same procedure. (*)

8.         Which Alice tool is used to demonstrate the process flow of an animation? Mark for Review
(1) Points
            World
            Pie chart
            Textual storyboard
            Visual storyboard
            Flowchart (*)

9.         Which Alice execution task corresponds with the following storyboard statement?

Cat turns to face mouse. Mark for Review
(1) Points
            mouse turnTo cat
            this.cat turnToFace this.mouse (*)
            this.mouse turnToFace this.cat
            cat TurnTo mouse

10.       From your Alice lessons, which control statement executes instructions simultaneously?    Mark for Review
(1) Points
            Do in order
            Variable
            Do together (*)
            Count

11.       From your Alice lessons, built-in functions provide precise property details for the following areas:            Mark for Review
(1) Points
            Proximity and point of view.
            Distance to and nesting.
            Proximity and size.
            Proximity, size, spatial relation, and point of view. (*)

12.       From your Alice lessons, which programming instruction represents the following movement: A turtle moves forward half the distance to the flower.          Mark for Review
(1) Points
            this.Turtle move Forward this.Turtle getDistanceTo this.Flower * 2
            this.Turtle move Forward this.Turtle getDistanceTo this.Flower / 1.0
            this.Turtle move Forward this.Turtle getDistanceTo this.Flower / 0.5
            this.Turtle move Forward this.Turtle getDistanceTo this.Flower / 2.0 (*)

13.       What is the purpose of a function in Alice?   Mark for Review
(1) Points
            To position the object in the Scene editor.
            To save the project.
            To compute and answer a question about an object. (*)
            To define how the object should execute a task.

14.       The comments you enter in Alice should describe the sequence of actions that take place in the code segment. True or false?           Mark for Review
(1) Points
            True (*)
            False

15.       Which of the following is a reason why you might disable programming statements in your Alice code?            Mark for Review
(1) Points
            To disable the entire program.
            To make an object move forward.
            To make an object turn and move simultaneously.
            To help isolate portions of code during testing. (*)

1.         From your Alice lessons, where on an object do an object's axes intersect?  Mark for Review
(1) Points
            At the object's center point (*)
            At the object's head
            At the object's chest
            At the object's bottom

2.         Only acting objects have one-shot procedures. True or false?            Mark for Review
(1) Points
            True
            False (*)

3.         In Alice, which of the following is not a control statement? Mark for Review
(1) Points
            Count
            Move (*)
            While
            Do In Order

4.         In Alice, a computer program requires functions to tell it how to perform the procedure. True or false?            Mark for Review
(1) Points
            True
            False (*)

5.         When is an instance created in Alice? Mark for Review
(1) Points
            After the scenario is saved.
            After the folder is selected in the gallery.
            After the class icon is dragged into the scene. (*)
            After the code is created.

6.         Which of the following is an example of nesting in an Alice program?         Mark for Review
(1) Points
            Five Do Together statements are nested inside of a Do In Order statement. (*)
            A move procedure is nested inside of a turn procedure.
            Distance, duration, and direction arguments are nested inside of a procedure.
            Text is nested inside of a comments tile.

7.         Which Alice control statement executes a set of procedures simultaneously?           Mark for Review
(1) Points
            Do in order
            While
            Together
            Do together (*)

8.         Programming comments do not affect the functionality of your Alice animation. True or false?     Mark for Review
(1) Points
            True (*)
            False

9.         What is the first step to entering comments in an Alice program?     Mark for Review
(1) Points
            Select the instance from the instance menu.
            Drag and drop the comments tile below a code segment.
            Type comments that describe the sequence of actions in the code segment.
            Drag and drop the comments tile above a code segment. (*)

10.       In Alice the Functions tab will display the pre-defined functions for the selected instance. True or false?   Mark for Review
(1) Points
            True (*)
            False

11.       In Alice, what function would you use to get a wholenumber from the user?          Mark for Review
(1) Points
            getIntegerFromUser (*)
            getBooleanFromUser
            getStringFromUser
            getDoubleFromUser

12.       In Alice, there is no way of reordering the function list in the function tab. True or false?  Mark for Review
(1) Points
            True
            False (*)

13.       Defining the scenario, and the Alice animation to represent the scenario, is the first step to programming your animation. True or false?  Mark for Review
(1) Points
            True (*)
            False

14.       In Alice, declaring a new procedure to shorten code and make it easier to read is a procedural abstraction technique. True or false?  Mark for Review
(1) Points
            True (*)
            False

15.       In Alice, what are the forms of a scenario?    Mark for Review
(1) Points
                                    (Choose all correct answers)  
            A problem to solve. (*)
            A task to perform. (*)
            A person to help.
            A system to start.
            A section of code to write.

1.         Before you can begin to develop the animation storyboard, what must be defined?            Mark for Review
(1) Points
            The debugging process
            The control statements
            The scenario (*)
            The code

2.         In Alice, declaring a new procedure to shorten code and make it easier to read is a procedural abstraction technique. True or false?  Mark for Review
(1) Points
            True (*)
            False

3.         A scenario gives the Alice animation a purpose. True or false?          Mark for Review
(1) Points
            True (*)
            False

4.         From your Alice lessons, which programming instruction represents the following movement: A cat moves forward double (or twice) the distance to the tree.     Mark for Review
(1) Points
            this.Cat move Forward this.Cat getDistanceTo this.tree / 2.0
            this.Cat move Forward this.Cat getDistanceTo this.tree - 2.0
            this.Cat move Forward this.Cat getDistanceTo this.tree * 2.0 (*)
            this.Cat move forward this.Cat getDistanceTo this.tree + 2.0

5.         In Alice, where you would you get access to the specific joints of an object that are not available through the object drop down menu? Mark for Review
(1) Points
            scene editor
            procedures tab
            functions tab (*)
            code editor

6.         Only acting objects have one-shot procedures. True or false?            Mark for Review
(1) Points
            True
            False (*)

7.         From your Alice lessons, where on an object do an object's axes intersect?  Mark for Review
(1) Points
            At the object's bottom
            At the object's chest
            At the object's head
            At the object's center point (*)

8.         Which Alice execution task corresponds with the following storyboard statement?

Cat turns to face mouse. Mark for Review
(1) Points
            this.cat turnToFace this.mouse (*)
            mouse turnTo cat
            cat TurnTo mouse
            this.mouse turnToFace this.cat

9.         In Alice, the computer specifies the low and high range values for the range of numbers from which to pull a randomized number. True or false?       Mark for Review
(1) Points
            True
            False (*)

10.       When something is broken or doesn't work as intended in a software program, it is referred to as a _________?    Mark for Review
(1) Points
            Bug (*)
            Error
            Code
            Debug

11.       Debugging and testing is the process of running the animation one time, and adjusting the control statements, procedures, and arguments.         Mark for Review
(1) Points
            True
            False (*)

12.       In Alice the Functions tab will display the pre-defined functions for the selected instance. True or false?   Mark for Review
(1) Points
            True (*)
            False

13.       What is the first step to programming an object to turn left in Alice?           Mark for Review
(1) Points
            Select the object to program from the instance menu. (*)
            Drag the turn procedure into the Code editor.
            Select the duration for the object to turn.
            Select the distance to turn.

14.       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

15.       Which of the following actions would require a control statement to control animation timing?     Mark for Review
(1) Points
                                    (Choose all correct answers)  
            A biped object walking. (*)
            A rock object turning.
            A bird flying. (*)
            A fish swimming. (*)

1.         Define the value of the variable LapCount based on the following math calculation: LapCount + 10 = 15        Mark for Review
(1) Points
            2
            15
            4
            5 (*)
            10

2.         Which of the following is not an Alice variable value type?  Mark for Review
(1) Points
            Whole Number
            Decimal Number
            Color
            Function (*)

3.         In Alice, what are the forms of a scenario?    Mark for Review
(1) Points
                                    (Choose all correct answers)  
            A problem to solve. (*)
            A person to help.
            A task to perform. (*)
            A section of code to write.
            A system to start.

4.         From your Alice lessons, animations should be tested by the programmer before they are considered complete. True or false?          Mark for Review
(1) Points
            True (*)
            False

5.         From your Alice lessons, when testing your animation, you should test that comments were added below each sequence of instructions in the code. True or false?        Mark for Review
(1) Points
            True
            False (*)

6.         In Java, a function is a method that must return a value. True or false?        Mark for Review
(1) Points
            True
            False (*)

7.         Which of the following does not describe methods? Mark for Review
(1) Points
            A subprogram that acts on data and often returns a value.
            A set of code that is referred to by name.
            Is associated with an instance variable. (*)
            Can be called at any point in a program simply by utilizing its name.

8.         In Alice, we can avoid object collision using what?   Mark for Review
(1) Points
            Downloading the Alice 3 collision detector app.
            Using object detection.
            Using math operators. (*)
            Slowing movements down.

9.         Alice uses built-in math operators; they are:   Mark for Review
(1) Points
            Add and subtract
            Multiply and divide
            All of the above (*)
            None of the above

10.       In Alice, what tab would you choose to start a new animation with a pre-populated world?           Mark for Review
(1) Points
            Recent
            Blank Slate
            Starters (*)
            My Projects

11.       In Alice, when is the sceneActivationListener executed?      Mark for Review
(1) Points
            When the user clicks on on object
            At the end of the animation
            At the beginning of the animation (*)
            When an object appears on screen

12.       A data type defines the type of procedures a variable can store. True or false?        Mark for Review
(1) Points
            True
            False (*)

13.       If a value has been assigned to (is stored in) a variable, that value will be overwritten when another value is assigned to the variable using the assignment "=" operator. True or false?   Mark for Review
(1) Points
            True (*)
            False

14.       In Alice, the use of conditional control structures allows what two types of loops? Mark for Review
(1) Points
                                    (Choose all correct answers)  
            switch
            together
            conditional (*)
            infinite

15.       In Alice, which one of the following is not a pre-defined control structure? Mark for Review
(1) Points
            do in order
            do together
            do while (*)
            while

1.   In Java, which symbol is used to assign one value to another?   Mark for Review 
(1) Points      
<
= (*)
>
//

2.   What is the output produced by the following code? 
    Mark for Review 
(1) Points 



j is 10 
j is 5 
k is 5
       
j is 5
k is 5 (*)
       
j is 10
k is 10
       
j is 15
k is 15

3.   When you want specific code to be executed only if certain conditions are met, what type of Java construct would you use?   Mark for Review 
(1) Points 
if (*)
array
while loop
boolean

4.   If you need to repeat a group of Java statements many times, which Java construct should you use?   Mark for Review 
(1) Points 
      (Choose all correct answers)  
while loop (*)
do while loop (*)
repeat...until
if

5.   In Alice it is not possible to transfer a class from one animation to another. True or false?   Mark for Review 
(1) Points 
True
False (*)

6.   You want an event to happen when an object collides with another object, which category of event handler would you choose?   Mark for Review 
(1) Points 
Keyboard
Mouse
Scene Activation/time
Position/Orientation (*)

7.   Which of the following is not an Alice variable value type?   Mark for Review 
(1) Points 
Color
Decimal Number
Function (*)
Whole Number

8.   The initializer of a variable with a TextString value type could be (select all that apply):   Mark for Review 
(1) Points 
      (Choose all correct answers)  
"Greetings" (*)
"Howdy" (*)
"4" (*)
None of the above.

9.   Which of the following WHILE control structures commands the fish to move forward repeatedly 0.5 meters at a time, but stop if it collides with the shark?   Mark for Review 
(1) Points 



(*)

10.   In Alice, we use the WHILE control statement to implement the conditional loop. True or false?   Mark for Review 
(1) Points 
True (*)     
False

11.   In Alice, which of the following programming statements moves the butterfly forward, double the distance to the tree?   Mark for Review 
(1) Points 
this.Butterfly move forward {this.Butterfly getDistanceTo this.Tree / 2}
this.Butterfly move backward {this.Butterfly getDistanceTo this.Tree * 2}
this.Butterfly move forward {this.Butterfly getDistanceTo this.Tree * 2} (*)
this.Butterfly move backward {this.Butterfly getDistanceTo this.Tree / 2}

12.   An example of an expression is:   Mark for Review 
(1) Points 
If or Where
3*3=9 (*)
Move forward 1 meter
"I feel happy."

13.   From your Alice lessons, a textual storyboard provides a detailed, ordered list of the actions each object performs in each scene of the animation. True or false?   Mark for Review 
(1) Points 
True (*)
False

14.   From your Alice lessons, when testing your animation, you should test that comments were added below each sequence of instructions in the code. True or false?   Mark for Review 
(1) Points 
True
False (*)

15.   What can be used as a guideline to ensure your Alice animation fulfills animation principles?   Mark for Review 
(1) Points 
An animation checklist (*)
Other programmers
The Internet
A close friend

1.         An event is any action initiated by the user that is designed to influence the programï¾’s execution during play.     Mark for Review
(1) Points
            True (*)
            False

2.         In Alice, what tab would you choose to start a new animation with a pre-populated world?           Mark for Review
(1) Points
            Recent
            Starters (*)
            My Projects
            Blank Slate

3.         Which of the following is not a valid arithmetic operator in Java?    Mark for Review
(1) Points
            +
            /
            -
            *
            %
            $ (*)
            None of the above

4.         If a value has been assigned to (is stored in) a variable, that value will be overwritten when another value is assigned to the variable using the assignment "=" operator. True or false?   Mark for Review
(1) Points
            True (*)
            False

5.         In Java, a function is a method that must return a value. True or false?        Mark for Review
(1) Points
            True
            False (*)

6.         The list below contains method descriptions. All are correct except which one?      Mark for Review
(1) Points
                                    (Choose all correct answers)  
            Is associated with an instance variable.
            A subprogram that acts on data and often returns a value. (*)
            A set of code that is referred to by name. (*)
            Can be called at any point in a program simply by utilizing its name.

7.         In Alice, we can avoid object collision using what?   Mark for Review
(1) Points
            Downloading the Alice 3 collision detector app.
            Using math operators. (*)
            Using object detection.
            Slowing movements down.

8.         Alice uses built-in math operators; they are:   Mark for Review
(1) Points
            Add and subtract
            Multiply and divide
            All of the above (*)
            None of the above

9.         Define the value of the variable LapCount based on the following math calculation: LapCount + 10 = 15        Mark for Review
(1) Points
            2
            5 (*)
            15
            4
            10

10.       The initializer of a variable with a TextString value type could be (select all that apply):     Mark for Review
(1) Points
                                    (Choose all correct answers)  
            "Greetings" (*)
            "Howdy" (*)
            "4" (*)
            None of the above.

6.         The list below contains method descriptions. All are correct except which one?      Mark for Review
(1) Points
                                    (Choose all correct answers)                                                              
            Is associated with an instance variable.
            A subprogram that acts on data and often returns a value. (*)
            A set of code that is referred to by name. (*)
            Can be called at any point in a program simply by utilizing its name.

7.         In Alice, we can avoid object collision using what?   Mark for Review
(1) Points
            Downloading the Alice 3 collision detector app.
            Using math operators. (*)
            Using object detection.
            Slowing movements down.

8.         Alice uses built-in math operators; they are:   Mark for Review
(1) Points
            Add and subtract
            Multiply and divide
            All of the above (*)
            None of the above

9.         Define the value of the variable LapCount based on the following math calculation: LapCount + 10 = 15        Mark for Review
(1) Points
            2
            5 (*)
            15
            4
            10

10.       The initializer of a variable with a TextString value type could be (select all that apply):     Mark for Review
(1) Points
                                    (Choose all correct answers)  
            "Greetings" (*)
            "Howdy" (*)
            "4" (*)
            None of the above.

15.       The Alice If control structure requires the false statement to be populated. True or false?   Mark for Review
(1) Points
            True
            False (*)

Comments

  1. Please do you have answers for this. If yes then can u post here

    ReplyDelete
  2. Ok also pls post all oracle academy QueStion along with answers

    ReplyDelete
  3. All thanks to Mr Anderson for helping with my profits and making my fifth withdrawal possible. I'm here to share an amazing life changing opportunity with you. its called Bitcoin / Forex trading options. it is a highly lucrative business which can earn you as much as $2,570 in a week from an initial investment of just $200. I am living proof of this great business opportunity. If anyone is interested in trading on bitcoin or any cryptocurrency and want a successful trade without losing notify Mr Anderson now.Whatsapp: (+447883246472)
    Email: tdameritrade077@gmail.com

    ReplyDelete

Post a Comment

Popular posts from this blog

Section 6 Quiz Oracle Database Programming with SQL

Section 6 Quiz             (Answer all questions in this section)                                                             1.         Given the following descriptions of the employees and jobs tables, which of the following scripts will display each employee ï¾’ s possible minimum and maximum salaries based on their job title? EMPLOYEES Table: Name   Null?    Type EMPLOYEE_ID          NOT NULL     NUMBER (6) FIRST_NAME             VARCHAR2 (20) LAST_NAME  NOT NULL     VARCHAR2 (25) EMAIL NOT NULL     VARCHAR2 (25) PHONE_NUMBER                  VARCHAR2 (20) HIRE_DATE   NOT NULL     DATE JOB_ID           NOT NULL     VARCHAR2 (10) SALARY                     NUMBER (8,2) COMMISSION_PCT                NUMBER (2,2) MANAGER_ID                       NUMBER (6) DEPARTMENT_ID                 NUMBER (4) JOBS Table: Name   Null?    Type JOB_ID           NOT NULL     VARCHAR2 (10) JOB_TITLE     NOT NULL     VARCHAR2 (35) MIN_SALARY                      

Section 10 Quiz Database Programming With SQL

Section 10 Quiz             (Answer all questions in this section) 1.         A multiple-row operator expects how many values?   Mark for Review (1) Points             One or more (*)             Only one             Two or more             None 2.         The salary column of the f_staffs table contains the following values: 4000 5050 6000 11000 23000 Which of the following statements will return the last_name and first_name of those employees who earn more than 5000?  Mark for Review (1) Points             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT last_name, first_name FROM f_staffs WHERE salary <5000 o:p="">             SELECT last_name, first_name FROM f_staffs WHERE salary = (SELECT salary FROM f_staffs WHERE salary < 5000);             SELECT last_name, first_name FROM f_staffs WHERE salary IN (SELECT salary FROM f_staffs WHERE salary > 5000); (*)             SELEC

Section 2 Quiz Database Design Oracle

Section 2 Quiz             (Answer all questions in this section) 1.         An Entity Relationship model is independent of the hardware or software used for implementation. True or False?  Mark for Review (1) Points             True (*)             False 2.         A well structured ERD will show only some parts of the finished data model. You should never try to model the entire system in one diagram, no matter how small the diagram might be. True or False?           Mark for Review (1) Points             True             False (*) 3.         The purpose of an ERD is to document the proposed system and facilitate discussion and understanding of the requirements captured by the developer. True or False?          Mark for Review (1) Points             True (*)             False 4. Documenting Business Requirements helps developers control the scope of the system and prevents users from claiming that the new system does not meet their business req