Friday, November 22, 2013

Microsoft Access 2010 Test Question

Hi Friends,
Today i am sharing with you Microsoft Access 2010 Test Answer. Here you can get all correct answer about Microsoft Access 2010 Test.
Which of the following conditions should be satisfied to create a one-to-one relationship between tables?
a. The primary key and foreign key fields must have a unique index.
b. The indexed property for the primary key and the foreign key fields should be set to Yes.
c. The common fields must have a unique index.
d. All of the above
Which of the following Aggregates expressions is not allowed in Query Columns context of a Web database?
a. Avg
b. Count
c. Sum
d. VarP
e. Like
What is the function of the icon marked as A (see image) when you are creating Macros in Microsoft Access 2010?


a. Close
b. Delete
c. Move up
d. Move Down
Which of the following statements is not true about the Work Offline option in an Access database linked to SharePoint?
a. Working offline allows you to work on SharePoint data locally.
b. Within Microsoft Access, data is visible to only those users who have permission to view it on SharePoint.
c. Discard All My Changes option lets you reject all changes made while offline.
d. Changes made in Access are synchronized with SharePoint when you reconnect.
Microsoft Access 2010 does not support more than _________ fields in a table.
a. 55
b. 155
c. 200
d. 255
Which of the following is true of the Ribbon interface?
a. Ribbons can be dragged and dropped to be on the side or the bottom of the screen.
b. Ribbons can be minimized or collapsed.
c. Ribbons can be replaced with command bars.
d. New ribbons can be created using the Office Ribbon Generator.
What is the purpose of Option Explicit?
a. It is a database object.
b. Requires variable declarations.
c. It contains all of the data access pages that are currently open in a Microsoft Access project.
d. It contains all open standard modules and class modules in a Microsoft Access database.
Which of the following are reserved for use by SharePoint and is not supported on the Web?
a. Solutions
b. Docs
c. Lists
d. UserInfo
e. Reports
Which one of the following correctly selects rows from the students table that have null in column1?
a. Select * from students where column1 is null
b. Select * from students where column1 = null
c. Select * from students where column1 EQUALS null
d. Select * from students where column1 NOT null
e. Select * from students where column1 CONTAINS null
What will be the result of the following?
InStr(1, "John Smith", "S")
a. 5
b. 6
c. 7
d. 4
Which of the following data-definition queries creates a table named Cars, with the following fields



a. CREATE Cars (Name TEXT(40), Year TEXT(4), Price CURRENCY)
b. CREATE TABLE Cars (Name TEXT(40), Year TEXT(4), Price CURRENCY)
c. CREATE TABLE Cars (Name(40), Year(4), Price)
d. CREATE Cars (Name(40), Year(4), Price)
Which of the following is true about a.accde file in Microsoft Access 2010?
a. It contains compiled VBA code to prevent users from viewing the code.
b. It can be saved as a.accdb file in order to make design changes.
c. It allows users to import forms and reports from other databases.
d. It allows users to view, but not modify VBA code.
How can you tell if a report has no records to display or print in Microsoft Access 2010?
a. By using the report's Error event.
b. By using the report's ApplyFilter event.
c. By using the report's NoData event.
d. By using the report's Filter event.
Which of the following is correct regarding Crosstab queries?
a. Multiple Value fields can be specified.
b. Multiple Column headings can be specified.
c. Multiple Row headings can be specified.
d. An unlimited number of columns can be returned.
What will happen when we select the option "Check for truncated number fields" (marked as A in the image) under Current Database settings?


a. The values visible in a column are truncated based on what can fit in the column.
b. Access displays numbers as "#####" when a column is too narrow to display the entire value.
c. Access displays numbers as "*****" when a column is too narrow to display the entire value.
d. Access expands the column if it is too narrow to display the entire value.
Which of the following is NOT possible when you link to an Excel worksheet from within Access?
a. You can append data to an existing table.
b. You can create a database containing multiple linked tables.
c. You can edit the Excel spreadsheet by making changes in to the linked table.
d. By creating a linked table any changes that are made to the data in Excel are automatically reflected in the linked table.
How do you start a Microsoft Access application so that the user can't see or use the Navigation Pane (or database container)?
a. Set the Access Option to hide the navigation pane, and press CTRL+F11 special keys.
b. Set the Access Option to hide the navigation pane, and press ALT+F1 special keys.
c. Set the Access Option to hide the navigation pane, and turn off special keys to prevent F11.
d. Set the Access Option to hide the navigation pane, and press CTRL+G special keys.
What is the purpose of the option marked as A (see image), under General options for working with Access?


a. It allows users to preview how a formatting option will appear.
b. It indicates that the text will be displayed in a format that is easier to read.
c. It enables ScreenTips and Enhanced ScreenTips.
d. Both b and c.
In a report with grouping, how can you display the count of records in each group?
a. Add a text box to the group's footer section and set its control source to =Count(*).
b. Set the report's Group Count property to True.
c. Add a label to the group's header section and set the Caption property to Count Rows.
d. Add a Summary control to the report's footer section.
Using the Package and Sign tool, how many databases can you add to a package that you want to distribute to other users in Microsoft Access?
a. Unlimited
b. 5
c. 1
d. 10
Using which of the following Microsoft Access 2010 database file formats, can we use the Package and Sign tool?
a. .accdb
b. .accdc
c. .accde
d. .mdb
Which text box property in Microsoft Access 2010 Reports allows the text box to be expanded so that all the text can be fit into it?
a. CanGrow
b. Reading Order
c. Display When
d. None of the above
How do you create a report for a Crosstab Query if certain column values are missing?
a. Set the Value field in the Crosstab.
b. Set the Column Heading field in the Crosstab.
c. Set the Pivot list in the Crosstab.
d. Set the report's Crosstab property to True
 
See the image above. How would you filter the table so that it returns names of only those students whose last name begins with A, O or Y?
a. Select lastname from students where lastname like '[A,O, Y]*'
b. Select lastname from students where lastname like '*[A, O, Y]'
c. Select lastname from students where lastname not like '*[A, O, Y]'
d. Select lastname from students where lastname not like '[A,O, Y]*'
e. Select lastname from students where lastname='A' or lastname='O'or lastname='Y'
When you run the Compatibility Checker in Microsoft Access 2010, in which of the following scenarios can you get the error- Access was unable to convert the query for use on the Web because it relies on an ORDER BY clause that is not supported on the Web?
a. Name of an order by element is not valid.
b. Name of source table is not valid.
c. Sort order is set to an option other than ascending or descending.
d. The expression is not valid.
e. All of the above
Which of the following elements are mandatory for the CREATE INDEX command?
a. The name of the index.
b. The ON argument.
c. The list of fields to be included in the index.
d. The name of the table that contains the fields that you want to index.
e. All of the above.
Which of the following Microsoft Access 2010 components can pose security risks in an untrusted database?
a. Action queries (queries that insert, delete, or change data)
b. Macros
c. Forms
d. VBA code
Which of the following is incorrect about the Quick Access Toolbar?
a. You can move the Quick Access Toolbar from its default location.
b. Toolbar can be minimized or collapsed.
c. You cannot display the Quick Access Toolbar on multiple lines.
d. You cannot increase the size of the buttons representing the commands by an option in Microsoft Office.
Which feature in Microsoft Access 2010 can be used to ensure consistency in appearance between forms and reports?
a. Web 2.0-like Controls
b. Web Browser Controls
c. Office Themes
d. Backstage View
What can you do in Report View that you cannot do in Print Preview in Microsoft Access 2010 Reports?
a. You can Filter, Copy, Search, etc.
b. You can make most, but not all, changes to your report.
c. You can display the structure of your report.
d. Resize report sections, such as Headers, Detail, and Footers
Microsoft Access uses indexes in a table to find data. Which of the following field types cannot be indexed?
a. OLE Object
b. Attachment
c. Memo
d. Calculated
Password protected databases offer:
a. Only one password with full rights.
b. Different user rights for different logins/passwords.
c. Integrated security with Active Directory.
d. Integrated security with Windows Logins.
What could be the problem when an error message "#Error" is received in a query?
a. The query is joining fields that have different data types.
b. A field's alias conflicts with a component of the expression for that field.
c. The object or the database is damaged.
d. The denominator of a calculated field is zero.
Which of the following describes the Data Execution Prevention (DEP) support for Office applications?
a. It is a software component that helps reduce the attack surface by identifying files that do not follow a valid file format definition.
b. It is a feature that helps mitigate attacks by enabling users to preview untrusted or potentially harmful files in a sandbox environment.
c. It is a hardware and software technology that helps harden the attack surface by preventing viruses and worms that exploit buffer overflow vulnerabilities from running.
d. All of the above
Which of the following is not true regarding Information Rights Management (IRM) for e-mail messages in Microsoft Access 2010?
a. It prevents restricted e-mail content from being copied by using the Print Screen feature in Microsoft Windows.
b. It restricts the e-mail content from being copied by using third-party screen-capture programs.
c. It prevents an unauthorized recipient from accessing e-mail content, including attachments.
d. It restricts content wherever the e-mail is sent.
Which of the following is not done when you compact a database?
a. Table records and objects are restructured and then stored in successive memory blocks.
b. Databases linked to the compacted database are compacted and repaired.
c. Table records are restored into their primary key order, if a primary key exists in the table.
d. The physical size of the database is reduced by making an exact duplicate of the database.
Which of the following is the correct way to enter the beginning or ending characters of the fields named (UnitPrice and CompanyName) in the AutoIndex onImport/Create field to create an Auto Index ?


a. unit.name
b. unit;name
c. unit,name
d. 'unit','name'
What is the advantage of a Class Module versus a Standard Module?
a. Encapsulation, Inheritance
b. Data Abstraction
c. Polymorphism
d. Reusability
What is the purpose of time stamping a digital signature in Microsoft 2010?
a. It helps mitigate integrity threats.
b. It ensures that digital signatures remain valid and legally defensible even if the certificate that is used to sign the document expires.
c. It enables you to specify cryptographic settings for encrypting documents.
d. It is a security tool that enables users to designate safe documents.
Suppose you want to use data from two tables in a query: tblCustomer and tblOrder. The two tables both have a field, CustomerID, that identifies a customer. Each record in the tblCustomer table may have one or more corresponding records in the tblOrder table, and the corresponding values can be determined by values in the CustomerID field. You now want to join the tables so that the query combines the records from the tables, excluding records from either table if there is no corresponding record in the other table. Which of the following FROM clauses will you use?
a. FROM [tblCustomer] LEFT JOIN [tblOrder] ON      
    [tblCustomer].[CustomerID]=[tblOrder].[CustomerID]
b. FROM [tblCustomer] RIGHT JOIN [tblOrder] ON
    [tblCustomer].[CustomerID]=[tblOrder].[CustomerID]
c. FROM [tblCustomer] INNER JOIN [tblOrder] ON
    [tblCustomer].[CustomerID]=[tblOrder].[CustomerID]
d. FROM [tblCustomer], [tblOrder]
What is the purpose of the Application Parts option in Microsoft Access 2010?
a. It enables you to reduce coding errors and easily incorporate more complex logic to create robust applications.
b. It integrates your Access reports using multiple data connections and information linked or imported from other sources.
c. It integrates your Access data with live web content.
d. It turns portions of your database into reusable templates.
If you want to encrypt a database by using a password, then the database must be opened in ________ mode.
a. Open Exclusive
b. Open Exclusive Read-Only
c. Open Read-Only
d. Open Password-Enabled
Layouts are guides to align controls that you add to your forms or reports. Which layout has been depicted in the image above?
a. Print Preview
b. Tabular format
c. Stacked format
d. Grid format
Suppose you want to apply a calculated field on a TextBox control to concatenate the values of the firstName and lastName fields, with a space between them.Which of the following expressions will you enter in the Expression Builder?
a. [firstName] +" "+[lastName]
b. [firstName] +" #"+[lastName]
c. [firstName] &" "& [lastName]
d. [firstName] &","& [lastName]
Which of the following functions determines if a phrase exists in a longer string?
a. InStr
b. Len
c. Trim
d. Left
What is the function of the 'Single Step' in Macros as shown in the image?
a. This command is saves expressions one at a time.
b. This command executes an action one at a time.
c. This command saves all queries in a single step.
d. This command saves all reports in a single step.
What happens when a user has a database open in Exclusive mode and another user attempts to open it?
a. The second user can open the database and make changes to objects and data.
b. The second user receives a 'File already in use' message.
c. The second user receives a 'File is deleted' message.
d. The second user can open the database and make changes to data, but not to objects.
Which form property determines whether the current record has been modified since it was last saved?
a. Cycle property
b. Dirty property
c. Filter property
d. FilterOn property
Which textbox property in Microsoft Access 2010 determines that the text box is bound, unbound or calculated?
a. RecordSource
b. ControlSource
c. CanGrow
d. RowSource
Which of the following is not a Relationship and Lookup error?
a. Lookups require an associated Relationship to be compatible with the Web.
b. Limit to List must be set to True if Allow Multiple Values is set to True.
c. Enable Referential Integrity must be False if Allow Multiple Values is set to True for a lookup.
d. A table with more than 220 fields is incompatible with the Web.
Consider the following tables:

Books
---------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the Popularity of the book on a scale of 1 to 10)
Language(such as French, English, German etc)

What is the query to determine which German books (if any) are more popular than all the French books?
a. Select bookname from books where language='German' and popularityrating =(Select popularityrating from books where language='French')
b. Select bookname from books where language='German' and popularityrating > (Select popularityrating from books where language='French')
c. Select bookname from books where language='French' and popularityrating > (Select max(popularityrating) from books where language='German')
d. Select bookname from books where language='German' and popularityrating > (Select max(popularityrating) from books where language='French')
Which of the following rules apply when you use referential integrity?
a. You cannot delete a record from the primary table if matching records exist in the related table.
b. You cannot enter a value in the foreign key field of the related table that does not exist in the primary key of the primary table.
c. You can change the primary key value in the primary table, if that record has related records in the related tables.
d. All of the above
Which of the given text field properties should you set in order to force a user to enter a date value specifically in MM-DD-YYYY format?
a. Indexed
b. Validation Rule
c. Input Mask
d. Default Value
For what reason(s) can a digital signature or certificate be regarded as invalid?
a. The publisher is not a trusted publisher.
b. The digital signature has expired.
c. The certificate was not issued by a certified authority.
d. All of the above.
How can you share common objects between multiple projects in Microsoft Access 2010?
a. By customizing tabs.
b. By creating Data Macros.
c. By using a Web Browser Control.
d. By creating Application Parts.
A query that uses the BETWEEN operator for two numbers is identical to:
a. >= and <=
b. > and <
c. >= and <
d. > and <=
Choose the appropriate query for the Products table where data should be displayed primarily in ascending order of the ProductGroup column. Secondary sorting should be in the descending order of the CurrentStock column.
a. Select * from Products order by CurrentStock, ProductGroup.
b. Select * from Products order by CurrentStock DESC, ProductGroup.
c. Select * from Products order by ProductGroup, CurrentStock.
d. Select * from Products order by ProductGroup, CurrentStock DESC.
e. None of the above.
A company has the following departments:
Marketing, Designing, Production, Packing

What will be the result of the following query?

Select department from table where department < 'Marketing'
a. The query will return "Designing, Packing"
b. The query will return "Designing, Production"
c. The query will return "Production, Packing"
d. The query will return "Designing"

Knowledge of jQuery 1.3.2 Skills Test answer

Hi Friends,
Any searching jQuery 1.3.2 Skills Test answer 2013 Please see this post. Here in may be solve your problem. Thank you for visiting us....


Knowledge of jQuery 1.3.2 Skills Test answer :

Which of the following functions is/are jQuery regular expression built-in function(s)?
a. test
b. match
c. find
d. jQuery does not have regular expression built-in functions.
The height function returns the height of an element in ________.
a. pixel unit
b. point unit
c. em unit
d. millimeter unit
offset function gets the current offset of the first matched element in pixels relative to the ________.
a. document
b. parent element
c. children element
d. container
Consider the following code snippet:
$.map(array1, function1);

Which of the following arguments is/are valid arguments of function1?
a. The index of the element to be translated in array1.
b. The item to be translated.
c. function1 has no arguments.
d. a and b
e. a and c
Which of the following statements returns all https anchor links?
a. $('a[href^=https]');
b. $('a[href$=https]');
c. $('a[href=https]');
d. $('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.
b. animate the tag with id1 from 80% width to current width.
c. animate the tag with id1 from the current 80% width to 0px.
d. animate the tag with id1 from 80% width to 100% 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.
b. In the head of the document, include the plugin after all other script tags.
c. In the head of the document, include the plugin before all other script tags.
d. Anywhere in the document.
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?
a. window
b. document
c. The current div tag of the iteration
d. The last element tag in body
Which of the following returns the children tags of "id1"?
a. $('#id1').children();
b. $('#id1').getChildren();
c. children('#id1');
d. getChildren('#id1');
Which of the following arguments is/are (a) valid argument(s) of fadeIn function?
a. 'slow'
b. 1000ms
c. 3000
d. a and b
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?
a. function1
b. function2
c. function3
d. a, b and c
e. No function is executed.
Which of the following methods can be used to utilize animate function with backgroundColor style property?
a. Use jQuery UI library.
b. There is no need to do anything as jquery core already supports that style property.
c. There's no way to use animate with 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?
a. An event type.
b. An event function.
c. A div class.
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'
b. slow
c. 1000ms
d. 3000
$("div").find("p").andSelf().addClass("border");

The statement adds class border to ________.
a. all div tags and p tags in div tags
b. all div tags
c. all p tags
d. all p tags that in div tag
Which of the following functions can be used to attach event handler to an element?
a. bind
b. attach
c. add
d. handle
What does $('tr.rowClass:eq(1)'); return?
a. One element set which is the second row of the first table.
b. One element set which is the first row of the first table.
c. A set of tr tags which have "rowClass:eq(1)" class .
d. A set of tr tags which have "eq(1)" class .
The hide() function hides an element by ________.
a. setting "display" inline style attribute of that element to "none".
b. setting "visibility" inline style attribute of that element to "hidden".
c. setting the horizontal attribute of that element to "-100".
d. setting the vertical attribute of that element to "-100".
is() function ________ the current selection against an expression.
a. checks
b. finds
c. filters
d. gets
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?
a. $('#id1').fadeOut('fast'); $('#id2').fadeIn('slow');
b. $('#id2').fadeIn('slow'); $('#id1').fadeOut('fast');
c. $('#id1').fadeOut('fast', function() {$('#id2').fadeIn('slow')});
d. $('#id2').fadeIn('slow', function() {$('#id1').fadeOut('fast')});
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.
b. By calling jQuery.useDefault = false; right after including jQuery.
c. By calling jQuery.useShortcut = false; right after including jQuery.
d. By calling jQuery.conflict = false; 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
b. New message
c. Nothing
d. None of the above
Consider the following code snippet:
$('#button1').bind('click', function(data) {...});

What is the data argument?
a. Click event's data
b. Function's data
c. Global variable
d. Local variable
Which of the following statements select(s) all option elements that are selected?
a. $(':selected');
b. $('select[selected]');
c. $('option:selected');
d. a and c
e. b and c
Inner Height function returns the inner height of an element, ________ the border and ________ the padding.
a. excludes, includes   
b. excludes, excludes
c. includes, excludes
d. includes, includes
Which of the following statements return(s) a set of p tags that contain "jQuery"?
a. $('p:contains(jQuery)');
b. $('p:contains("jQuery")');
c. $('p:has("jQuery")');
d. a and b
e. a and c
jQuery allows you to use ________ function to switch between showing and hiding an element.
a. show
b. hide
c. switch
d. toggle
Consider the following code snippet:
<div id='id1'><div id='id2'>Div 2</div></div>

Which of the following tags is/are in the result of $('#id2').parents();?
a. <html>
b. <head>
c. <body>
d. a and c
e. b 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?
a. end
b. exit
c. unload
d. None of the above.
each is a generic ________ function.
a. comparator
b. operator
c. iterator
d. normal
$('ul#myId > li');

What does the above statement return?
a. A set of tags whose id is "li".
b. A set of tags which contains class "li".
c. A set of li tags which are children of ul tags that have "myId" class.
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();
b. $('#id1).showDialog();
c. $('#id1).widget();
d. $('#id1).showWidget();
What is the result of this function jQuery.makeArray ( true )?
a. 1
b. NaN
c. [ 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.
b. The former inserts content specified by arg1 before p tags, the latter inserts p tags before tags specified by arg2.
c. The former inserts arg1 inside p tags, the latter inserts p tags inside tags specified by arg2.
d. The former inserts p tags inside tags specified by arg1, the latter inserts arg2 inside p tags.
$.grep(array1, function1);

The above statement ________ the elements of array1 array which satisfy function1 function.
a. sorts
b. updates
c. removes
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
b. New message
c. Nothing
d. None of the above
Which of the following statements uses a valid selector?
a. $('P');
b. $('#myId');
c. $('.myClass');
d. a, b and c
e. b and c
Consider the following code snippet:
<font size=2>
<ul id='id1'>
  <li id='li1'>Items 1</li>
  <li id='li2'>Items 2</li>
  <li id='li3'>Items 3</li>
</ul>
</font>

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'));
b. $('#id1 li').except($('#li2'));
c. $('#id1 li').remove($('#li2'));
d. $('#id1 li').delete($('#li2'));
Which of the following functions will return an empty set when end() function is chained right after that function?
a. add
b. children
c. filter
d. remove
Assuming that you use jQuery UI library to make a list sortable, which of the following code snippets makes "list1" sortable?
a. $('#list1').sortable();
b. $('#list1').changeable();
c. $('#list1').interchangeable();
d. $('#list1').organizeable();
The outer height is returned by outerHeight function including ________ and ________ by default.
a. border, padding
b. border, margin
c. margin, padding
d. None of the above.
$('#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.
b. function1 will be executed at most 3 times if a1 is clicked more than twice.
c. There is at most one instance of function1 to be executed at a time.
d. There are at most three instances of function1 to be executed at a time.
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.
b. Inserts each span tag that has class item into a li tag.
c. Inserts «font size=2»«li»Item«/li»«/font» into each span that has item class.
d. Replaces each span tag that has class item with a «font size=2»«li»Item«/li»«/font».
Which of the following values is/are valid argument(s) of eq() function?
a. 1
b. '2'
c. both a and b
d. neither a nor b
Which of the following methods can be used to delete a specified tag?
a. remove.
b. delete.
c. truncate.
d. empty.
Which of the following statements returns the number of matched elements of $('.class1')?
a. $('.class1').size();
b. count($('.class1'));
c. $('.class1').count;
d. None of the above
Which of the following gets the href attribute of "id1"?
a. $('#id1).attr('href');
b. $('#id1').getAttribute('href');
c. $('#id1)[0].attr('href');
d. All of the above.
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.
b. By calling jQuery.useDefault = false; right after including jQuery.
c. By calling jQuery.useShortcut = false; right after including jQuery.
d. By using jQuery object when you work with jQuery library and using $ object for other libraries.
Consider the following code snippet:
$('#ul1 li').live('click', function1);
$('#ul1').after('<li id="lastLi">Last item</li>');

Is function1 executed if "lastLi" is clicked?
a. Yes
b. No
c. "lastLi" does not exist.
Which of the following methods can be used to load data?
a. getJSON.
b. get.
c. ajaxSend.
d. ajaxStart.
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');
        });
    }
b. function moveElement() {
        $('p.para').each(function(index) {
            $(this).append('#content');
        });
    }
c. function moveElement() {
        $('p.para').each(function(index) {
            $(this).insertAfter('#content');
        });
    }
d. function moveElement() {
        $('p.para').each(function(index) {
            $(this).after('#content');
        });
    }
Which of the following events can be used to disable right click contextual menu?
a. contextmenu
b. contextualmenu
c. rightclickmenu
d. Right click contextual menu cannot be disabled
Which of the following functions can be used to stop event propagation?
a. stopPropagation
b. disablePropagation
c. cancelPropagation
d. preventPropagation
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?
a. ready
b. load
c. change
d. focus
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 ________.
a. first width animation, then height animation
b. first height animation, then width animation
c. both width animation and height animation occur at the same time.
d. random
jQuery allows simulating an event to execute an event handler as if that event has just occurred by using ________.
a. trigger function
b. execute function
c. intimate function
d. jQuery does not have this feature.
What is the result of NaN == NaN?
a. true
b. false
c. An error occurs.
d. None of the above.
The css() function allows you to ________.
a. change the css class attribute.
b. change the css file path.
c. apply the css class to an element.
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]);
a. [1, 2, 3].
b. [1, 2, 3, 1].
c. [1, 3, 2, 1, 2, 3].
d. [1, 1, 2, 2, 3, 3].
e. None of the above
Consider the following code snippet:
<ul id='id1'>
  <li id='li1'>Items 1</li>
  <li id='li2'>Items 2</li>
  <li id='li3'>Items 3</li>
</ul>

Which of the following code snippets returns the same result as $('#id1 li').not($('#li2'));?
a. $('#li2').siblings();
b. $('#id2').siblings('#li2');
c. $('#li2').children();
d. $('#id2').children('#li2');
Is the following code snippet a valid ajax request?
$.ajax({data: {'name': 'jQuery'},});
a. Yes.
b. No, because it does not have url.
c. No, because it does not have any argument after the comma.
d. No, because the function ajax does not exist in jQuery.
Consider the following code snippet:
<form id="form1">
    <input type="text" id="text1" value="default" />
    <input type="text" name="email" />
</form>
<script type="text/javascript">
    function submitForm1()
    {
      alert($('#form1').serialize());
    }
</script>

What does the alert box display when the function submitForm1 is called?
a. email=
b. email=&text1=default
c. text1=&text2=
d. Nothing in the alert box.
Which of the following statements return(s) a set of even rows?
a. $('tr').filter(':even');
b. $('tr:nth-child(even)');
c. $('tr:odd');
d. a and b
e. b and c
One advantage of $.ajax function over $.get or $.post is that ________.
a. $.ajax offers error callback option.
b. $.ajax is easier to use.
c. $.ajax allows passing request parameters.
d. the result of $.ajax is formatted.
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.
b. Showing table1's 20 rows from 10th.
c. Deleting rows of table1 from 10th to 20th.
d. Deleting 20 rows of table1 from 10th onward.
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.
b. Removing any word containing "bad" in the inner html of div1.
c. Appending an inner html of div1 which removes "bad" word to div1's inner html.
d. Appending an inner html of div1 which removes any word containing "bad" to div1's inner html.
Which of the following methods can be used to copy element?
a. clone.
b. cloneTo.
c. move.
d. moveTo.
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
b. the odd rows of table1 have oddRow class, while the even rows have evenRow class
c. all rows of table1 have evenRow class
d. None of the above.
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
b. first height animation, then width animation
c. both width animation and height animation occur at the same time.
d. random
Consider the following code snippet:
ajaxStart(function1);

The function1 will be executed when ________.
a. any ajax request starts.
b. ajaxStart function is executed.
c. any ajax request starts and there is no active ajax request.
d. jQuery does not have ajaxStart function.
position function gets the ________ positions of an element that are relative to its offset parent.
a. top and left
b. top and right
c. bottom and left
d. bottom and right
Which of the following code snippets insert(s) the code snippet <div class="footer">footer</div> at the end of div tags?
a. $('div').append('<div class="footer">footer</div>');
b. $('div').appendTo('<div class="footer">footer</div>');
c. $('<div class="footer">footer</div>').append('div');
d. $('<div class="footer">footer</div>').appendTo('div');
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
b. the rows of table1 at order 3n (n = 1, 2,...) have class firstRowClass
c. all rows of table1 have class firstRowClass
d. no row of table1 has class firstRowClass
$.merge(array1, array2);

The above function merges ________.
a. array1 into array2.
b. array2 into array1.
c. array1 with array2 and returns the result.
d. The statement is invalid. The correct one is array1.merge(array2);
Consider the following code snippet:
<div id='id1'><div id='id2'>Div 2</div></div>

Which of the following tags is/are in the result of $('#id2').parents();?
a. <html>
b. <head>
c. <body>
d. a and c
e. b and c
$.extend(false, object0, object1, object2);

What does the above do?
a. Extends the object0 by merging object1 and object2 with object0.
b. Extends the object1 by merging object0 and object2 with object1.
c. Extends the object2 by merging object0 and object1 with object2.
d. The statement is invalid because its arguments are invalid.
Consider the following code snippet:
  function function1() {
    alert(arguments.length);
  }

Which of the following is true when you run function1();?
a. An error occurs because arguments variable is undefined.
b. An error occurs because you call function1 with no arguments.
c. The alert box displays "undefined".
d. The alert box displays 0.
What does $('tr:nth-child(4)') return?
a. A set of the fourth rows of the tables.
b. A set of the fifth rows of the tables.
c. A set of the fifth tr tags of the tables which have "nth-child(4)" class.
d. A set of the fifth tr tags of the tables which have "nth-child(4)" id.
Is it true that we have to place the result of jQuery.getScript between <script type="text/javascript"></script> tags in order to use the loaded script?
a. Yes.
b. No.
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.
b. Inserts each span tag that has class item into a li tag.
c. Inserts «font size=2»«li»Item«/li»«/font» into each span that has item class.
d. Replaces each span tag that has class item with a «font size=2»«li»Item«/li»«/font».
$("div").find("p").andSelf().addClass("border");

The statement adds class border to ________.
a. all div tags and p tags in div tags
b. all div tags
c. all p tags
d. all p tags enclosed in div tag
Which of the following commands creates a basic dialog containing this code snippet <div id="id1"> Simple dialog</div> using jQuery UI?
a. $("#id1").dialog();
b. $('#id1).showDialog();
c. $('#id1).widget();
d. $('#id1).showWidget();
Consider the following code snippet:
<ul id='id1'>
    <li id='li1'>Items 1</li>
    <li id='li2'>Items 2</li>
    <li id='li3'>Items 3</li>
</ul>

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'));
b. $('#id1 li').except($('#li2'));
c. $('#id1 li').remove($('#li2'));
d. $('#id1 li').delete($('#li2'));
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.
b. Inserts each span tag that has class item into a li tag.
c. Inserts <li>Item</li> into each span that has item class.
d. Replaces each span tag that has class item with a <li>Item</li>.
Which of the following seems to be correct for ajaxStart(function()) method as shown in the below Code snippet?

$("#div1").ajaxStart(function())
a. Method Attaches a function to be executed before an Ajax request is sent.
b. Method Attaches a function to be executed whenever an Ajax request completes successfully.
c. Method Attaches a function to be executed whenever an AJAX request begins and there is none already activated.
d. None of the above.
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.
b. Inserts each span tag that has class item into a li tag.
c. Inserts Item into each span that has item class.
d. Replaces each span tag that has class item with a Item
Which of the following code snippets insert(s) the code snippet <div class="footer">footer</div> at the end of div tags?
a. $('div').append('
    footer
    ');
b. $('div').appendTo('
    footer
    ');
c. $('
    footer
    ').append('div');
d. $('
    footer
    ').appendTo('div');
Consider the following code snippet:
<form id="form1">
    <input type="text" id="text1" value="default" />
    <input type="text" name="email" />
</form>
<script type="text/javascript">
    function submitForm1()
    {
      alert($('#form1').serialize());
    }
</script>

What does the alert box display when the function submitForm1 is called?
a. email=
b. email=&text1=default
c. text1=&text2=
d. Nothing in the alert box.
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');
        });
    }
b. function moveElement() {
        $('p.para').each(function(index) {
            $(this).append('#content');
        });
    }
c. function moveElement() {
        $('p.para').each(function(index) {
            $(this).insertAfter('#content');
        });
    }
d. function moveElement() {
        $('p.para').each(function(index) {
            $(this).after('#content');
        });
    }
Consider the following code snippet:
function function1()
{
   alert(arguments.length);
}

Which of the following is true when you run function1();?
a. An error occurs because arguments variable is undefined.
b. An error occurs because you call function1 with no arguments.
c. The alert box displays "undefined".
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
    xhr.abort()
b. //xhr is ajax variable
    xhr.cancel()
c. //xhr is ajax variable
    xhr.die()
d. //xhr is ajax variable
    xhr.destroy()
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();
b. $("[id*='MyDropDownId'] :selected");
c. $("option:selected", myVar).text()
d. $('select[name="thegivenname"] option:selected').val();
Which of the following is the correct way to get the current URL in jQuery?
a. var pathname = window.location.pathname;
b. $(location).attr('href');
c. $(location).value('href');
d. var pathname = window.location.routename;
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")
    );
b. var t = $("

    ");
    $.append(t);
c. $('
    ',{
    text: 'Div text',
    'class': 'className'
    }).appendTo('#parentDiv');
d. var userInput = window.prompt("please enter selector");
    $(userInput).hide();
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')
b. $('.a, .b')
c. $(".a").filter(".b")
d. a.b
    {
    style properties
    }
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');
b. $('#myimage').click(function() { return false; });
c. $('#myimage').unbind('click');
d. $('#myimage').onclick(function() { return false; });
Which of the following is the correct way to Hide menu div by clicking outside the menu div?
a. $('html').click(function() {
    //Hide the menus if visible
    });

    $('#menucontainer').click(function(event){
    event.stopPropagation();
    });
b. $('#menucontainer').click(function(event) {
    $('body').one('click',function() {
    // Hide the menus
    });

    event.stopPropagation();
    });
c. $(document).click(function(event) {
    if($(event.target).parents().index($('#menucontainer')) == -1) {
    if($('#menucontainer').is(":visible")) {
    $('#menucontainer').hide()
    }
    }
    })
d. 4 down vote
    $(document).click(function() {
    $(".overlay-window").hide();
    });
    $(".overlay-window").click(function() {
    return false;
    });