JavaScript & AJAX interview questions
1. JavaScript is interpreted by _________
A. Client
B. Server
C. Object
D. None of the above
2. Using _______ statement is how you test for a specific condition.
A. Select
B. If
C. Switch
D. For
3. 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}
4. How to create a Date object in JavaScript?
A. dateObjectName = new Date([parameters])
B. dateObjectName.new Date([parameters])
C. dateObjectName := new Date([parameters])
D. dateObjectName Date([parameters])
5. The _______ method of an Array object adds and/or removes elements from an array.
A. Reverse
B. Shift
C. Slice
D. Splice
6. 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 );
7. Which tag(s) can handle mouse events in Netscape?
A. <IMG>
B. <A>
C. <BR>
D. None of the above
8. ____________ is the tainted property of a window object.
A. Pathname
B. Protocol
C. Defaultstatus
D. Host
9. To enable data tainting, the end user sets the _________ environment variable.
A. ENABLE_TAINT
B. MS_ENABLE_TAINT
C. NS_ENABLE_TAINT
D. ENABLE_TAINT_NS
10. In JavaScript, _________ is an object of the target language data type that encloses an object of the source language.
A. a wrapper
B. a link
C. a cursor
D. a form
asp.net question: Whether inline, embedded and external style sheets are same?
No, they are different.
External Style Sheet :
An external style sheet is a seperate style sheet file used by many pages.
Internal Style Sheet :
An internal style sheet used specifically for a single page within the page
Inline Styles :
This can be achieved by the style property of each control.
interviews on jQuery
Getting friendly with jQuery (A beginners guide + added auto TOC generation + text entry limit)
jQuery is a javascript library with rich API to manipulate DOM, event handling, animation and ajax interactions. The following are the essential features of jQuery that makes it so appealing for client side scripting.
Starting with JQuery
This article gives a brief introduction about what is Jquery and what can be done using JQuery.
How would you use jQuery in ASP.NET Pages?
1.JQuery is officially endorsed by Microsoft ASP.NET team and ships with Microsoft plans to ship the JQuery JavaScript library with its Visual Studio developer tool suite.
2.JQuery is open source and can be downloaded freely from jQuery.com
3. jQuery is JavaScript library and can be used by simple referece of js files on your ASP.NET pages
4. The best place to do so is master page...
What is JQuery?
jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.
Benefits of JQuery:
1. Lightweight Footprint
About 23KB in size (Minified and Gzipped)
2. CSS3 Compliant
Supports CSS 1-3 selectors and more!
3. Cross-browser
IE 6.0+, FF 2+, Safari 3.0+, Opera 9.0+, Chrome