Friday, November 15, 2013

oDesk Magento eCommerce Test Answers

Magento is a powerful ecommerce system with a steep learning curve, aimed at larger ecommerce sites.


Which THREE of the following locations in app/code/local/Some/Module/ are configurable?

a. Block/
b. Helper/
c. Model/
d. controllers/
e. etc/

Which THREE of the following are required for tier prices in Magento?

a. Website
b. Store
c. Store View
d. Customer
e. Customer Group
f. Quantity

On quote address entities, the shipping_method property is composed of_______and_______. (Choose TWO)

a. carrier code
b. store code
c. carrier title
d. method code
e. customer group code
f. website code
g. method title

Which of the following is called to apply taxes on the product view page?

a. Mage_Tax__Helper_Data
b. Mage_Tax_Model_Sales_Total_Quote_Tax
c. Mage_Sales_Model_Quote_Address_Total_Tax
d. Mage_Catalog_Model_Product_Type_Price

Assuming a standard Magento installation, which property of every shipping carrier's model pointsto that shipping carrier's configuration?

a. $_code
b. $_id
c. $_carrierCode
d. $ carrier

To be functional, a shipping carrier model must implement the methods of the____and _____ classes.(Choose TWO)

a. Mage_Shipping_Model_Carrier
b. Mage_Shipping_Model_Carrier_Abstract
c. Mage_Shipping_Model_Shipping
d. Mage_Shipping_Model_Rate_Request
e. Mage_Shipping_Model_Carrier_ lnterface

Which one of the following is a possible return value type of Mage::getConfig()->getNode()?

a. array
b. integer
c. object
d. string

Assume you have three models A, B and C. Both A and B extend C. Assume C contains a method that you are going to change in both A and B. How can you change the method using Magentoclass rewrites.

a. Rewrite class C using the xpath global/models/_MODULE_/rewrite/C
b. Rewrite the method using the xpath global/models/_YOUR_MODULE_/rewrite/C/_METHOD_
c. You must rewrite both A and B using the xpaths global/models/_MODULE_/rewnte/A and global/models/_MODULE_
d. You must change that method directly in C

Which one of the following xpaths is correct for replacing
Mage_Page_Block_Html_Head with Custom_Module_Block_Head via the block factory method?

a. global/rewrite/blocks/page/html/head
b. global/blocks/page/html_head
c. global/blocks/rewrite/page/head                                      
d. global/blocks/page/rewrite/html_heacl
e. global/page/biocks/fewrite/html_head

Which of the following does NOT return an instance of a helper object

a. Mage::app()->getLayout()->helper('customer');
b. Mage::helper('customer');
c. Mage::app()->helper(‘customer’);
d. Mage::app()->getLayout()->createBlock(‘core/template')
                            ->helper('customer');

Which TWO of the following classes exist in Magento?

a. Catalog_Model_Product_Type_Composite
b. Catalog_Model_Product_Type_Virtual
c. Catalog_Model_Product_Type_Price
d. Catalog_Model_Product_Type_Physical
e. Catalog_Model_Product_Type_lndex

Which of the following will correctly translate the value of the label node?

 a. 
     Value
 
 b.  Value
 
 c.
     Value
 
 d.
 
     Value
 

Which one of the following xpaths can be read using Mage::getStoreConfig('some/value')?

a. default/some/value
b. global/default/some/value
c. some/value
d. stores/some/value
e. some/value/default

In a fresh installation of native Magento, the email templates are stored in the

a. emailfolder of the current theme
b. app/design/email folder
c. app/locale/_LOCALE_/template/email folder
d. app/design/base/default/default/template/email folder

Which of the following module files is evaluated first?

a. app/code/core/Mage/Api/etc/adminhtml.xml
b. app/code/core/Mage/Api/etc/config.xml
c. app/code/core/Mage/Api/etc/system.xml
d. app/etc/modules/Mage_Api.xml

Saturday, November 9, 2013

oDesk Adobe Illustrator CS5 Extended Test Answers

How does checking the "Align New Objects to Pixel Grid" option, highlighted in red in the image above, affect the new objects drawn by you?


a.
It enables an object to have its vertical and horizontal paths aligned to the pixel grid.

b.
It enables an object to have its curved paths aligned to the pixel grid.

c.
It provides a crisp appearance to the curved path aligned to the pixel grid even in the raster output.

d.
a and b



The 9-slice scaling grid is visible only in isolation mode and you can scale the content of each grid independently.


a.
True
b.
False



Which of the following tools CANNOT be used with the Perspective Grid tool?


a.
Flare Tool
b.
Star Tool
c.
Spiral Tool
d.
Polar Grid Tool

                                

Which of the following tools performs different tasks related to symbols?


a.
Symbol Shifter tool
b.
Symbol Scruncher tool
c.
Symbol Stainer tool
d.
a and b
e.
All of the above



Identify the option circled in red in the image above.


a.
Break Link To Symbol
b.
Place Symbol Instance
c.
Symbol Options
d.
New Symbol



Identify the tools shown in the image above.


a.
Wrap Tool, Bloat Tool
b.
Symbol Sprayer Tool, Blend Tool
c.
Perspective Grid Tool, Perspective Selection Tool
d.
Smooth Tool, Blob Brush Tool

                                

The Crop Marks option in the Effect menu is a raster effect.


a.
True
b.
False

                                

What is the icon shown above called, as found under the Control panel of the Pen tool?


a.
Convert selected anchor point to corner
b.
Isolate Selected Object
c.
Cut paths at selected anchor points
d.
Align to Selection



What is the icon shown above called, as found under the Control panel of the Pen tool?


a.
Convert selected anchor point to corner
b.
Isolate Selected Object
c.
Cut paths at selected anchor points
d.
Align to Selection

                                

You can transform graphs, guides, or linked objects using envelopes.


a.
True
b.
False

                                

Any change in the stacking order of the attributes in the Appearance panel does NOT affect the visual look of the object.


a.
True
b.
False

                                


What does it indicate when the cursor changes its shape, to that shown in the image above, while using pen tool?


a.
It indicates that you are adding new anchor point.
b.
It indicates that you are drawing a freeform path.
c.
It indicates that the pointer is positioned correctly to close the path.
d.
It indicates that the pointer is ready to convert the point into a curve.

                                


Symbols can be reused in a document.


a.
True
b.
False

                                

Which option in the FXG dialog box gives you better re-editability when you import FXG files in Illustrator?


a.
Show Code
b.
Include Unused Symbols
c.
Save Illustrator Private Data
d.
Downsample Linked Images

                                


The ___________________option in the Define Perspective Grid dialog box determines the positions of the left and right vanishing points from the observer.


a.
Viewing Angle
b.
Scale
c.
Third Vanishing Point
d.
Horizon Height



Negative value for the slope of an arc creates a concave slope.


a.
True
b.
False

                                


Identify the points highlighted in the image above.


a.
Show Ruler, Show Grid
b.
Station Point, Changed Ruler Origin
c.
Show Grid, Changed Ruler Origin
d.
Changed Ruler Origin, Station Point



Adobe Illustrator allows creating multiple grids in a document.


a.
True
b.
False

                                


Which option will you choose in the Shape Builder tool dialog box to convert an open path into a region?


a.
Gap Detection
b.
In Merge Mode, Clicking the Stroke Splits the Path
c.
Consider Open Filled Paths as Closed
d.
Highlight Stroke When Editable

                                


The ____________________option applies a fill to pencil strokes drawn by you.


a.
Edit Selected Paths
b.
Fidelity
c.
Smoothness
d.
Fill New Pencil Strokes

                                

What is the tool shown in the image above called and what does it do?


a.
Direct Selection tool; selects points or path segments within objects.
b.
Lasso tool; selects points or path segments within objects.
c.
Group Selection tool; selects objects and groups within groups.
d.
Selection tool; selects entire objects.

                                


Stylize effect adds XML-based graphic properties such as drop shadows to your artwork.


a.
True
b.
False

                                


A symbol set is a group of symbol instances that you create with the Symbol Sprayer tool.


a.
True
b.
False

                                


Which of the following acts as a cookie cutter or stencil, using a selected object to cut through other objects, discarding the original selection?


a.
Split Into Grid command
b.
Knife tool
c.
Divide Objects Below command
d.
Clipping masks

                                

What does the Edit Artboards option, outlined in red in the image above, do?


a.
It lets you change units of measure, transparency grid options, background color, and type settings in the Document Setup dialog box.
b.
It closes the Document Setup dialog box and activates the Artboard tool.
c.
It activates the Simulate Colored Paper option to print the document on colored paper.
d.
None of the above.



What does the icon, shown in the image above, indicate as it appears in the Layers panel?


a.
It indicates that the item is not targeted and has no appearance attributes beyond a single fill and a single stroke.
b.
It indicates that the item is targeted and has appearance attributes.
c.
It indicates that the item is targeted but has no appearance attributes beyond a single fill and a single stroke.
d.
It indicates that the item is not targeted but has appearance attributes.

                                

What does the letter "B" indicate in the image above?


a.
Horizontal Grid Plane
b.
No Active Grid Plane
c.
Left Grid Plane
d.
None of the above

                                


What does the toggle option on the Control panel of artboard, shown in the image above, allows you to do when it is in an active state?


a.
It adds a new artboard to the document.
b.
It takes you to the Artboard Options dialog box where you can change various settings of the artboard.
c.
It copies the artboard with the artwork.
d.
It allows you to change the orientation of the artboard.

                                


Why do we use the Appearance panel?


a.
To view the position of the selected object.
b.
To view and adjust the appearance attributes of an object, group, or layer.
c.
To view masking effects.
d.
None of the above.

                                


The anchor points of the connecting segments display__________________ .


a.
direction points
b.
direction lines
c.
direction handles
d.
segments

                                


____________________ effects sharply define a selection by clumping pixels of similar color values.


a.
SVG
b.
Sketch
c.
Pixelate
d.
Warp

                                


Extruding and Revolving are the two ways to convert 2-dimensional objects into 3-dimensional objects.


a.
True
b.
False

                                


Which option in the Control panel of the Pen tool converts an edge point into a smooth curve?


a.
Cut Path At Selected Anchor Points
b.
Isolate Selected Object
c.
Convert Selected Anchor Points to Smooth
d.
Reference point

                                


The _________________________attribute of the Perspective Grid determines the grid cell size.


a.
Third Vanishing Point
b.
Units
c.
Viewing Angle
d.
Gridline every



Which option of Smart Guides identifies the anchor points and paths as you hover your mouse over them?


a.
Measurement Labels
b.
Object Highlighting
c.
Anchor/Path Labels
d.
Snapping Tolerance

                                


Nonzero winding fill rule is the default rule to determine if a point is outside or inside a shape.


a.
True
b.
False

                                


Which of the following Pathfinder effects are available on the Pathfinder panel?


a.
Divide
b.
Trim
c.
Minus Back
d.
All of the above

                                


The Blend tool command lets you create blends, which are a series of intermediate objects and colors between two or more selected objects.


a.
True
b.
False

                                


The Transform Again command in the Object menu allows you to repeat a move, scale, rotate, reflect, or shear operation in the same proportions till you perform a different proportion.


a.
True
b.
False



The Transform Both option in the Transform panel lets you transform the pattern along with the object.


a.
True
b.
False

                               


____________________ effects generate pixels, whereas _______________________determines how transparent areas of the vector graphic are converted to pixels.


a.
Vector, Anti-Alias
b.
Raster, Background
c.
Raster, Color Model
d.
Vector, Add Around Object

                                


You can create animation in Illustrator.


a.
True
b.
False

                                


The _______________________option of the Envelope Options specifies how precisely you want the object to fit the envelope mold.


a.
Preserve Shape Using
b.
Fidelity
c.
Distort Pattern Fills
d.
Anti-Alias

                                


It is possible to share your computer screen, send chat messages, and communicate with ConnectNow in Adobe Illustrator.


a.
True
b.
False



Which option gives you the result shown in the image above while using the Envelope Distort command in the Object menu?


a.
Make with Warp
b.
Make with Mesh
c.
Make with Top Object
d.
None of the above

                                


Which option in the stylize sub-menu of the Effect menu controls the amount the scribble lines curve before they reverse direction?


a.
Angle
b.
Path Overlap
c.
Variation
d.
Curviness

                               


The higher value of the Fidelity option of the Pencil tool options makes ______________ and less ____________ paths.


a.
smoother, complex
b.
sharp, irregular
c.
complex, smooth
d.
None of the above

                                


____________________ lets you combine multiple objects and specify how you want each object to interact with the other objects.


a.
Compound shapes
b.
Compound paths
c.
Pathfinder effects
d.
None of the above

                                


Artboards specify the printable boundaries of artwork, whereas crop marks don't affect the printed area.


a.
True
b.
False

                                


Which of the following arranges multiple artboards in a single row?


a.
Grid by Row
b.
Arrange by Row
c.
Both a and b.
d.
There is no such option available.

                               


A scaled symbol may not produce crisp paths although it is pixel-aligned by property.


a.
True
b.
False

Tuesday, November 5, 2013

oDesk Knowledge of jQuery 1.3.2 Skills Test Answers

Which of the following functions is/are jQuery regular expression built-in function(s)?
b. match


The height function returns the height of an element in ________.
a. pixel unit


offset function gets the current offset of the first matched element in pixels relative to the ________.

a. document


Consider the following code snippet:
$.map(array1, function1);

Which of the following arguments is/are valid arguments of function1?
d. a and b


Which of the following statements returns all https anchor links?
a. $('a[href^=https]');


$('#id1').animate({width:"80%"}, "slow")

The above code snippet will ________.
a. animate the tag with id1 from the current width to 80% width.


How or Where can we declare a plugin so that the plugin methods are available for our script?
a. In the head of the document, include the plugin after main jQuery source file, before our script file.


Consider the following code snippet:
$(document).ready(function() {
  $('div').each(function(index) {
    alert(this);
  });
});

Which of the following objects does the 'this' variable refer to?
c. The current div tag of the iteration


Which of the following returns the children tags of "id1"?
a. $('#id1').children();


Which of the following arguments is/are (a) valid argument(s) of fadeIn function?
e. a and c


Consider the following code snippet:
$(document).ready(function1);
$(document).ready(function2);
$(document).ready(function3);

Which of the following functions are executed when DOM is ready?
d. a, b and c


Which of the following methods can be used to utilize animate function with backgroundColor style property?
b. There is no need to do anything as jquery core already supports that style property.


Read the following JavaScript code snippet:
$('div#id1').bind('click.divClick', function () {alert('A div was clicked');});

What is divClick in the code snippet?
d. A namespace.


Which of the following values is/are valid value(s) of secondArgument in addClass('turnRed', secondArgument); function, if we use jQuery UI library?
a. 'fast'
d. 3000


$("div").find("p").andSelf().addClass("border");

The statement adds class border to ________.
a. all div tags and p tags in div tags


Which of the following functions can be used to attach event handler to an element?
a. bind


What does $('tr.rowClass:eq(1)'); return?
a. One element set which is the second row of the first table.


The hide() function hides an element by ________.
a. setting "display" inline style attribute of that element to "none".


is() function ________ the current selection against an expression.
a. checks


Assume that you want that first the tag with "id1" fades out and then the tag with "id2" fades in. Which of the following code snippets allow(s) you to do so?
c. $('#id1').fadeOut('fast', function() {$('#id2').fadeIn('slow')});


If you include jQuery after other library, how do you disable the use of $ as a shortcut for jQuery?
a. By calling jQuery.noConflict(); right after including jQuery.


Consider the following code snippet:
var message = 'Message';
$('#id1').bind('click', {msg: message}, function(event) {
alert(event.data.msg);
});
message = 'New message';
$('#id2').bind('click', {msg: message}, function(event) {
alert(event.data.msg);
});

What does the alert box display if you click on "id1"?
a. Message


Consider the following code snippet:
$('#button1').bind('click', function(data) {...});

What is the data argument?
b. Function's data


Which of the following statements select(s) all option elements that are selected?
d. a and c


Inner Height function returns the inner height of an element, ________ the border and ________ the padding.
a. excludes, includes   


Which of the following statements return(s) a set of p tags that contain "jQuery"?
d. a and b


jQuery allows you to use ________ function to switch between showing and hiding an element.
d. toggle


Consider the following code snippet:
Div 2

Which of the following tags is/are in the result of $('#id2').parents();?
d. a and c


Which of the following functions can be used to bind an event handler to display a message when the window is closed, reloaded or navigated to another page?
c. unload


each is a generic ________ function.
a. comparator


$('ul#myId > li');

What does the above statement return?
d. A set of li tags which are children of ul tags that have "myId" id.


Which of the following commands creates a basic dialog containing this code snippet «font size=2»«div id="id1"»Simple dialog«/div»«/font» using jQuery UI?
a. $('#id1).dialog();


What is the result of this function jQuery.makeArray ( true )?
d. []


What is the difference between $('p').insertBefore(arg1) and $('p').before(arg2) statement?
a. The former inserts p tags before the tags specified by arg1, the latter inserts content specified by arg2 before all p tags.


$.grep(array1, function1);

The above statement ________ the elements of array1 array which satisfy function1 function.
d. finds


Consider the following code snippet:
var message = 'Message';
$('#id1').bind('click', function() {
    alert(message);
});
message = 'New message';
$('#id2').bind('click', function() {
    alert(message);
});

What does the alert box display if you click on "id1"?
a. Message


Which of the following statements uses a valid selector?
d. a, b and c


Consider the following code snippet:



  • Items 1



  • Items 2



  • Items 3

  • Which of the following code snippets return(s) a set of all li tags within "id1" except for li tag with id "li2"?
    a. $('#id1 li').not($('#li2'));


    Which of the following functions will return an empty set when end() function is chained right after that function?
    c. filter


    Assuming that you use jQuery UI library to make a list sortable, which of the following code snippets makes "list1" sortable?
    a. $('#list1').sortable();


    The outer height is returned by outerHeight function including ________ and ________ by default.
    a. border, padding


    $('#a1').one('click', {times: 3}, function1);

    Which of the following is true for the above?
    a. function1 will be executed once regardless of the number of times a1 is clicked.


    Consider the following code snippet:
    $('span.item').each(function (index) {
        $(this).wrap('«li»Item«/li»');
    });

    What does this code snippet do?
    a. Wraps each span tag that has class item within a li tag.


    Which of the following values is/are valid argument(s) of eq() function?
    a. 1


    Which of the following methods can be used to delete a specified tag?
    a. remove.


    Which of the following statements returns the number of matched elements of $('.class1')?
    a. $('.class1').size();


    Which of the following gets the href attribute of "id1"?
    a. $('#id1).attr('href');


    If you include jQuery before another library, how do you avoid conflict between jQuery and that library?
    a. By calling jQuery.noConflict(); right after including jQuery.


    Consider the following code snippet:
    $('#ul1 li').live('click', function1);
    $('#ul1').after('


  • Last item
  • ');

    Is function1 executed if "lastLi" is clicked?
    b. No


    Which of the following methods can be used to load data?
    a. getJSON.
    b. get.


    Which of the following functions moves p tags that have para class to div with content id?
    a. function moveElement() {
            $('p.para').each(function(index) {
                $(this).appendTo('#content');
            });
        }


    Which of the following events can be used to disable right click contextual menu?
    a. contextmenu


    Which of the following functions can be used to stop event propagation?
    a. stopPropagation


    Assume that you need to build a function that manipulates an image when the image is loaded. Which of the following functions should you use?
    b. load


    Consider the following code snippet:
    $('#id1').animate({width:"240px"}, { queue:false, duration:1000 }).animate({height:"320px"}, "fast");
    The order of the animations of this code snippet is ________.
    b. first height animation, then width animation


    jQuery allows simulating an event to execute an event handler as if that event has just occurred by using ________.
    a. trigger function


    What is the result of NaN == NaN?
    b. false


    The css() function allows you to ________.
    d. change the inline style attribute of an element.


    What is the result of the following code snippet?
    jQuery.unique([1, 2, 2, 3, 3, 1]);
    e. None of the above


    Consider the following code snippet:



    • Items 1



    • Items 2



    • Items 3

    • Which of the following code snippets returns the same result as $('#id1 li').not($('#li2'));?
      a. $('#li2').siblings();


      Is the following code snippet a valid ajax request?
      $.ajax({data: {'name': 'jQuery'},});
      a. Yes.


      Consider the following code snippet:
          
          

      What does the alert box display when the function submitForm1 is called?
      a. email=


      Which of the following statements return(s) a set of even rows?
      e. b and c


      One advantage of $.ajax function over $.get or $.post is that ________.
      a. $.ajax offers error callback option.


      Consider the following code snippet:
      $('#table1').find('tr').hide().slice(10, 20).show();

      What is the result of this code snippet?
      a. Showing table1's rows from 11th to 20th.


      Consider the following code snippet:
      $('#div1').html($('#div1').html().replace(/bad/, " "));

      Which of the following is the result of this code snippet?
      a. Replacing "bad" word in the inner html of div1.


      Which of the following methods can be used to copy element?
      a. clone.


      Consider the following code snippet:
      $('#table1 tr:odd').addClass('oddRow');
      $('#table1 tr:even').addClass('evenRow');

      The result of the above code snippet is ________.
      a. the odd rows of table1 have evenRow class, while the even rows have oddRow class


      Consider the following code snippet:
      $('#id1').animate({width:"240px"}, "slow").animate({height:"320px"}, "fast");

      The order of the animations of this code snippet is:
      a. first width animation, then height animation


      Consider the following code snippet:
      ajaxStart(function1);

      The function1 will be executed when ________.
      c. any ajax request starts and there is no active ajax request.


      position function gets the ________ positions of an element that are relative to its offset parent.
      a. top and left


      Which of the following code snippets insert(s) the code snippet
      at the end of div tags?
      a. $('div').append('
      ');


      Consider the following code snippet: $('#table1').find('tr').filter(function(index) { return index % 3 == 0}).addClass('firstRowClass');

      The result of the above code snippet is ________.
      a. the rows of table1 at order 3n + 1 (n = 0, 1, 2,...) have class firstRowClass


      $.merge(array1, array2);

      The above function merges ________.
      b. array2 into array1.


      Consider the following code snippet:
      Div 2

      Which of the following tags is/are in the result of $('#id2').parents();?
      d. a and c


      $.extend(false, object0, object1, object2);

      What does the above do?
      a. Extends the object0 by merging object1 and object2 with object0.


      Consider the following code snippet:
        function function1() {
          alert(arguments.length);
        }

      Which of the following is true when you run function1();?
      d. The alert box displays 0.

      What does $('tr:nth-child(4)') return?
      a. A set of the fourth rows of the tables.


      Is it true that we have to place the result of jQuery.getScript between tags in order to use the loaded script?
      b. No.

      Consider the following code snippet:
      $('span.item').each(function (index) {
          $(this).wrap('


    • Item
    • ');
      });

      What does this code snippet do?
      a. Wraps each span tag that has class item within a li tag.


      $("div").find("p").andSelf().addClass("border");

      The statement adds class border to ________.
      a. all div tags and p tags in div tags


      Which of the following commands creates a basic dialog containing this code snippet
      Simple dialog
      using jQuery UI?
      a. $("#id1").dialog();


      Consider the following code snippet:
         


      • Items 1
      •  


      • Items 2
      •  


      • Items 3

      • Which of the following code snippets return(s) a set of all li tags within "id1" except for li tag with id "li2"?
        a. $('#id1 li').not($('#li2'));


        Consider the following code snippet:
        $('span.item').each(function (index) {
            $(this).wrap('


      • Item
      • ');
        });

        What does this code snippet do?
        d. Replaces each span tag that has class item with a


      • Item
      • .

        Which of the following seems to be correct for ajaxStart(function()) method as shown in the below Code snippet?

        $("#div1").ajaxStart(function())
        c. Method Attaches a function to be executed whenever an AJAX request begins and there is none already activated.


        Consider the following code snippet:
        $('span.item').each(function (index) {
            $(this).wrap('


      • Item
      • ');
        });

        What does this code snippet do?
        a. Wraps each span tag that has class item within a li tag.


        Which of the following code snippets insert(s) the code snippet
        at the end of div tags?
        a. $('div').append('
            footer
        d. $('
            footer
            ').appendTo('div');


        Consider the following code snippet:
            
            

        What does the alert box display when the function submitForm1 is called?
        a. email=


        Which of the following functions moves p tags that have para class to div with content id?
        c. function moveElement() {
                $('p.para').each(function(index) {
                    $(this).insertAfter('#content');
                });
            }


        Consider the following code snippet:
        function function1()
        {
           alert(arguments.length);
        }

        Which of the following is true when you run function1();?
        d. The alert box displays 0.


        How can an Ajax Request that has not yet received the response, be canceled or aborted?
        a. //xhr is ajax variable


        Which of the following is the correct way to get a Value of selected dropdownlist in jQuery without using the selected value?
        a. $("#yourdropdownid option:selected").text();


        Which of the following is the correct way to get the current URL in jQuery?
        b. $(location).attr('href');


        Which of the following is the correct way to do the following javascript Code with jQuery? var d = document; var odv = d.createElement("div"); odv.style.display = "none"; this.OuterDiv = odv; var t = d.createElement("table"); t.cellSpacing = 0; t.className = "text"; odv.appendChild(t);

        a. this.$OuterDiv = $('
            ')
            .hide()
            .append($('
            ‘)

            .attr({ cellSpacing : 0 })
            .addClass("text")
            );


        Which of the following is the correct way to select all the elements with JQuery from html that have the two classes a and b?
        a. $('.a.b')


        When the user clicks the image, a little popup is given to add some notes to the data. How can the input-image's event handler be disable if a zero is entered into the text box?
        a. $('#myimage').off('click.mynamespace');


        Which of the following is the correct way to Hide menu div by clicking outside the menu div?
        c. $(document).click(function(event) { 
            if($(event.target).parents().index($('#menucontainer')) == -1) {
            if($('#menucontainer').is(":visible")) {
            $('#menucontainer').hide()
            }
            } 
            })