Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Hoiio Senior Web Engineer Practical Test

Please take note of the following before starting the test


You are NOT allowed to use computer during the test
You are NOT allowed to communicate with each other during the test.
Some questions may have more than 1 answer.
There is NO partial credit for a given question. If you get most, but not all, of a question correct,
you get ZERO credit for that question.
The time allowed for this test is 30 minutes.
Good luck!

1.
Given:
What is the result?
___ Tool Rake
___ Tool myRake
___ gt Tool Rake
___ gt Tool myRake
___ gt Tool gt Rake
___ gt Tool gt myRake
___ gt Tool gt Tool myRake
___ Compilation fails.
2.
Given:
What is the most likely result?
___ [a, f]
___ [a, f, a]
___ [a, f, c]
___ [a, f, a, c]
___ Compilation fails.
___ An exception is thrown at runtime.
3.
Given:
What is the result? (Choose all that apply.)
___ Compilation fails.
___ fa father ch child child
___ gf father gf child child
___ fa grandf ch grandf father
___ gfgrandfgfgrandffather
___ An exception is thrown at runtime.
4.
Given
Which are true? (Choose all that apply.)
___ 12
___ 22
___ 122
___ 233
___ 244
___ 566
___ Compilation fails
5.
Given:
What is the result?
___ fly fly fly fly
___ fly fly fly hover
___ fly fly hover hover
___ fly hover hover hover
___ hover hover hover hover
___ Compilation fails.
___ An exception is thrown at runtime.
6.
Given:
Which are true? (Choose all that apply.)
___ Compilation fails.
___ Elapsed time will be about 8 seconds.
___ Elapsed time will be about 9 seconds.
___ Elapsed time will be about 12 seconds.
___ Changing doSynch() to be unsynchronized will change elapsed by only a few milliseconds.
___ Changing doSynch() to be unsynchronized will change elapsed by 450 or more milliseconds.
7.
Given:
What is the result?
___ "t t2 f t"
___ "t t2 f t f"
___ "t t2 f t t2 f"
___ "t t2 f t ", followed by an exception.
___ "t t2 f t f ", followed by an exception.
___ "t t2 f t t2 f ", followed by an exception.
___ Compilation fails.
8.
Given the following pseudo-code design for a new accounting system:
Assuming the class and method names provide good definitions of their own functionalities, which
are probably true? (Choose all that apply.)
___ These classes appear to have low cohesion.
___ These classes appear to have high cohesion.
___ These classes appear to have weak validation.
___ These classes appear to have strong validation.
___ These classes appear to have weak encapsulation.
___ These classes appear to have strong encapsulation.
9.
Given:
Which statements will typically be true? (Choose all that apply.)
___ Compilation fails.
___ Loop #3 will tend to execute faster than Loop #2.
___ Loop #1 will tend to use less memory than the other two loops.
___ Loop #1 will tend to use more memory than the other two loops.
___ All three loops will tend to use about the same amount of memory.
___ In order for this code to compile, the java.util package is required.
___ If multiple threads need to use an object, the s2 object should be safer than the s3 object.
10.
Given:
Which, taken independently, are true? (Choose all that apply.)
___ If line 5 is uncommented, compilation fails due to an error at line 7.
___ If line 5 is uncommented, compilation fails due to an error at line 8.
___ If line 5 is uncommented, compilation fails due to an error at line 9.
___ If line 6 is uncommented, compilation fails due to an error at line 7.
___ If line 6 is uncommented, compilation fails due to an error at line 8.
___ If line 6 is uncommented, compilation fails due to an error at line 9.

You might also like