JavaScript & AJAX interview questions Part(2)

on 10:56 AM

Choose the client-side JavaScript object?
A.  Database
B.   Cursor
C.  Client
D.  FileUpLoad

27.  Which of the following is not considered a JavaScript operator?
A.  new
B.  this
C.  delete
D.  typeof

28.  ______method evaluates a string of JavaScript code in the context of the specified object.
A.  Eval
B.   ParseInt
C.  ParseFloat
D.  Efloat

29.  Which of the following event fires when the form element loses the focus: button, input ,label ,select ,textarea?
A.  onfocus
B.  onblur
C.  onclick
D.  ondblclick

30.  The syntax of Eval is ________________
A.  [objectName.]eval(numeric)
B.  [objectName.]eval(string)
C.  [EvalName.]eval(string)
D.  [EvalName.]eval(numeric)

31.  JavaScript is interpreted by _________
A.  Client
B.   Server
C.  Object
D.  None of the above

32.  Using _______ statement is how you test for a specific condition.
A.  Select
B.  If
C.  Switch
D.  For

33.  Which of the following is the structure of an if statement?
A.  if (conditional expression is true) thenexecute this codeend if
B.   if (conditional expression is true)execute this codeend if
C.  if (conditional expression is true)   {then execute this code>->}
D.  if (conditional expression is true) then {execute this code}

34.  How to create a Date object in JavaScript?
A.  dateObjectName = new Date([parameters])
B. Date([parameters])
C.  dateObjectName := new Date([parameters])
D.  dateObjectName Date([parameters])

35.  The _______ method of an Array object adds and/or removes elements from an array.
A.  Reverse
B.   Shift
C.  Slice
D.  Splice

36.  To set up the window to capture all Click events, we use which of the following statement?
A.  window.captureEvents(Event.CLICK);
B.   window.handleEvents (Event.CLICK);
C.  window.routeEvents(Event.CLICK );
D.  window.raiseEvents(Event.CLICK );

37.  Which tag(s) can handle mouse events in Netscape?