Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Oracle Answer PDF
Oracle Answer PDF
com/programacion-orientada-a-objetos-1-java-mvc-espanol/
http://www.javahispano.org/portada/2013/1/6/arquitectura-java-solida-libro-gratuito-de-jee-en-espaol.html
http://www.tutomundi.org/2009/03/java-desde-cero-manual-super-practico.html
http://cs.joensuu.fi/jeliot/
https://www.google.com.co/?gws_rd=cr&ei=zG08UoyeDJC68wTA2oGQCA#q=descargar+gratis+libro+de+programaci
on+orientada+a+objetos+en+java
http://www.etnassoft.com/biblioteca/introduccion-a-la-programacion-orientada-a-objetos-con-java/
http://librosgratis.net/
http://www.identi.li/index.php?topic=109351
http://www.freelibros.com/programacion/programacion-orientada-a-objetos-con-java-3ra-edicion.html
http://www.intercambiosvirtuales.org/libros-manuales/programacion-orientada-a-objetos-con-java-3era-edicion-
prentice-hall
http://espanol.answers.yahoo.com/question/index?qid=20110403075155AA6NBva
Section 1
(Responder todas las preguntas de esta seccin)
1. What is the course goal?
Marcar para Revisin
(1) Puntos
Learn the basic elements of computer programming
Learn the basics of the Java programming language
Write programs
All of the above (*)
Correct
2. Throughout this course you will learn how to program in:
Marcar para Revisin
(1) Puntos
SQL
C++
Java (*)
All of the above
Correct
3. The Oracle Academy Java Fundamentals and Java Programming courses
Marcar para Revisin
help you prepare for what exam?
(1) Puntos
Microsoft certification exam
Oracle Certified Associate, Java SE7 (*)
IBM certification exam
None of the above
Correct
4. Which of the following courses are part of the Oracle Academy Java
Marcar para Revisin
training?
(1) Puntos
(Seleccione todas las respuestas correctas)
Java Programming (*)
Java Application Development
Java Fundamentals (*)
Animating with Java
Correct
5. Which of the following instructional methods are included in this course?
Marcar para Revisin
(1) Puntos
Quizzes and exams
Journaling and blogging
Practice activities
Lectures
All of the above (*)
Correct
6. The teaching strategy for the Oracle Academy Java training includes lectures
Marcar para Revisin
and practical exercises.
(1) Puntos
Verdadero (*)
Falso
Correct
7. Oracle iLearning is used to access everything in the course except what?
Marcar para Revisin
(1) Puntos
Quizzes
Slides
Exams
Java IDE (*)
Correct
8. What is the learning management system used in this course?
Marcar para Revisin
(1) Puntos
Alice 3
Greenfoot
iLearning (*)
BlueJ
Eclipse
Correct
9. What does IDE stand for in this course?
Marcar para Revisin
(1) Puntos
International development environment
Interactive design environment
Integrated development environment (*)
Correct
10.An IDE includes tools for which tasks?
Marcar para Revisin
(1) Puntos
Writing code
Compiling code
Editing code
Debugging programs
All of the above (*)
Correct
11.Why is teamwork important?
Marcar para Revisin
(1) Puntos
Individuals must work together effectively for companies to remain
competitive.
Goals can be reached faster and more efficiently.
Teamwork can result in new and innovative ideas.
All of the above (*)
2 and 3 only
Correct
12.Effective teamwork is essential for organizations to realize their full
Marcar para Revisin
potential and to meet certain goals.
(1) Puntos
Verdadero (*)
Falso
Correct
Section 1
(Responder todas las preguntas de esta seccin)
1. Why is it useful to learn Alice 3 and Greenfoot?
Marcar para Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
They both teach you how to code objects to move. (*)
They both allow you to drag and drop objects. (*)
They both allow you to learn the fundamental ideas in programming by creating objects in
a virtual world. (*)
None of the above
Correct
2. Alice is a good introduction to learning how to program for which of the following reasons?
1. It uses the Alice+ programming language syntax. Marcar para Revisin
2. It is easy to drag and drop objects on the screen rather than type. (1) Puntos
3. You learn fundamentals of computer programming by creating animations.
1 only
2 only
3 only
1, 2, and 3
Correct
3. Which of the following steps is not needed to generate an animation in Alice or to create a game
in Greenfoot? Marcar para Revisin
(1) Puntos
Test
Implement
Create a scenario
Design a storyboard
Correct
4. When designing the scenario for a game or animation, what questions should you answer?
Marcar para Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
What programming constructs are needed?
Correct
5. The list below provides good characteristics of a team, except which one?
Marcar para Revisin
(1) Puntos
Shared responsibility
Clear roles
Clearly defined tasks
Regular participation
Correct
1 and 2 only
1, 2, and 3 only
1, 2, 3, and 4 (*)
Correct
7. In a team assessment rubric, which of the following would earn a 4 (the highest score) in the
Collaboration category? Marcar para Revisin
(1) Puntos
Rarely listens to, shares with, and supports the efforts of others. Often is not a good team
player.
Almost always listens to, shares with, and supports the efforts of others. Tries to keep
people working well together and mentors team members when appropriate. (*)
Usually listens to, shares, with, and supports the efforts of others. Does not cause "waves"
in the group.
Often listens to, shares with, and supports the efforts of others, but not always.
Correct
8. In a team assessment rubric, which of the following would earn a 1 (the lowest score) in the
attitude category? Marcar para Revisin
(1) Puntos
Is often publicly critical of the project or the work of other members of the group. Is often
negative about the task(s). (*)
Is rarely publicly critical of the project or the work of others. Often has a positive attitude
about the task(s).
Is never publicly critical of the project or the work of others. Always has a positive attitude
about the task(s).
Is occasionally publicly critical of the project or the work of other members of the group.
Usually has a positive attitude about the task(s).
Correct
Correct
10. Why might you create a journal for programming?
1. To document new concepts and techniques. Marcar para Revisin
2. To track problems in your code and how you solved them. (1) Puntos
3. To serve as a review guide when preparing for an exam.
1 only
2 only
2 and 3 only
1, 2, and 3 (*)
Correct
Neither 1 nor 2
Correct
12. Which of the following is not a good tip for protecting information and systems (cyber security)?
Marcar para Revisin
(1) Puntos
Share strong passwords. (*)
Follow your organization's cybersecurity rules and report issues when they happen.
Correct
Correct
Section 2 - Using Alice 3
Prueba: Get Started with Alice 3: Quiz
Revise las respuestas, los resultados y las puntuaciones de las preguntas que se muestran a continuacin. Las respuestas correctas
estn marcadas con un asterisco (*).
Section 1
(Responder todas las preguntas de esta seccin)
1. What do moving objects provide to your scene?
Marcar para Revisin
(1) Puntos
The sky and ground
The procedures
Correct
The template
Correct
3. Which button is selected in the Alice file menu to save a version of an animation?
Marcar para Revisin
(1) Puntos
File
New
Open
Correct
4. Alice 3 will periodically remind you to save your project. True or false?
Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
5. In Alice, once an instance is added to the scene, it cannot be deleted. True or false?
Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
Correct
7. Creating multiple versions of your Alice project saves time. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
8. After objects are positioned in the scene, it is wise to save multiple versions of the
project, giving each version the same name. True or false? Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
Click and drag the desired programming instruction into the myFirstMethod tab. (*)
Click and drag the desired programming instruction into the Scene editor.
Click and drag the desired programming instruction into the Functions tab.
10. How do you view the results of procedures entered in the Alice code editor?
Marcar para Revisin
(1) Puntos
Select the Play button.
Correct
11. Copying programming instructions saves time when programming your Alice project.
True or false? Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
Is Enabled
Paste
Correct
Error
Code
Correct
14. Debugging is the process of finding bugs in a software program. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
Section 1
(Responder todas las preguntas de esta seccin)
1. Saved Alice projects can be opened and edited. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
2. Which of the following are ways to open an existing Alice project file after launching Alice?
Marcar para Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
Click and drag the file from your computer into Alice 3.
Browse for the project using the File System tab. (*)
Double-click on the project file name in the folder it is stored in on your computer.
Correct
The gallery
Falso (*)
Correct
Change size of the object and stretch it along the x, y, and z axes (*)
Correct
6. Manually manipulating an Alice object with your cursor is a way to precisely position an object.
True or false? Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
Move
Turn
Spin (*)
Correct
Falso (*)
Correct
9. When you edit an object's properties in the Scene editor, the changes do not take effect until the
Run button is clicked. True or false? Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
10. One type of object property is an object's position in the scene. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
11. Which of the following is not one of the positioning axes used in Alice 3?
Marcar para Revisin
(1) Puntos
x
w (*)
Correct
Correct
13. Which handle style would be used to rotate an object's sub-part about the x, y, and z axes?
Marcar para Revisin
(1) Puntos
Rotation (*)
Default
Translation
Resize
Correct
14. Rings will appear around a sub-part indicating how you can reposition it. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
Prueba: Use Procedures and Arguments: Quiz
Revise las respuestas, los resultados y las puntuaciones de las preguntas que se muestran a continuacin. Las respuestas correctas
estn marcadas con un asterisco (*).
Section 1
(Responder todas las preguntas de esta seccin)
1. To access the Alice Code editor from the Scene editor, which button do you click?
Marcar para Revisin
(1) Puntos
Access Code Editor
Code Editor
Code
Correct
2. The Alice Scene editor contains tools to rotate the camera view. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
3. In Alice the Functions tab will display the pre-defined functions for the selected instance.
True or false? Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
4. The Procedures tab and the Functions tab are the two tabs available in the Alice
methods panel. True or false? Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
5. Which of the following instructions turns the clown fish left 5 meters?
Marcar para Revisin
(1) Puntos
this.clownFish turn Left 5.0 (*)
Correct
6. Which of the following procedures turns an object to face another object?
Marcar para Revisin
(1) Puntos
turn
turnToFace (*)
orientToUpright
moveToward
Correct
7. Which of the following is the default control statement in myFirstMethod?
Marcar para Revisin
(1) Puntos
Count
Do Together
Do In Order (*)
Comment
Correct
8. To add a procedure to myFirstMethod, right-click on the procedure you wish to add and
select the Add button. True or false? Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
9. The Alice move procedure contains which arguments?
Marcar para Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
Object
Direction (*)
Amount (*)
Text
10. An argument is a value that the procedure uses to complete its task. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
11. Programming comments do not affect the functionality of your Alice animation. True or
false? Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
12. What is the first step to entering comments in an Alice program?
Marcar para Revisin
(1) Puntos
Type comments that describe the sequence of actions in the code segment.
Drag and drop the comments tile above a code segment. (*)
Correct
13. Which of the following ways can you alter a procedure in Alice?
Marcar para Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
Copy (*)
Count
Disable (*)
Reorder (*)
Correct
14. When you disable a programming instruction, it is still executed when you run the Alice
animation. True or false? Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Correct
15. After each execution of your Alice animation, what element or elements could be
adjusted in your code? Marcar para Revisin
(1) Puntos
Control statements
Procedures
Arguments
Correct
16. It is important to save often while debugging your program. True or false?
Marcar para Revisin
(1) Puntos
Verdadero (*)
Falso
Correct
Section 1
(Responder todas las preguntas de esta seccin)
1.Which Alice control statement executes a set of procedures
Marcar para Revisin
simultaneously?
(1) Puntos
Together
Do together (*)
Do in order
While
3.In Alice, control statements are dragged into the Code editor. True or
Marcar para Revisin
false?
(1) Puntos
Verdadero (*)
Falso
5.In Alice, the computer specifies the low and high range values for the
Marcar para Revisin
range of numbers from which to pull a randomized number. True or
(1) Puntos
false?
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1. In Alice, what are the forms of a scenario?
Marcar para Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
A section of code to write.
A problem to solve. (*)
A task to perform. (*)
A person to help.
A system to start.
4. A textual storyboard helps the reader understand the actions that will
Marcar para Revisin
take place during the animation. True or false?
(1) Puntos
Verdadero (*)
Falso
11.In Alice, new procedures are declared in the Scene editor. True or
Marcar para Revisin
false?
(1) Puntos
Verdadero
Falso (*)
14.In Alice, if only objects that walk on four legs need to use a
Marcar para Revisin
procedure, in which superclass would the procedure be declared?
(1) Puntos
Quadruped (*)
Biped
Swimmer
Prop
Section 1
(Responder todas las preguntas de esta seccin)
1.In Alice, which of the following is not a control statement?
Marcar para Revisin
(1) Puntos
Do In Order
While
Count
Move (*)
5.In Alice, when two objects are synchronized and move together, this
Marcar para Revisin
means that one object is:
(1) Puntos
A vehicle of another (*)
A class of another
An object of another
An instance of another
6.In Alice, which procedure is used to assign one object as the vehicle of
Marcar para Revisin
another?
(1) Puntos
setClassVehicle
setObjectVehicle
setVehicle (*)
Vehicle
Section 1
(Responder todas las preguntas de esta seccin)
1.In Alice, where can you view the list
Marcar para Revisin
of functions available for an object?
(1) Puntos
Class description in the Scene
editor.
Functions tab in the methods
panel. (*)
Instance pull-down menu.
Properties tab in the methods
panel.
Section 1
(Responder todas las preguntas de esta seccin)
1.In Alice, the If control structure can process one true and one false
Marcar para Revisin
response. True or false?
(1) Puntos
Verdadero (*)
Falso
3.A conditional loop is a loop that will continue forever. True or false?
Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1.An example of an expression is:
Marcar para Revisin
(1) Puntos
"I feel happy."
If or Where
3x3=9 (*)
Move forward 1 meter
Section 1
(Responder todas las preguntas de esta seccin)
1.Which is an example of the Boolean variable type?
Marcar para Revisin
(1) Puntos
3
Hello World
True or False (*)
An object
Section 1
(Responder todas las preguntas de esta seccin)
1.With keyboard controls, you can create Alice animations where the user
Marcar para Revisin
controls an object that interacts with other objects. True or false?
(1) Puntos
Verdadero (*)
Falso
2.Event listeners look for and resopnd to the interactivity of the computer.
Marcar para Revisin
True or false?
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1. As the Alice programmer, you render the
Marcar para Revisin
animation on your own. True or false?
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1. The list below describes variables. All are correct except which one?
Marcar para
Revisin
(1) Puntos
A place in memory where data of a specific type can be stored for later
retrieval and use.
Has a unique name.
Has a type associated with it.
Arranged in rows and columns. (*)
4. The list below displays valid primitive types in Java, except which one?
Marcar para
Revisin
(1) Puntos
boolean
String (*)
long
int
double
5. The list below displays valid arithmetic operators in Java, except which one?
Marcar para
Revisin
(1) Puntos
+
/
-
*
% (*)
7. Expressions with relational operators produce true and false values. True or
Marcar para
false?
Revisin
(1) Puntos
Verdadero (*)
Falso
x>y:x>y
x<y:x<y
x>y:1
x<y:0
x>y:0
x<y:1
x > y : true
x < y : false (*)
x > y : false
x < y : true
9. If a value has been assigned to (is stored in) a variable, that value will be
Marcar para
overwritten when another value is assigned to the variable using the
Revisin
assignment = operator. True or false? (1) Puntos
Verdadero (*)
Falso
j is 5
k is 5 (*)
j is 10
j is 5
k is 5
j is 10
k is 10
j is 15
k is 15
Section 1
(Responder todas las preguntas de esta seccin)
1. The list below contains method descriptions. All are correct except which
Marcar para
one?
Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
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.
Is associated with an instance variable.
3. You have a Class representing Cat. A cat can meow, purr, catch mice, and so
Marcar para
on. When you create a new cat, what is it called?
Revisin
(1) Puntos
A submethod
A subprogram
An instance (*)
A subclass
A variable class
4. You want a block of code to be executed only once if certain conditions are
Marcar para
met. What type of Java construct would you use?
Revisin
(1) Puntos
while loop
if (*)
array
boolean
5. If you want one message to display if a user is below the age of 18 and a
Marcar para
different message to display if the user is 18 or older, what type of construct
Revisin
would you use?
(1) Puntos
for all loop
do loop
while loop
if (*)
6. If you need to repeat a group of Java statements many times, which Java
Marcar para
construct should you use?
Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
repeat...until
do while loop (*)
while loop (*)
if
Select the result from the following statements about what happens when the
loopVal >= 5 .
The message "Printing Some Text" will be printed until loopVal is no
longer less than 5.
The variable loopVal is initialized to 0.
The condition loopVal < 5 is tested before executing anything further in
the program. (*)
The condition loopVal < 5 returns a boolean value.
None of the above.
Section 1
(Responder todas las preguntas de esta seccin)
1.In Greenfoot, what happens to an instance when the Act button is
Marcar para Revisin
clicked in the environment?
(1) Puntos
Only one instance moves until the pause button is clicked.
The instance executes all of the programming statements in their
class's act method once. (*)
The instance executes all of the programming statements in their
class's act method repeatedly until the scenario is stopped.
The instance executes all of the programming statements in their
class's act method two times until the scenario is stopped.
The class executes all of the programming statements in their
instance's act method two times until the scenario is stopped.
4.In Greenfoot, the class holds the general attributes of an instance, such
Marcar para Revisin
as the methods it inherits. True or false?
(1) Puntos
Verdadero (*)
Falso
5.A subclass has what kind of relationship to a superclass?
Marcar para Revisin
(1) Puntos
"for-what"
"a-is"
"is-a" (*)
"is-by"
8.In Greenfoot, after a subclass is created and compiled, you cannot edit
Marcar para Revisin
the subclass's source code. True or false?
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1. In Greenfoot, the move method expects what type of information in
Marcar para Revisin
its parameters?
(1) Puntos
Degrees to turn
True or false response
String statement
Integer of steps to move forward (*)
10.In Greenfoot, methods can be called in the act method. When the Act
Marcar para Revisin
button is clicked in the environment, the methods in the method body
(1) Puntos
of the act method are executed. True or false?
Verdadero (*)
Falso
Section 1
(Responder todas las preguntas de esta seccin)
1.The list below provides actions you
Marcar para Revisin
can perform in the Greenfoot code
(1) Puntos
editor except one. Which one should
be removed?
Write source code to tell the
class how to act in the scenario.
Review the class's inherited
methods and properties. (*)
Write and edit source code.
Write and edit comments.
Section 1
(Responder todas las preguntas de esta seccin)
1.Which of the following is an incorrectly written programming
Marcar para Revisin
statement?
(1) Puntos
move(): (*)
move(2);
turn(25);
turn(2);
Section 1
(Responder todas las preguntas de esta seccin)
1. Which of the following Greenfoot methods returns a random number
Marcar para Revisin
between 0, up to and including 10,000?
(1) Puntos
Greenfoot.getRandomNumber(10,000)
Greenfoot.getRandomNumber(10,001) (*)
Greenfoot.getRandomNumber(9,999)
Greenfoot.getRandomNumber(0-10,000)
11.In Greenfoot, the origin of the world coordinate system (0,0) starts in
Marcar para Revisin
the center of the world. True or false?
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1.In the Greenfoot IDE, any new methods you create are written in the
Marcar para Revisin
class's source code, below the act method. True or false?
(1) Puntos
Verdadero (*)
Falso
Section 1
(Responder todas las preguntas de esta seccin)
1.In Greenfoot, the sound file must be saved in the scenario and written
Marcar para Revisin
in the source code for it to play. True or false?
(1) Puntos
Verdadero (*)
Falso
2.You cannot record unique sounds in Greenfoot. You can only use the
Marcar para Revisin
sounds that are stored in the Greenfoot library. True or false?
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1.From your Greenfoot lessons, which of the following are examples of
Marcar para Revisin
when abstraction techniques are used?
(1) Puntos
Assigning a sound file to an instance.
Assigning a keyboard key to an instance.
Assigning an image file to an instance.
All of the above. (*)
Section 1
(Responder todas las preguntas de esta seccin)
1. From your Greenfoot lessons, which of the following are examples
Marcar para Revisin
of actions that can be achieved using the while loop?
(1) Puntos
Create 50 instances of the Duke class.
Call the move method 1 million times.
Call the move and turn methods 10 times.
Create 100 instances of an Actor subclass.
All of the above. (*)
8. In the Greenfoot IDE, what does the AND operator (&&) do?
Marcar para Revisin
(1) Puntos
Compares two boolean values, and returns a boolean value
which is true if and only if both of its operands are true. (*)
Compares two boolean values, and returns a boolean value
which is true if and only if one of its operands are true.
Compares two boolean values and returns a boolean value which
is true if either one of the operands is true.
Compares two boolean variables or expressions and returns a
result that is true if either of its operands are true.
Section 1
(Responder todas las preguntas de esta seccin)
1.From your Greenfoot lessons, the __________ control structure is used to compare and make a
Marcar par
decision.
Conditional (*)
Repetition
Obsolete
Rewind
2.From your Greenfoot lessons, the __________ control structure is often referred to as loops.
Marcar par
Conditional
Repetition (*)
Obsolete
Rewind
2
3 (*)
4
5
6
7.In which step to create a Greenfoot game do you find and resolve errors in the game?
Marcar par
9.From your Greenfoot lessons, which of the following are examples of Q/A test variations?
Marcar par
. 10The variations listed below are examples of changing what part of Q/A testing?
Marcar par
Input numbers when characters are expected
Input characters when numbers are expected
Input symbols
Change the environment
Change the execution
Change the data (*)
None of the above
The code
The debugging process
The scenario (*)
The control statements
2. From your Alice lessons, inheritance means that the superclass inherits its traits from the subclass. True o
Verdadero
Falso (*)
Code
Project
Class (*)
Program
5. In Alice, the procedures' arguments allow the programmer to adjust the object, motion, distance amount,
false?
Verdadero (*)
Falso
6. Which of the
following actions
would require a
control statement
to control
animation timing?
(Seleccione todas las respuestas correctas)
A biped object walking. (*)
A rock object turning.
A fish swimming. (*)
A bird flying. (*)
7. In Alice, a computer program requires functions to tell it how to perform the procedure. True or
Verdadero
Falso (*)
12. A loop can be infinite (continue forever) or conditional (stops upon a condition).
True or false?
Verdadero (*)
Falso
14. In Alice, which of the following programming statements moves the butterfly
forward, double the distance to the tree?
15. From your Alice lessons, what does the Count control statement do?
17. From your Alice lessons, the "Checklist for Animation Completion" does not ask
questions about the scenario and storyboards, because these are not valid parts of
the animation creation process. True or false?
Verdadero
Falso (*)
18. Which of the following is not a reason for why comments are helpful in an Alice
program?
19. If the value already exists in the variable it is overwritten by the assignment
operator (=). True or false?
Verdadero (*)
Falso
boolean
String (*)
long
int
double
22. Which of the following programming instructions commands the fish to continuously move forward a ra
between 0.5 and 1.0 meters, minus 0.25 meters, until it collides with the shark?
(*)
Section 3
(Responder todas las preguntas de esta seccin)
23. In Greenfoot, what happens if the condition is false in an if-statement?
24. From your Greenfoot lessons, what are the ways that you can view a class's methods?
25. Which of the following type of audience should you ask to play your Greenfoot game during the testing
Testing
Target (*)
Primary
Programmer
26. When
Marcar para Revisin
designing a
(1) Puntos
game in
Greenfoot, it
helps to
define the
actions that
will take
place in a
textual
storyboard.
True or false?
Verdadero (*)
Falso
28. From your Greenfoot lessons, the reset button resets the
Marcar para Revisin
scenario back to its initial position. True or false?
(1) Puntos
Verdadero (*)
Falso
36. In Greenfoot,
Marcar para Revisin
what happens
(1) Puntos
if the end to a
while loop
isn't
established?
The code will keep executing and will never stop. (*)
The code will execute once and then stop, due to controls
in Greenfoot.
The code will prompt you to enter a loop counter.
The code will not execute.
50. Use you Greenfoot knowledge: What range of numbers does the
Marcar para Revisin
following method return?
(1) Puntos
Greenfoot.getRandomNumber(30)
A random number between 1 and 30.
A random number between 0 and 30.
A random number between 0 and 29. (*)
A random number between 1 and 29.
Section 4 - Using Eclipse
Prueba: Compiling with Eclipse - A First Program:
Quiz
Revise las respuestas, los resultados y las puntuaciones de las preguntas que se muestran a continuacin. Las
respuestas correctas estn marcadas con un asterisco (*).
Section 1
(Responder todas las preguntas de esta seccin)
1. When Eclipse launches, the Welcome page displays. Once this page is
Marcar para Revisin
closed you cannot return to the resources available on this page. True or
(1) Puntos
False?
Verdadero
Falso (*)
4. Tabs are used when more than one file is open in the edit area. True or
Marcar para Revisin
False?
(1) Puntos
Verdadero (*)
Falso
6. The ______________ is the location into which you will store and save your
Marcar para Revisin
files.
(1) Puntos
Perspective
Workspace (*)
Editor
None of the above
9. In Eclipse, when you run a Java Application, the results may be displayed in
Marcar para Revisin
the Console View. True or False?
(1) Puntos
Verdadero (*)
Falso
12.In a project, 2 of the classes must contain a main method. True or False?
Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
13.For every opening curly brace { there must be a closing curly brace} or the
Marcar para Revisin
program will not compile without error. True or False?
(1) Puntos
Verdadero (*)
Falso
14.Semi-colons at the end of each line are not required to compile successfully.
Marcar para Revisin
True or False?
(1) Puntos
Verdadero
Falso (*)
16.When converting gallons to liters its best to put the calculation result into a
Marcar para Revisin
variable with a _______________ data type.
(1) Puntos
int
double (*)
boolean
None of the above
Section 1
(Responder todas las preguntas de esta seccin)
1Which of the two diagrams below illustrate the general form of a Java program?
Marcar para
.
Revisin
(1) Puntos
Example A
Example B (*)
2When importing another package into a class you must import the entire package
Marcar para
. as well as the package classes that will be called. True or False?
Revisin
(1) Puntos
Verdadero
Falso (*)
Section 1
(Responder todas las preguntas de esta seccin)
1What is the output of the following lines of code?
Marcar
.
para Revisin
int j=7,k=5,m=8,result;
(1) Puntos
result=j/m*k;
System.out.println(result);
0 (*)
4.375
0.175
280
9Which of the following statements correctly assigns "3 times 10 to the 4th power" to the
Marcar
. variable number?
para Revisin
(1) Puntos
double number=3*10^4;
double number=3(e4);
double number=3e4; (*)
double number=3*10e4;
This programming style is poor because inside the method the global variable will have
precedence over the local variable with the same name.
True or false?
Verdadero
Falso (*)
1Which line of Java code properly calculates the volume of a cone using
Marcar
3
para Revisin
.
(1) Puntos
where r and h are Java primitive integers?
double V=1/3*3.14*r*r*h;
double V=(double)1/3*Math.PI*Math.pow(r,2)*h; (*)
double V=1/3*Math.PI*Math.pow(r,2)*h;
double V=(double)1/3*Math.PI*Math.pow(2,r)*h;
double V=1/3*3.14*r(2)*h;
Section 1
(Responder todas las preguntas de esta seccin)
1Consider the following code snippet. What is printed?
Marcar
.
para Revisin
String river = new String("Hudson"); (1) Puntos
System.out.println(river.length());
6 (*)
7
8
Hudson
river
PoliiPolii (*)
Polii
auaacauaac
auaac
ArrayIndexOutofBoundsException is thrown
"\\\\\"
\"\\\\\"
"\\" (*)
"\\\"
""\\"
""\"
""\
" (*)
"""\
""
""\
""
9The following program prints "Equal". True or false?
Marcar
.
para Revisin
(1) Puntos
Verdadero (*)
Falso
1Given the code below, which of the following would equate to true?
Marcar
1
para Revisin
. String s1 = "yes";
(1) Puntos
String s2 = "yes";
String s3 = new String(s1);
(Seleccione todas las respuestas correctas)
s1 == s2 (*)
s1 = s2
s3 == s1
s1.equals(s2) (*)
s3.equals(s1) (*)
1The String methods equals and compareTo perform the exact same
Marcar
2function. True or false?
para Revisin
.
(1) Puntos
Verdadero
Falso (*)
1The == operator can be used to compare two String objects. The result
Marcar
3is always true if the two strings are identical. True or false?
para Revisin
.
(1) Puntos
Verdadero
Falso (*)
Verdadero
Falso (*)
1Given the code below, which of the following calls are valid?
Marcar
5
para Revisin
. String s = new String("abc");
(1) Puntos
(Seleccione todas las respuestas correctas)
s.trim() (*)
s.replace('a', 'A') (*)
s.substring(2) (*)
s.toUpperCase() (*)
s.setCharAt(1,'A')
55555
87668 (*)
AtlanticPacificIndianArcticSouthern
The code does not compile.
An ArrayIndexOutofBoundsException is thrown.
55555
87658
AtlanticPacificIndianArcticSouthern
The code does not compile.
An ArrayIndexOutofBoundsException is thrown. (*)
Section 1
(Responder todas las preguntas de esta seccin)
1.What will print if the following Java code is executed?
Marcar para
Revisin
(1) Puntos
0
3 (*)
4
5
2.Which of the following correctly initializes an instance of Scanner, called "in", that
Marcar para
reads input from the console screen?
Revisin
(1) Puntos
Scanner in = new Scanner(System.in); (*)
Scanner in = new Scanner("System.in");
Scanner in = Scanner(System.in);
System.in in = new Scanner();
3.Which of the two diagrams below illustrate the correct syntax for variables used in
Marcar para
an if-else statement?
Revisin
(1) Puntos
Example A (*)
Example B
9.In Java, each case seqment of a switch statement requires the keyword break to avoid
Marcar para
"falling through".
Revisin
(1) Puntos
Verdadero (*)
Falso
1The following code fragment properly implements the switch statement. True or
Marcar para
0.false?
Revisin
(1) Puntos
default(input)
switch '+':
answer+=num;
break;
case '-':
answer-=num;
break;
!default
System.out.println("Invalid input");
Verdadero
Falso (*)
1How would you use the ternary operator to rewrite this if statement?
Marcar para
1.
Revisin
if (skillLevel > 5)
(1) Puntos
numberOfEnemies = 10;
else
numberOfEnemies = 5;
numberOfEnemies = ( skillLevel > 5) ? 5 : 10;
numberOfEnemies = ( skillLevel < 5) ? 10 : 5;
numberOfEnemies = ( skillLevel >= 5) ? 5 : 10;
numberOfEnemies = ( skillLevel >= 5) ? 10 : 5;
numberOfEnemies = ( skillLevel > 5) ? 10 : 5; (*)
1How would you use the ternary operator to rewrite this if statement?
Marcar para
2.
Revisin
if (gender == "male")
(1) Puntos
System.out.print("Mr.");
else
System.out.print("Ms.");
System.out.print( (gender == "male") ? "Mr." : "Ms." ); (*)
System.out.print( (gender == "male") ? "Ms." : "Mr." );
(gender == "male") ? "Mr." : "Ms." ;
(gender == "male") ? "Ms." : "Mr." ;
Section 1
(Responder todas las preguntas de esta seccin)
1. What is a loop?
Marcar para Revisin
(1) Puntos
A keyword used to skip over the remaining code.
A set of logic that is repeatedly executed until a certain condition is met.
(*)
A segment of code that may only ever be executed once per call of the
program.
None of the above.
2. It is necessary to end all loops at some point in your Java program. True or
Marcar para Revisin
false?
(1) Puntos
Verdadero (*)
Falso
7. A counter used in a for loop cannot be initialized within the For loop
Marcar para Revisin
statement. True or False?
(1) Puntos
Verdadero
Falso (*)
8. The syntax below represents a valid initialization of a for loop counter. True
Marcar para Revisin
or False?
(1) Puntos
public class ForLoop {
public static void main (String args[])
{
for (int i=10; i <20; i++)
{System.out.println("i: "+i); }
}
}
Verdadero (*)
Falso
9. For both the if-else construct and the for loop, it is true to say that when the
Marcar para Revisin
condition statement is met, the construct is exited. True or False?
(1) Puntos
Verdadero
Falso (*)
10.In a for loop, the counter is automatically incremented after each loop
Marcar para Revisin
iteration. True or False?
(1) Puntos
Verdadero
Falso (*)
11.Which of the following correctly initializes a for loop that executes 5 times?
Marcar para Revisin
(1) Puntos
for(int i = 0; i == 6; i++)
for(int i = 1; i < 6; i++) (*)
for(int i = 0; i < 5; I++)
for(int i = 1; i < 5; I++)
Section 6 - Using Arrays and Exceptions
Prueba: Using Arrays: Quiz
Revise las respuestas, los resultados y las puntuaciones de las preguntas que se muestran a continuacin. Las
respuestas correctas estn marcadas con un asterisco (*).
Section 1
(Responder todas las preguntas de esta seccin)
1. Which of the following statements is a valid array declaration?
Marcar para
Revisin
(1) Puntos
(Seleccione todas las respuestas correctas)
int number();
float average[]; (*)
double[] marks; (*)
counter int[];
3. Which of the following declares a one dimensional array named "score" of type
Marcar para
int that can hold 9 values?
Revisin
(1) Puntos
int score;
int[] score;
int[] score=new int[9]; (*)
int score=new int[9];
4. Which of the following declares and initializes a one dimensional array named
Marcar para
words of size 10 so that all entries can be Strings?
Revisin
(1) Puntos
String words=new String[10];
char words=new char[10];
char[] words=new char[10];
String[] words=new String[10]; (*)
222220
0 (*)
220
2
This code does not compile.
1286864
643432
262423242322
666666 (*)
This code does not compile.
8. Which of the following declares and initializes a two dimensional array named
Marcar para
values with 2 rows and 3 columns where each element is a reference to an
Revisin
Object? (1) Puntos
String[][] values={"apples","oranges","pears"};
String[][] values=new String[3][2];
String[][] values=new String[2][3]; (*)
String[][] values;
9. Which of the following declares and initializes a two dimensional array where
Marcar para
each element is a reference type?
Revisin
(1) Puntos
String words=new String[10];
char[][] words;
char[][] words=new char[10][4];
String[][] words=new String[10][3]; (*)
10Which of the following statements print every element of the one dimensional
Marcar para
. array prices to the screen?
Revisin
(1) Puntos
for(int i=0; i < prices.length; i++){System.out.println(prices[i]);} (*)
System.out.println(prices.length);
for(int i=1; i <= prices.length; i++){System.out.println(prices[i]);}
for(int i=0; i <= prices.length; i++){System.out.println(prices[i]);}
753
6
7766554433221
7531 (*)
This code does not compile.
12The following creates a reference in memory named y that can refer to five
Marcar para
. different integers via an index. True or false?
Revisin
(1) Puntos
int[] y = new int[5];
Verdadero (*)
Falso
13The following creates a reference in memory named z that can refer to seven
Marcar para
. different doubles via an index. True or false?
Revisin
(1) Puntos
double z[] = new double[7];
Verdadero (*)
Falso
14What is the output of the following segment of code if the command line
Marcar para
. arguments are "apples oranges pears"?
Revisin
(1) Puntos
apples
pears (*)
oranges
args
This code does not compile.
15What is the output of the following segment of code if the command line
Marcar para
. arguments are "apples oranges pears"?
Revisin
(1) Puntos
0
1
2
3 (*)
This code does not compile.
16What will be the content of array variable table after executing the following
Marcar para
. code?
Revisin
(1) Puntos
000
000
000
100
010
0 0 1 (*) la correcta
1 0 0 no es correcta
110
111
001
010
100
1286864 (*)
643432
262423242322
666666
This code does not compile.
18After execution of the following statement, which of the following are true?
Marcar para
.
Revisin
int number[] = new int[5];
(1) Puntos
number[0] is undefined
number[4] is null
number[2] is 0 (*)
number.length() is 6
Section 1
(Responder todas las preguntas de esta seccin)
1. Which of the following best describes lexicographical order?
Marcar para Revisin
(1) Puntos
A simple sorting algorithm that is inefficient on large arrays.
An order based on the ASCII value of characters. (*)
A complex sorting algorithm that is efficient on large arrays.
The order of indicies after an array has been sorted.
2. Which of the following is the correct lexicographical order for the conents of
Marcar para Revisin
the int array {17, 1, 1, 83, 50, 28, 29, 3, 71, 22}
(1) Puntos
{71, 1, 3, 28,29, 50, 22, 83, 1, 17}
{83, 71, 50, 29, 28, 22, 17, 3, 1, 1}
{1, 1, 17, 22, 28, 29, 3, 50, 71, 83}
{1, 2, 7, 0, 9, 5, 6, 4, 8, 3}
{1, 1, 3, 17, 22, 28, 29, 50, 71, 83} (*)
3. Bubble Sort is a sorting algorithm that involves swapping the smallest value
Marcar para Revisin
into the first index, finding the next smallest value and swapping it into the
(1) Puntos
next index and so on until the array is sorted. True or false?
Verdadero
Falso (*)
4. Which of the following sort algorithm was used to sort the char array {'M',
Marcar para Revisin
'S', 'A', 'T', 'H'}. The steps are shown below: {'M', 'S', 'A', 'T', 'H'} {'M', 'A',
(1) Puntos
'S', 'T', 'H'} {'A', 'M', 'S', 'T', 'H'} {'A', 'M', 'S', 'H', 'T'} {'A', 'M', 'H', 'S', 'T'}
{'A', 'H', 'M', 'S', 'T'}
Selection Sort
Merge Sort
Bubble Sort (*)
Sequential Search
Binary Search
6. Selection sort is a sorting algorithm that involves finding the minimum value
Marcar para Revisin
in the list, swapping it with the value in the first position, and repeating these
(1) Puntos
steps for the remainder of the list. True or false?
Verdadero (*)
Falso
7. Binary searches can be performed on sorted and unsorted data. True or false?
Marcar para Revisin
(1) Puntos
Verdadero
Falso (*)
8. Which searching algorithm involves using a low, middle, and high index
Marcar para Revisin
value to find the location of a value in a sorted set of data (if it exists)?
(1) Puntos
Sequential Search
Merge Sort
Selection Sort
Binary Search (*)
All of the above
9. A sequential search is an iteration through the array that stops at the index
Marcar para Revisin
where the desired element is found. True or false?
(1) Puntos
Verdadero (*)
Falso
10.Why might a sequential search be inefficient?
Marcar para Revisin
(1) Puntos
It utilizes the "divide and conquer" method, which makes the algorithm
more error prone.
It requires incrementing through the entire array in the worst case, which
is inefficient on large data sets. (*)
It involves looping through the array multiple times before finding the
value, which is inefficient on large data sets.
It is never inefficient.
Section 1
(Responder todas las preguntas de esta seccin)
1.Which of the following would give you an array index out of bounds
Marcar para Revisin
exception?
(1) Puntos
Misspelling a variable name somewhere in your code.
Refering to an element of an array that is at an index less than the length
of the array minus one.
Using a single equal symbol to compare the value of two integers.
Refering to an element of an array that is at an index greater than the
length of that array minus one. (*)
Unintentionally placing a semicolon directly after initializing a for loop.
2.What exception message indicates that a variable may have been mispelled
Marcar para Revisin
somewhere in the program?
(1) Puntos
variableName cannot be resolved to a variable (*)
method methodName(int) is undefined for the type className
Syntax error, insert ";" to complete statement
All of the above
8.A computer company has one million dollars to give as a bonus to the
Marcar para Revisin
employees, and they wish to distribute it evenly amongst them.
(1) Puntos
The company writes a program to calculate the amount each employee
receives, given the number of employees.
Unfortunately, the employees all went on strike before they heard about the
bonus. This means that the company has zero employees.
What will happen to the program if the company enters 0 into the employment
number?
(Seleccione todas las respuestas correctas)
An unfixable error will occur.
The program will calculate that each employee will receive zero dollars
because there are zero employees.
An exception will occur because it is not possible to divide by zero. (*)
The programmers will have proven their worth in the company because
without them the company wrote faulty code.