TRB - Computer Instructor - Computer Science - Web Scripting

Buy Computer Instructors Grade I -Tamil Nadu Board Practice test pack

Question - 1

The behaviour of the instances present of a Class inside a method is defined by_________

  • A Method
  • B Classes
  • C Interfaces
  • D Classes and Interfaces

Question - 2

The keyword or the property that you use to refer to an object through which they were invoked is________

  • A from
  • B to
  • C this
  • D object

Question - 3

The basic difference between JavaScript and Java is__________

  • A There is no difference
  • B Functions are considered as fields
  • C Variables are specific
  • D Functions are values, and there is no hard distinction between methods and fields

Question - 4

The meaning for Augmenting classes is that:

  • A objects inherit prototype properties even in dynamic state
  • B objects inherit prototype properties only in dynamic state
  • C objects inherit prototype properties in static state
  • D object doesn't inherit prototype properties in static state

Question - 5

The property of JSONO method is:

  • A it can be invokedmanuallyas object.,JSON()
  • B it will be automatically invoked by the compiler
  • C it is invoked automatically by the JSON. stringifyO method
  • D it cannot be invoked in any form

Question - 6

When a class B can extend another class A, we say that:

  • A A is the s,uperclass and B is the subclass
  • B B is the superclass and A is the subclass
  • C Both 'Aand B are the superclass
  • D Both A and B are the subclass

Question - 7

If A is the superclass and B is the subclass, then subclass inheriting the superclass can be represented as__________

  • A B=inherit(A);
  • B Bs=Afnheritt();
  • C B.prototype=inherit(A);
  • D B.prototype = inherit(A. prototype);

Question - 8

The method that can be used to create new properties' and also to nlodify the attributes of existing properties is___________.

  • A Object.defineProperty()
  • B Object.defineProperties ()
  • C Both Object.defineProperty() and Object. defineProperties()
  • D Object.inherit()

Question - 9

The word "document" mainly refers to

  • A Dynamic Information
  • B Static Information
  • C Both Dynamic and Static Information
  • D Temporary information

Question - 10

Which object is the main entry point to all clientside JavaScript features and APls?

  • A Standard
  • B Location
  • C Window
  • D Position