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

CSE :: Javascript - CS

  1. Consider the following snippet code

    var string1 = ”123”;

    var intvalue = 123;

    alert( string1 + intvalue );

    The result would be

  2. A.

     123246

    B.

     246

    C.

     123123

    D.

     Exception

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A function definition expression can be called

  4. A.

     Function prototype

    B.

     Function literal

    C.

     Function definition

    D.

     Function declaration

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The property of a primary expression is

  6. A.

     stand-alone expressions

    B.

     basic expressions containing all necessary functions

    C.

     contains variable references alone

    D.

     complex expressions

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Consider the following statements

    var text = "testing: 1, 2, 3"; // Sample text

    var pattern = /d+/g // Matches all instances of one or more digits

    In order to check if the pattern matches with the string “text”, the statement is

  8. A.

     text==pattern

    B.

     text.equals(pattern)

    C.

     text.test(pattern)

    D.

     pattern.test(text)

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The JavaScript’s syntax calling ( or executing ) a function or method is called

  10. A.

     Primary expression

    B.

     Functional expression

    C.

     Invocation expression

    D.

     Property Access Expression

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. What kind of an expression is “new Point(2,3)”?

  12. A.

     Primary Expression

    B.

     Object Creation Expression

    C.

     Invocation Expression

    D.

     Constructor Calling Expression

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the operator is used to test if a particular property exists or not?

  14. A.

     in

    B.

     exist

    C.

     within

    D.

     exists

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Among the following, which one is a ternary operator?

  16. A.

     +

    B.

     :

    C.

     –

    D.

     ?:

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. “An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called

  18. A.

     Properties

    B.

     Prototypes

    C.

     Lvalue

    D.

     Definition

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. JavaScript is a _______________ language

  20. A.

     Object-Oriented

    B.

     High-level

    C.

     Assembly-language

    D.

     Object-Based

    View Answer

    Workspace

    Discuss Discuss in Forum