Home / CSE / Javascript - CS :: Basic and Variables

CSE :: Javascript - CS

  1. JavaScript Code can be called by using

  2. A.

     RMI

    B.

     Triggering Event

    C.

     Preprocessor

    D.

     Function/Method

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The type of a variable that is volatile is

  4. A.

     Volatile variable

    B.

     Mutable variable

    C.

     Immutable variable

    D.

     Dynamic variable

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. A hexadecimal literal begins with

  6. A.

     00

    B.

     0x

    C.

     0X

    D.

     Both 0x and 0X

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The generalised syntax for a real number representation is

  8. A.

     [digits][.digits][(E|e)[(+|-)]digits]

    B.

     [digits][+digits][(E|e)[(+|-)]digits]

    C.

     [digits][(E|e)[(+|-)]digits]

    D.

     [.digits][digits][(E|e)[(+|-)]digits]

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. When there is an indefinite or an infinity value during an arithmetic value computation, javascript

  10. A.

     Prints an exception error

    B.

     Prints an overflow error

    C.

     Displays “Infinity”

    D.

     Prints the value as such

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following is not considered as an error in JavaScript?

  12. A.

     Syntax error

    B.

     Missing of semicolons

    C.

     Division by zero

    D.

     All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The escape sequence ‘f’ stands for

  14. A.

     Floating numbers

    B.

     Representation of functions that returns a value

    C.

     f is not present in JavaScript

    D.

     Form feed

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The snippet that has to be used to check if “a” is not equal to “null” is

  16. A.

     if(a!=null)

    B.

     if (!a)

    C.

     if(a!null)

    D.

     if(a!==null)

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The statement a===b refers to

  18. A.

     Both a and b are equal in value, type and reference address

    B.

     Both a and b are equal in value

    C.

     Both a and b are equal in value and type

    D.

     There is no such statement

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)

  20. A.

     false.toString()

    B.

     String(false)

    C.

     String newvariable=”false”

    D.

     Both false.toString() and String(false)

    View Answer

    Workspace

    Discuss Discuss in Forum