Home / CSE / Javascript - CS :: Parsing, Benchmarking and Logging

CSE :: Javascript - CS

  1. What does the getInputHtml() return?

  2. A.

     Input

    B.

     Fieldtype’s input HTML

    C.

     Array

    D.

     Value


  3. How many arguments does the getInputHtml() accept?

  4. A.

     1

    B.

     2

    C.

     3

    D.

     4


  5. Which is the method used to process on the input’s post data before it is saved to the database?

  6. A.

     prep()

    B.

     settings()

    C.

     defineSettings()

    D.

     prepSettings()


  7. What is the purpose of the parameter $name ?

  8. A.

     Document Name

    B.

     Input Name

    C.

     Output Name

    D.

     ID


  9. What does the method defineSettings() return?

  10. A.

     Array of settings name

    B.

     Array of hash key

    C.

     Array of strings

    D.

     None of the mentioned


  11. What is the purpose of the parameter $value?

  12. A.

     Field’s expected value

    B.

     Field’s previous value

    C.

     Field’s current value

    D.

     Field’s probability value


  13. When does the defineContentAttribute() method return a false?

  14. A.

     Data stored in different table

    B.

     Data stored in its own table

    C.

     Data is not stored at all

    D.

     Data is not obtained


  15. How many events does the BaseFieldType provide?

  16. A.

     1

    B.

     2

    C.

     3

    D.

     4


  17. Which method is called right before a field is saved?

  18. A.

     onBeforeSave()

    B.

     BeforeSave()

    C.

     SaveBefore()

    D.

     None of the mentioned


  19. Which of the following are JavaScript logging library?

  20. A.

     log

    B.

     loglevel

    C.

     leveljavascript

    D.

     jslogjava