Home / CSE / Javascript - CS :: Caching and Debugging

CSE :: Javascript - CS

  1. What are the two parts of JavaScript libraries?

  2. A.

     “script” tag and “body” tag

    B.

     External JavaScript and the “script” tag

    C.

     “html” tag and “body” tag

    D.

     None of the mentioned


  3. Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?

  4. A.

     user_pref("javascript.console.open_on_error", true);

    B.

     user_pref("javascript.console.open_error ", true);

    C.

     user_pref("javascript.console.open_error ", false);

    D.

     user_pref(" javascript.console.open_on_error", false);


  5. Which of the following is possible to be referenced in external JavaScript?

  6. A.

     cpp

    B.

     cs

    C.

     php

    D.

     all of the mentioned


  7. Which of the following attribute takes the source of the PHP file?

  8. A.

     img

    B.

     src

    C.

     source

    D.

     none of the mentioned


  • What kind of path can the PHP file be?

  • A.

     Absolute

    B.

     Relative

    C.

     Either Absolute or Relative

    D.

     Both Absolute and Relative


  • Which of the following global variables is used to get parameters?

  • A.

     $HTTP_GET_VAR[]

    B.

     $HTTP_GET_VARS()

    C.

     $HTTP_GET_VARS

    D.

     $HTTP_GET_VARS[]


  • What is the purpose of the RegExp method test()?

  • A.

     Tests for a match in its float parameter

    B.

     Tests for a match in its string parameter

    C.

     Tests for a match in its integer parameter

    D.

     None of the mentioned


  • What is the purpose of the function parameter filetype?

  • A.

     File type to be expected

    B.

     File type previously got

    C.

     File type that should not be got

    D.

     None of the mentioned


  • Which of the following is the method used to add an element to the desired location?

  • A.

     add.element()

    B.

     element.add()

    C.

     element.appendChild()

    D.

     none of the mentioned


  • Which program code doesn’t need preprocessing before being run?

  • A.

     Text

    B.

     Script

    C.

     Both Text and Script

    D.

     None of the mentioned