Sun Java Solaris Communities My SDN Account Join SDN
 
Jess In Action

QUIZ: Jess in Action

 

Quizzes Index


Duke

This quiz is based on the Chapter 13, "Adding a graphical interface," of the book Jess in Action published by Manning Publications Company. Test your knowledge of Jess, the rule engine and scripting language for Java technology.

Choose the best answer(s) for each question, then click Submit to see how you scored.

 

  1. Jess is a:
     A. application server
     B. rule engine
     C. database
     D. scripting language
     E. Choices B and D
  2. In Jess, you can create a Java object using:
     A. make-new-object
     B. an object factory
     C. new
     D. very small tweezers
  3. The command to introduce a global variable in Jess is:
     A. set-reset-globals
     B. defglobal
     C. make-variable
     D. There are no global variables in Jess
  4. To add an event handler to a JButton from Jess, you can use:
     A. jess.buttons.Presser
     B. jess.swing.JButtonEventHandler
     C. jess.awt.ActionListener
     D. None of the above
  5. Jess's rule engine is implemented in a class named:
     A. Jess
     B. jess.Main
     C. jess.Rete
     C. jess.Engine
  6. In Jess, you can access a member variable of a Java object using:
     A. a dot
     B. the get-member and set-member functions
     C. an arrow
     D. you can't access member variables from Jess
  7. You can introduce a Jess language function using:
     A. deffunction
     B. new-function
     C. makeFunction
  8. Which statement about Jess is false?
     A. Rules can fire on one thread while working memory is modified on another
     B. Jess creates several threads for its own use.
     C. Jess works well in a multithreaded environment
     D. The waitForActivations method calls wait.
  9. The Jess function that stops the rule engine is called
     A. stop
     B. freeze
     C. dont-run
     D. halt
  10. When writing automated tests for graphical Jess programs, try not to use
     A. screen coordinates
     B. java.awt.Robot
     C. commercial testing tools
     D. all of the above
  11. The Jess analog of the Java "import" keyword is
     A. the function "include"
     B. the method "load"
     C. the keyword "import"
     D. the function "import"
  12. You can invoke Java static methods from Jess using
     A. invoke
     B. you can't call static methods from Jess
     C. call
     D. call-static-method
  13. Given a variable ?tf holding a javax.swing.JTextField, which line of Jess code sets its text to "Hello, World"?
     A. ?tf.setText("Hello, World")
     B. (?tf setText "Hello, World")
     C. (?tf setText("Hello, World"))
     D. ?tf->setText('Hello, World')