/  6
 
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.
 
D An instance of class A will have a means to navigate to an instance of class B. Ans- AQ.4 Click the Exhibit button.
 
Aclass MyClass {- x : int;- y : int;+ z : int;- ch : char;+ vel : float;+ acc : float;}Bclass MyClass {private x : int;private y : int;public z : int;private ch : char;public vel : float;public acc : float;}
 
Cclass MyClass {- int x;- int y;+ int z;- char ch;+ float vel;+ float acc;}Dclass MyClass {private int x;private int y;public int z;private char ch;public float vel;public float acc;}Eclass MyClass {private:int x;int y;char ch;public:int z;float vel;float acc;

Share & Embed

More from this user

Add a Comment

Characters: ...