page-banner
WDP M2-R5.1 Quiz-10
Q 1. JS में ईवेंट हैंडलर्स की आवश्यकता क्यों है?<break-line><break-line>Why are event handlers needed in JS?

A. Allows JavaScript code to change the behavior of Windows

B. Adds the innerHTML page to the code

C. change server location

D. handles exceptions and events

Q 2. निम्नलिखित में से कौन सा ढांचा नहीं है?<break-line><break-line>Which of the following is not a structure?

A. Javascript .NET

B. Javascript

C. Cocoa JS

D. jQuery

Q 3. निम्नलिखित में से कौन सी प्रॉपर्टी जेएस त्रुटियों के जवाब में ट्रिगर होती है?<break-line><break-line>Which of the following property is triggered in response to JS errors?

A. onclick

B. onerror

C. on message

D. an exception

Q 4. निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following JavaScript code?<pre><code>function compare() { int a=1; char b=1; if(a.tostring()===b) return true; else return false; }</code></pre>

A. runtime error

B. Logical error

C. true

D. false

Q 5. हम किस HTML एलीमेंट में जावास्क्रिप्ट कोड डालते हैं?<break-line><break-line>Which HTML element do we use to insert JavaScript code?

A. <javascript>...</javascript>

B. <js>...</js>

C. <script>...</script>

D. <css>...</css>