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


  3. The type of a variable that is volatile is

  4. A.

     Volatile variable

    B.

     Mutable variable

    C.

     Immutable variable

    D.

     Dynamic variable


  5. A hexadecimal literal begins with

  6. A.

     00

    B.

     0x

    C.

     0X

    D.

     Both 0x and 0X


  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]


  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


  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


  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


  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)


  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


  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)