SCJA SAMPLE QUESTIONS BY SUN MICROSYSTEM
Q.1 You are creating a space flight simulation for a start-up aeronautics company. Thissimulation program must calculate the orbital mechanics and display the flight path on agraphics screen.What type of data is most appropriate for calculating the orbital mechanics equations?A pixelB booleanC integerD floating pointE enumerated typeAns-D Q.2 Which two are required for proper information hiding? (Choose two.)A All attributes must be marked with hidden.B All attributes must be marked with private.C Internal methods must be marked with hidden.D Internal methods must be marked with private.E All attributes must be given public accessor and mutator methods.F All attributes must be given exposed accessor and mutator methods.Ans – B,D Q.3 Click the Exhibit button.a----
bWhich two are true? (Choose two.)A The multiplicity on the endpoint for class B is undefined.B The multiplicity on the endpoint for class B is implicitly one.C The arrow between class A and class B is an inheritance relationship.
Add a Comment