Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

IBM 486 sample test question

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there
Here is the question:
Referring to the diagram in Figure Interface, which of the following are true?

a) Classes "X" and "Y" are subclasses of Mortgageable.

b) Instances of "X" and "Y" can be passed as parameters declared as type Mortgageable.

c) "X" and "Y" must implement a getAppraisedValue() method.

d) There are instances of Mortgageable in the production system.

B is definitely correct. Since X and Y are not italic, should the answer be C? Anyone got 100%?
http://certify.torolab.ibm.com/figures/test486F13.gif
Thanks
 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answers to the questions are B and C.
You are pretty confident about B , so no need to explain it.
As regards C, the reason it is correct because the classes are realizing the interface and any class realizing an interface must provide the services declared by the interface.
As the interface declares the method " getAppraisedValue()"
and in an interface, no method has an implementation
so the classes implementing this interface have to implement the methods specified by it.
Take a look at the figure again and you will see a dashed line, which is for "Realization".
Hope this helps
Muhammad Asif Abbasi
 
He loves you so much! And I'm baking the cake! I'm going to put this tiny ad in the cake:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic