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

CSE :: Javascript - CS

  1. The object has three object attributes namely

  2. A.

     Class, parameters, object’s extensible flag

    B.

     Prototype, class, objects’ parameters

    C.

     Prototype, class, object’s extensible flag

    D.

     Native object, Classes and Interfacces and Object’s extensible flag

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Consider the following code snippet :

    var book = {

    "main title": "JavaScript",

    'sub-title': "The Definitive Guide",

    "for": "all audiences",

    author: {

    firstname: "David",

    surname: "Flanagan"

    }

    };

    In the above snippet, firstname and surname are

  4. A.

     properties

    B.

     property values

    C.

     property names

    D.

     objects

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. A linkage of series of prototype objects is called as :

  6. A.

     prototype stack

    B.

     prototype chain

    C.

     prototype class

    D.

     prototypes

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Consider the below given syntax

    book[datatype]=assignment_value;

    In the above syntax, the datatype within the square brackets must be

  8. A.

     An integer

    B.

     A String

    C.

     An object

    D.

     None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the

  10. A.

     isPrototypeOf() method

    B.

     equals() method

    C.

     === operator

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Consider the following code snippet

    function f() {};

    The above prototype represents a

  12. A.

     Function f

    B.

     A custom constructor

    C.

     Prototype of a function

    D.

     Not valid

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The purpose of extensible attribute is to

  14. A.

     make all of the own properties of that object nonconfigurable

    B.

     to configure and bring a writable property

    C.

     “lock down” objects into a known state and prevent outside tampering

    D.

     all of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Identify the process done in the below code snippet

    o = {x:1, y:{z:[false,null,""]}};

    s = JSON.stringify(o);

    p = JSON.parse(s);

  16. A.

     Object Encapsulation

    B.

     Object Serialization

    C.

     Object Abstraction

    D.

     Object Encoding

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The basic purpose of the toLocaleString() is to

  18. A.

     return a localised object representation

    B.

     return a parsed string

    C.

     return a local time in the string format

    D.

     return a localized string representation of the object

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Javascript is _________ language.

  20. A.

     Programming

    B.

     Application

    C.

     None of These

    D.

     Scripting

    View Answer

    Workspace

    Discuss Discuss in Forum