Skip to content
Ondina edited this page Sep 9, 2011 · 4 revisions

Robotlegs Quiz

Conditions:

Only newbies are allowed to participate.

Cheating is allowed, but not recommended ;)

You have to answer at least 15 questions correctly.

Note: Some questions have more than one correct answer.

The Questions:

###1. Who is the creator of robotlegs-as3?
  1. Shaun Smith
  2. Stray
  3. Joel Hooks
  4. Till Schneidereit
  5. Robert Penner
  6. None of the above
###2. Who is the creator of SwiftSuspenders?
  1. Shaun Smith
  2. Stray
  3. Joel Hooks
  4. Till Schneidereit
  5. Robert Penner
  6. None of the above
###3. Who is the creator of as3-signals?
  1. Shaun Smith
  2. Stray
  3. Joel Hooks
  4. Till Schneidereit
  5. Robert Penner
  6. None of the above
###4. Who has written at least one utility for Robotlegs?
  1. Shaun Smith
  2. Stray
  3. Joel Hooks
  4. Till Schneidereit
  5. Robert Penner
  6. None of the above
###5. What is Robotlegs?
  1. Robotlegs is a pure AS3 micro-architecture framework for developing Flash, Flex, and AIR applications.
  2. Something related to robotics.
  3. A toy.
###6. Robotlegs uses automated, metadata based Dependency Injection. By default, the Robotlegs framework is equipped with the SwiftSuspenders injection/reflection library.
  1. true
  2. false
###7. What does MVC stand for?
  1. Model-View-Controller
  2. Marvel vs. Capcom
  3. Maximum Voluntary Contraction
###8. What is a Robotlegs Context?
  1. The Context provides a central event bus and takes care of its own startup and shutdown.
  2. A Context defines scope. Framework actors live within a Context and communicate with one another within the scope of that Context.
  3. A processor state.
###9. Which one is correct?
  1. [inject]
  2. [INJECT]
  3. [InJect]
  4. [Inject]
###10. Which type of dependency injection is supported by SwiftSuspenders ?
  1. Property (field) Injection
  2. Parameter (method/setter) Injection
  3. Constructor Injection
  4. All of the above
###11. There are several methods available on the injector for mapping your Model classes for injection into your framework actors. Which one is correct?
  1. injector.mapValue(SomeModelClass, someModelClassInstance)
  2. injector.mapClass(SomeModelClass, SomeModelClass)
  3. injector.mapClass(ISomeModelClass, SomeModelClass)
  4. injector.mapSingleton(SomeModelClass, SomeModelClass)
  5. None of the above.
###12. Which one is correct?
  1. [Inject]
    private var someValue:SomeType;
  2. [Inject]
    public var someValue:SomeType;
  3. [Inject];
    public var someValue:SomeType;
###13. The Controller tier is represented by the Model class.
  1. true
  2. false
###14. Usually, Commands are short-lived stateless objects: they are instantiated, executed and then immediately disposed of.
  1. true
  2. false
###15. Commands are registered to a Context via the Context’s MediatorMap.
  1. true
  2. false
###16. You can map Commands like this: commandMap.mapEvent(SomeResultsEvent.DATA_RECEIVED, SomeCoolCommand, SomeResultsEvent);
  1. true
  2. false
###17. Will the following code trigger the Command SomeCoolCommand?
dispatch(new SomeResultsEvent(SomeResultsEvent.DATA_RECEIVED, someTypedPayload))
  1. yes
  2. no
###18. A Mediator acts on behalf of other framework actors by responding to their Events and modifying its View Component accordingly.
  1. true
  2. false
###19. A Mediator can be mapped in any class that has the MediatorMap instance available. This includes the Mediator, Context, and Command classes.
  1. true
  2. false
###20. You can map a View like this: mediatorMap.mapView( viewClassOrName, mediatorClass, injectViewAs, autoCreate, autoRemove );
  1. true
  2. false
###21. A Mediator notifies other framework actors of Events created by the View Component by relaying those Events, or dispatching appropriate Events to the framework.
  1. true
  2. false
###22. All of the actors in the framework carry an eventDispatcher property that is injected into the class when it has been instantiated. The eventDispatcher is a Mediator’s mechanism for sending and receiving framework events.
  1. true
  2. false
###23. Mediators are the only actors that receive framework events.
  1. true
  2. false
###24. A Model provides an API that is used by other framework actors to access, manipulate, and update application data.
  1. true
  2. false
###25. Services are typically stateless entities. They do not store the data that is returned from an external service, but instead send framework events so that response data and faults can be managed by the appropriate framework actors.
  1. true
  2. false
###26. Models and Services do not listen for or respond to events.
  1. true
  2. false
###27. Commands are triggered in response to framework events.
  1. true
  2. false
###28. Which one is correct? 1.
public class Main extends Sprite
{
private var context:SomeContext;

public function Main() { context = new SomeContext(this); }
}

2.
public class Main extends Sprite
{ 
  public function Main()
  {
  var  context:SomeContext= new SomeContext(this);
  }
}

###29. Would the following code work?

package controller 
{
  import model.SomeModel;
  import org.robotlegs.mvcs.Command;
  public class SomeCommand extends Command
  {
      [Inject]
      public var model:SomeModel;

      [Inject]
      public var event:SomeModel;

      override public function execute():void
      {
          model.someMethod();
      }
  }
}
  1. yes
  2. no
###30. Have you read the Robotlegs’ Best Practices and Common Problems?
  1. yes
  2. no
Clone this wiki locally