261). What are the events generated by the Node objects called?

[A]generators
[B]emitters
[C]dispatchers
[D]highevents

Show Answer

262). What is the function used to deregister event handler ‘f’?

[A]deleteAllListeners(name)
[B]deleteListener(name,f)
[C] removeListener(name,f)
[D]removeAllListeners(name)

Show Answer

263). What is the function used to remove all handlers for name events?

[A]deleteAllListeners(name)
[B]deleteListener(name,f)
[C]removeListener(name,f)
[D]removeAllListeners(name)

Show Answer

265). Which of the following is an event emitter?

[A]once
[B]process
[C]listeners
[D]on

Show Answer

266). When do uncaught exceptions generate events?

[A]When handlers are registered
[B]When handlers are deregistered
[C]When handler functions are called
[D]When handlers do not have a matching catch clause

Show Answer

267). Which among the following POSIX signals generate events?

[A]SIGDOWN
[B]SIGFLOAT
[C]SIGINT
[D]SIGSHORT

Show Answer

268). What is the method used to pause “data” events?

[A] s.pause();
[B]s.stop();
[C]s.halt();
[D] s.wait();

Show Answer

269). When the “end” event fires on EOF when no more data will arrive, which function is called?

[A] s.on(“data”,f);
[B] s.on(“end”,f);
[C]s.on(“error”,f);
[D]s.on(“default”,f);

Show Answer

270). What will be the return value of the write() method when the Node cannot write the data immediately and has to buffer it internally?

[A]0
[B]1
[C]True
[D]False

Show Answer

271). If the user presses “ok” in the dialog box then what will be the output of the following JavaScript code?
function msg()
{  
    var v= confirm("Are u sure?");  
    if(v==true)
    {  
        alert("yes");  
    }  
    else
    {  
        alert("no");  
    }  
}

[A]true
[B]yes
[C]no
[D]undefined

Show Answer

272). What will be the output of the following JavaScript code?
document.writeln("
navigator.appCodeName: "+navigator.appCodeName);

[A]Browser name
[B]Version
[C]Error
[D]Undefined

Show Answer

273). What will be the output of the following JavaScript code?
document.writeln("
navigator.language: "+navigator.language);

[A]Broswer name
[B]Browser language
[C]Browser version
[D]Error

Show Answer

274). What will be the output of the following JavaScript code?
document.writeln("
navigator.appVersion: "+navigator.appVersion);

[A] Browser version
[B]Browser name
[C]Browser language
[D]Error

Show Answer

275). What will be the output of the following JavaScript code?
document.writeln("
screen.width: "+screen.width);

[A]Browser length
[B]Browser width
[C]Browser area
[D]Error

Show Answer