JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
ATU Galway PrimaryCode and Java
Please answer this test as honestly as possible, it is mandatory to answer each question, be honest, it does not count for a grade
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Email
*
Your email
Who is your teacher?
*
John French
Michael Duignan
1. If the following Java code is executed, what will be displayed on the screen?
*
a
b
2. If the following Java code is executed, what will be displayed on the screen?
*
b
a
3. If the following Java code is executed, what will be displayed on the screen?
*
a
b
4. If the following Java code is executed, what will be displayed on the screen?
*
d
b
a
c
5. If the following Java code is executed, what is the screen output and the contents of the variables?
*
b
d
a
c
6. If the following Java code is executed, what is the screen output and the contents of the variables?
*
b
d
a
c
7. If the following Java code is executed, what is the screen output and the contents of the variables?
*
c
d
b
a
8. If the following Java code is executed, what is the screen output and the contents of the variables?
*
d
b
a
c
9. If the following Java code is executed, what is the screen output and the contents of the variables?
*
a
b
d
c
10. If the following Java code is executed, what is the content of the variables?
*
b
a
d
c
11. If the following Java code is executed, what is the content of the variables?
*
a
b
c
12. If the following Java code is executed, what is the screen output and the contents of the variables?
*
a
c
b
d
13. If the following Java code is executed, what is the screen output and the contents of the variables?
*
d
b
c
a
14. If the following Java code is executed, what is the screen output and the contents of the variables?
*
b
a
15. If the following Java code is executed, what is the output on the screen?
*
none of them
b
a
16. Considering the following structure that represents a function, indicate which option is true
*
The function is of type void
The function returns a value
The function returns nothing
does not represent a function
17. Considering the following structure that represents a function, if
number1
is equal to 8 and
number2
is equal to 3, what value will have the variable
solucion
after the call?
*
11
111
0
empty
18. Considering the following code, if
letter1
= a and
letter2
= b, what value will
resultado
and
solucion
have after execution?
*
resultado=ab , solucion=
resultado= , solucion= ab
resultado=ab , solucion= ab
resultado= , solucion=
19. Considering the following code, if number1= 2 and number2 =5, what value will return
resultado
after execution?
*
does not return any, just displays on the screen
7
20. Considering the following code, and the array on the right, what would be the output on the screen?
*
End of program!
Ball found in position 4 (line break) End of program!
Ball found in position 4 End of program!
Ball found in position 3 (line break) End of program!
21. Considering the following code, and the values ​​of the array on the right, what would be the value of the variables
valor
and
total
after its execution?
*
valor= and total=29
valor=9 and total=29
valor=4 and total=29
valor=8 and total=29
22. Considering the following code, what would be the value of the array after its execution?
*
d
a
c
b
23. Considering the following code, which statement is correct?
*
All the options are correct
not a recursive code
the blue color represents the base case
the purple color represents the base case
24. Considering the following code, which statement is correct?
*
Represents a typical case of collision recursion
Represents a typical case of mutual recursion
Represents a typical case of linear recursion
Represents a typical case of tail recursion
25. Considering the following code, what is displayed on the screen at the end of its execution?
*
3
5
6
2
26. Which is the state that best represents what happens after the execution of the following code?
*
c
a
b
d
27. What will appear on the screen after the execution of this code?
*
nothing
2+2=4
4
none is correct
28. What do you suggest is happening in the image, or the associated Java code?
*
read array and write binary file
reading the array and output to the screen
None is correct
reading from array and writing to text file
Submit
Clear form
This content is neither created nor endorsed by Google. -
Terms of Service
-
Privacy Policy
Does this form look suspicious?
Report
Forms
Help and feedback
Contact form owner
Help Forms improve
Report