Tuesday, February 25, 2014

Joomla1 test answer for oDesk

Hi Friends,
Today i am sharing with you Joomla1 test answer for oDesk. I am sure you will be get better result.

Question no.1: what is the default super administrator account for Joomla called?



Ans: Administrator.

Question no.2: which of the following PHP directives are important to Joomla execution to define alternate compression library if the standard library is notavailable?

Ans: extension_ dir

Question no.3: which of the following files is archive and contains the actual CB component that you must install  into Joomla while downloading CB?

Ans: com _ comprofiler 

Question no.4: which option will you choose to set the site metadata for the installed website?

Ans: global configuration

Question no.5: what will happen if we set the SSL enabled option to On?

Ans: the option will make  the link from the menu begin with an http://

Question no.6: the core editor events apply to plug ins that provide editor functionally such as Tiny MCE or Xstandard Lite.

Ans: true.

Question no.7: which PHP file does the index . PHP file load to provide the menu bar to the administrator interface?

Ans: toolbar.PHP

Question no.8: which of the given database system to supported by Joomla?

Ans: Mysql 

Question no.9: which of the following is the default editor of Joomla?

Ans: TinyMAC 

Question no.10: Joomla provides an abstracted method called get Escaped() that returns the escaped string regardless of the target database.

Ans:  false.

Question no.11: from which package are the classes (i.e JSite, JAdministrator , and JInstallation) which make up the Joomla CMS application extended?

Ans: installer.

Question no.12: what is not true about Joomla Xplorer?

Ans: none of the above.

Question no.13: which of the following is a system event?

Ans: OnDisplay

Question no.14: which Joomla file provides the central logic of the template,including any module and component display?

Ans: index.php

Question no.15: when will you use STMP authentication mail settings?

Ans: when you want to use an internal mail server.

Question no.16: what do you understand by the type of error?

Ans: it means that STRICT_ALL_TABLES is enabled.

Question no.17: which path variable holds the path of the currently executing applition?

Ans: all of the above.

Question no.18: which user events occur with plug ins that are installed for the front end of the system?

      Ans: both a and b

Question no.19: which type of positioning elements define a concrete area such as a p, td,div or table in a CSS file?

Ans: block element.

Question no.20: which of the following files does the "/includes" directory not contain?

Ans: none of above

Question no.21: why does Joomla use template Details .xml files?

Ans: all of the above   

Question no.22: which of the following events is activated after content rendering is complete for content type plug ins?

Ans: on after Display Content

Question no.23: all the Joomla settings are contained within a PHP class called JConfig

Ans: true

Question no.24: there are two roots classes for the Joomla frame work: JFactory and JVersion.

Ans: true.

Question no.25: what is not true about the MD5 hash value?

Ans: each password in Joomla is stored as a MD5 hash value.

Question no.26: which option will you select to find unpublished articles?

Ans:Article Manager  

Question no.27: which type of files can media manager not upload?

Ans: none of above.

Question no.28:  which type of server technology is used by Joomla?

 Ans: all of the above.

Question no.29: which of the following is not true about the front page manager?

Ans: you can't select your content for the front page all the contents. 

Question no.30: which among the following switches display the current version of PHP?

Ans: v 

Tuesday, February 4, 2014

Knowledge of Open Social Test Question

Question no.1: what will the following code fetch for variable "xyz" in open social for "ORQUT"?
a. current user ID
b.owner user ID
c.application ID
d.view ID


Question no.2: what do you mean by "Activity" in open social API (v0.7)?
a.action performed by a user
b.addition of a new user
c.deletion of an existing user
d.moderation of user
e.none of the above

Question no.3: what is the functionality of the "getdomain" method in the environment class in the open social API(v0.7)?
a.it displays the url of application
b.it gives the current site on which the application runnig
c.it gives information about the gadget url and the language used
d.all of the above

Question no.4: you have a collection of a multiple objects and you want to retrieve the size of that collection.which of the following methods will you use in order to calculate the collection size?
 a.getTotalSize()
b.size()
c.getcollectionSize()
d.getsize()

Question no.5: which of the following are compulsory for creating an OpenSocial(v0.7) application for Orqut?
a.orqut ID
b. standbox access
c.Google page hosting
d.database access
e.text editor

Question no.6: you have made a function named 'getfriends()' , which will get the list of friends once the OpenSocial API is loaded. which of the following event handler will call this function after the API has been loaded?
a.gedgets.util.registerOnLoadHandler(getfriends);
b.gadgets.io.makeRequest.getfriends();
c.gadgets.util.registerOnLoadHandler.getfriends();
d.gadgets.io.makeRequest(getfriends);

Question no.7: in Restful Data API , the server intersections are handled by  __________ protocol and the authentication is handled by__________.
a.HTTPS, OAuth
b.AtomPub,BBAuth
c.HTTPS, BBAuth
d.AtomPub,Oauth

Question no.8: Some of the class and methods in the 'gadget*.'namespace are feature spccific.
in which of the following tags must the <Require feature="foo"/> element be included in order to use them.
a.<content>
b.<module>
c.<CData>
d.<Module Prefs>

Question no.9: suppose there is an OpenSocial API named 'Messages' which is integrated with the Google APP Engine. through which of the following API namespace will OpenSocial app make calls and get data from API hosted on Google App Engine?
a.gadgets.io.MethodType(get)
b.gadgets.io.makeRequest
c. OpenSocial . DataRequest   
d.OpenSocial .newDataRequest()

Question no.10: which of the following are the supposed keys for the Url.getField() method?
a.Address
b.Link_Text
c.Type
d.Refferer

Question no.11: you can embed flash objects with OpenSocial(v0.7).
a.true
b.false

Question no.12: if you want to handle the error of maximum usages of "Quotas" in OpenSocial (v0.7) . which object field of the class "OpenSocial.ResponseItem.Error" will be used to handle the error?
a.Bad_request
b.Forbidden
c.Internal_Error
d.Not_Implemented
e.Unauthorized

Question no.13: you can send mails to friends by using OpenSocial (v0.7) for Orkut  application?
a.True
b.false

Question no.14: what does <Module Prefs> section specify in OpenSocial(v0.7)?
a.characteristics of the gadgets
b.controls that allow the users to specify settings for the gadgets
c.programming logic of the gadget
d.language used in the gadget

Question no.15: what will happen if "&bpc=1" appended to an orkut application canvas page url as querystring?
a.it will retain the cache of the page
b.it will load a fresh copy of the page
c.it will create cookies for the specific page  
d.it will create language specific views for the page.

Question no.16:  what kind of data can be saved and retrieved in OpenSocial API (v0.7)?
 a.per-user
b.global application
c.per-application
d.per-application instance

Question no.17: in the process of integrating OpenSocial API with Google App Engine , You do not need maintain any servers.
a.true
b.false

Question no.18:what is the purpose of the "gadgets.util.escapeString" function?
a. it is used  to HTML decode the string
b.it is used to escape special characters in a string
c.it is used to escape invalid string codes
d.it is used to HTML encode the string 
  
Question no.19: what is the functionality of the "gadgets. MiniMessage"class in the OpenSocial(v0.7)?
a.to create message that will appear to the user within the gadget
b.to create  message which are being displayed on the main menu
c.to create message which are used to send email  to friends
d.to create message to access data from other web servers.

Question no.20: persistence  API provides a storage mechanism to save and data.in which from the data stored?
a.it is stored in the form of data object
b.it is stored in the form of XML
c.it is stored in the form of encrypted codes
d.it is stored in the form of key / value pairs

Question no.21:in OpenSocial API ."OpenSocial.idSpec.Field"namespace is used 
a.to get the groudpid  of the user
b.to get the titleid of the message in message template
c.to get the userid of the user
d.to get the network distance between two users

Question no.22: if the content is a feed and you want to feed and you want to fetch the of entries in OpenSocial (v0.7) .which object field of class "gadgets.io.RequestParameters" will be used?
a.authorization
b.content_type
c.get_summarise
d.headers
e.methods
f.num_entires
g.post_Data

Question no.23: which of the following are the valid Content Types under 'gadgets.io.ContentType' namespace?
a.Dom
b.Feed
c.Script
d.Json

Question no.24: in persistence API, the data store only accepts strings for storage , which means that you must convert complex data structures to strings before saving them. which of the following functions is used to convert JavaScript objects and arrays to a string value?
a.gadgets .json.stringfy
b. gadgets.io.stringfy
c.gadgeds.io.encode values
d. gadgets.io.text

Question no.25: which of the following are the components of the OpenSocial JavaScript API (v0.7)?
a. JavaScript Api
b.gadgets
c.Google App Code
d.Restful API  

Question no.26: which of the following namespaces are included in OpenSocial JavaScript API (v0.7)?
a.OpenSocial -0.7
b.MyOpenSpace
c.OpenSocial
d.Gadgets

Question no.27: which of the following type convention are used in OpenSocial Gadgets API?
a.Array<T>
b.var
c.string
d.Map<K,V>
e.int 

Question no.28: which of the following methods are defined under "OpenSocial.Permission"
namespace?
a. OpenSocial.hasPermission()
b. OpenSocial.Permission.Viewer
c. OpenSocial.requestPermission()
d. OpenSocial.getPermission()

 Question no.29: what is shown in "Activity Stream" in an Orkut application using OpenSocial (v0.7)?
a. Newly added application in orkut
b. Newly added themes in orkut
c. recently added community
d. Updates to friends

Question no.30: which of the following are authorized of API supported gadgets in OpenSocial API(v0.7)?
a.gadgets .io.AuthorizationType.AUTHENTICATED
b.gadgets.io.AuthorrizationType.SIGNED
c.gadgets.io.AuthorizationType.WEB
d.gadgets.io.AuthorizationType.FROM
e.gadgets.io.AuthorizationType.NONE

Question no.31: arrange in proper sequence how an application gets live in Orkut using OpenSocial  _________
(v0.7).(String ______ with ____________ the _________ 1st)
1.submitting             the                 application                      to                   orkut
2.registration                       at                                sandbox
3.adding                            the                            application                      in                  sandbox
4.creating an account in orkut
a. 4,1,2,3
b.4,2,3,1
c.2,4,3,1
d.2,3,4,1

Question no.32: what is the function of the "gadgets .pubsub" namwspace in OpenSocial API (v0.7)?
a.it is used to create feed channels
b.it is used to publish messages to feed channels
c.it is used to subscribe gadgets to a messaging channels
d.it is used to unsubscribe gadgets from a messaging channels

Question no.33: with the help of the 'gadgets.io.makeRequest()' function in OpenSocial API , you can:
a.get a use'rs profile data
b.get a user's  friend list
c.delete "Persistance Data"
d.add a user to the friend list
e.fetch content from other web server and web pages

Question no.34: what is the function of the "makeRequest()" method in OpenSocial API (v0.7)?
a.it is used to add new content by the user
b.it is used to fetch content from other remote web servers and web pages
c.it is used to make a request for adding the specific application
d.it is used to make a request for accessing some perticular application

Question no.35: which of the following are the constant identifier in OpenSocial API?
a. owner
b. viewer
c. users
d. viewer_friends  

Question no.36: which of the following languages are  used for integrating OpenSocial API with Google App Engine?
a. javascript
b.HTML
c.C++
d.json
e.python

Question no.37: which of the following content type requests are handled by the gadgets.io.makeRequest (url,            callback,                             opt params)
a.Text request
b. DOM request
c.HTTP request
d.JSON requests
e.FEED requests

Question no.38: you can to build an OpenSocial API ,and you want to configure the API to be run on verson 0.7? which of the following statements is the correct configuration?
a.<EnumValue feature ="OpenSocial-0.7"/>
b.<require feature = "OpenSocial-0.7"/>
c.<EnumValue Version ="OpenSocial-0.7"/>
d.<require version = "OpenSocial-0.7"/>  

Question no.39: which of the following are supported keys for the person .getField() method?
a. About_me
b.Nickname
c.Links
d.Trun_offs

Question no.40: when you add an application to orkut sandbox by using OpenSocial (v0.7), which of the following types of users can add the application?
a.orkut users with sandbox access
b.the application creator and his friends
c.any orkut user
d.none of the above

Question no.41: which of the following "Data request" methods will be used in order to read , write, and clear data from persistence API?
a.newFetchPersonRequest(idSpec, opt_params)
b.newFetchPersonAppDataRequest(idspec , keys)
c.newFetchPeopleRequest(idSpec,opt_params)
d.newUpdatePersonAppDataRequests(id, key , value)

Question no.42: in OpenSocial API , the "gadgets . prefs" namespace enables the end user to ___________
a.set preference of the OpenSocial API
b.set OpenSocial API module dimensions
c.handle messages in API
  d. set Permissions of the API 

Question no.43: which of the following request is sent to the API server when an OpenSocial API wants to call the Google App Engine server for data?
a.fetch_data
b.get_data
c.get
d.call

Question no.44: which of the following are valid RequestParameters under "gadgets.io.parameters" namespace?
a.post_data
b.Get_data
c.content_type
d.set_data

Question no.45: you have an OpenSocial API. you want to show the same OpenSocial API content in both 'profile' view and 'canvas' view. which of the following is the correct code?
a.<content type = "html"view="(profile canvas)">
b.<content type="html"view="all">
c.<content type= "html"view="profile canvas">
e. any of the above can be used

Monday, January 27, 2014

oDesk Java Programme test Answer 2014

Question no.1: what is the java net . IDN class in 1.6?


Ans: methods the convert internationalized domain names(IDNs)  between a normal Unicode representation and an ASCII compatible encoding (ACE) representation .

  Question no.2: which of these interfaces are used by implementations of model for JTable?

Ans: Table Model, Table CommomModel

Question no.3: how many times can classes be nested within a class?

Ans: any number of times.

Question no.4: one method in your application needs to be synchronized.which of the following options are correct for synchronization?

Ans: a.public void Process(){synchronized(this){}}
b.public void synchronized Process(){}

Question no.5: what could be the replacement of "//ABC" in the following code 
public class jam
{
public void apple(int i, String s)
{}
//ABC
}

Ans.: a. public void apple (string s , int i ){} 
b. public void apple(int i , string s){}

Question no.6: what will be the output when the following code is complied and run?
public class test 
{
public static void main( string args[])
{
int i;
i= 3;
system.out.print((int)i*2.5/3.0);
}
}

Ans: the code will print 2.5

Question no.7: what would happen on trying to compile and run the following code?
public  class MainCls
{
public Static Void Main(String args [])
{
system.out .printIn("My Text")
}
}

Ans: the code will compile. a runtime error will occur because "main" is not properly defined.

Question no.8: which of the following are "keywords" in Java?

Ans: a.default
b. throws

Question no.9: which of the following statements is true of the HashMap class?

Ans: a.it stores information as key/ value pairs. 

Question no.10: how does the set collection deal with duplicate elements?

Ans: the add method returns false if you attempt to add an element with a  duplicate value.

Question no.11: what is wrong with the following code?
class X extends Exception{}
public class Y
{
public void foo()
{
try{
b();
}
finally{
ba();
}
catch(MyException e) {]
}
public void ba()throws X {
throw new X ();
}
public void ba()  throws  RunTime Exception  {
throw new RunTime  Exception();
}
}

Ans: none of the above

Question no.12: is the following code valid?
InetAddress ad =  InetAddress.getByName("195.186.2.111");

Ans: yes

 Question no.13: which of the following can't apply to constructors?

Ans: void return type

Question no.14: choose the correct declarations for the main() method which will allow the class to be run as a standalone program.

Ans: public static void main (String str[])

Question no.15: for a class defined inside a method , what  rule governs access to the variable of the enclosing method?

Ans: the class can only access transient variables.  

Question no.16: a method can be defined as native to:

Ans: a.get to access hardware that Java does not know about.
b.write optimized code for performance in language such as C/C++

Question no.17: what will be the output of the following line?
system.out.print(Math floor(-2.1));

Ans: -3.0

   Question no.18: for the given variable , which of the following will compile without an error?
char c ='c';
int j =50;
double d =80;
long l =200;
string s = "Goodbye";

Ans: s+ =i

Thursday, January 23, 2014

ODesk HTML 5 Test Answer 2014

Hi Friends,
Today i am sharing with you oDesk html 5 test answer. There are all information is correct.
you can see one more related post about it Odesk HTML Test 4.01 Answer. if you have another information about this test answer. Please post a comment and share your experience with us.


Question no.1: Which media event is triggered when there is an error in fetching media data in HTML 5.0?

Ans: on stalled.

Question no.2: which of the following video file formats are currently supported by the <video> element of HTML 5.0?

Ans: MPEG 4


Question no.3:   which of the following is an invalid  value for the type attribute of command tag?

Ans: command

Question no.4: which of the following is NOT a valid value for the <i frame> sand box attribute in HTML 5.0?

Ans: url

Question no.5: what is the function of the history traversal task source in HTML 5.0?

Ans: it is used to queue calls to history . back () and similar APIs

Question no.6: what will be the result if you use the following code to your HTML 5.0 document?
  <p>I use <del> MAC </del><ins>Microsoft </ins>!</p> 

Ans: i use MAC microsoft

Question no.7: you want to create a link for your website allowing users to email the webmaster. how will you implement this if the webmaster 's email address is webmaeter@xcompany.com?

Ans: <a href = "mailto.webmaster@xcompany.com">webmaster</a>

Question no.8: in HTML 5.0 how will the script be executed  if you use the script element shown below?
  <script src="script.js"type="text/java script"defer="defer"></script> 

Ans: b. the script will be the executed when the page has finished parsing.

Question no.9: what is the output when you use the HTML 5.0 code snippet shown below?
<body on load=" alert (this)">

Ans: it will be alert saying "[object window]" when the document is loaded.

Question no.10: a computer programming book has to go online. what of the following tags is ideal for displaying the program snippet?

Ans:<code>

Question no.11: how will you bind the details option (shown below) with an <input> element, whose type attribute is set to url to get the result shown in the image?

 Ans: user should define a list attribute to the input element whose type is url.

Question no.12: which of the following are valid a html 5.0 element?

Ans: (check ALL)

Question no.13: how does a button created by the <button> tag differ from the one created by an <input > tag?

Ans: an input tag button can be a reset button too.

Question no.14: which of the following attributes comes in handy when borders have to be put between group of columns instead of every column?

Ans: col group

Question no.15: which of the following is correct with regard to the on can play through event fired by media recourse in the HTML 5.0 document?

Ans: the script will run when the media is played to the end, without stopping for buffering.

Question no.16: what does the icon attribute of the HTML 5.0 command tag define?
<command icon="?">click me!</command>

 Ans:it is used to define the url of an image to display as the command.

Question no.17: while rendering your HTML 5.0 web page, which of the following <link> element files will get skipped by a compliant user agent if you include the link element shown belowin your document?
<link rel ="stylesheet"href="A"type = "text/plain">
<link rel=stylesheet"href="B"type="text/css">

Ans: a link element whose href  is= "A"

Question no.18: which <body> tag event is find when the user leaves the document?

Ans: on unload

Question no.19: how will you change the value of the cookies and items in the storage objects of the local storage attribute in HTML 5.0?

Ans: by invoking the window . navigator. yield For Storage updates()Api mathod

Question no.20: what is the role of the < dfn> element in HTML 5.0?

Ans: it is used to define a definition term.

Question no.21: which of the following is NOT a valid syntax for the <h1>element in HTML 5.0?

Ans: <h1 align="center">this is header 1</h1>

Question no.22: which from event is fired on the click of a button using a button tag with its type attributes value equal to submit?

Ans: on submit

Question no.23: how will you return a reference to the parent of the current window or subframe in an HTML5.0 web application    ?

ans: window parent.

 Question no.24: in HTML 5.0,which of the following is NOT a valid value for the type attribute when used the when  used with the<command>tag shown below?
<command type="?">Click me!</command>

Ans: button.

Question no.25: what is the default background color for the canvas element in HTML 5.0?

 Ans: Transparent

Question no.26: which of the following are valid mouse events in HTML 5.0?

Ans: (check ALL) 


   
Question no.27: which of the following language will you use to print the graphic designed using the HTML 5.0 <canvas> tag?

Ans: java script

Question no.28: consider the following item s of a <select> list: 
<option value = "89">item 1</option>
<option value ="90">item 2</option>
which of the following values would be passed on by clicking the submit button on a selecting item 2 from the list?

Ans: 90

Question no.29: when is the window on stored event triggered in the HTML document?

Ans: it is triggered when a document perform an undo function.

Question no.30: which of the following is NOT a value attributes for the <video> element in HTML 5.0?

Ans: disabled

Question no.31: which of the following represents INVALID syntax for defining as attribute value in a HTML 5.0 document?

Ans: <input name= be evil/>

question no.32: consider the above code. what will be the impact upon the contents element if both the style sheets define the same class?
 the question is based upon the figure shown below:  

Ans: the content of the element will be of blue color and will inherit all the effects of style1.css 

Question no.33: which of the following is NOT a valid attribute for the <link> element in HTML 5.0?

 Ans: href lang

Question no.34: which of the following is an INVALID keyword value for http equiv attribute when used with the <meta> element in HTML 5.0?

Ans: expires , set cookies , keyword, author

  Question no.35: which of the following statements is correct if you allow the user to select only one radio button from a group of the radio buttons? 

Ans: the name of the input tag must be the same for all the radio buttons.

Question no.36: which of the following <iframe> attribute are NOT supported in HTML 5.0?

Ans: margin height, srolling

question no.37: in HTML 5.0 ,what is the function of the sandbox attribute when used with <iframe> as shown below?
<iframe src= " aaa"sandbox=?></iframe>

Ans: it is used to define the restriction to the frame content.

Question no.38: which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?

Ans: compact

Question no.39:which of the following   would give a yellow background to the web page?
 note: the  code used in the "correct" answer below was deprecated in HTML 4.01! use style instead for new code.

 Ans: <body bgcolor= "yellow">

Question no.40: what is the function of on obsolete ,an application cache API method in HTML 5.0?

Ans: it triggers an event when the cache content has been marked as obsolute.

  Question no.41: suppose you add the input code given about your HTML web page. what result will be returned by the java script function when you click the button marked as A in the image?

Ans: text

question no.42: how does a button created by the <button> tag differ from one created by an <input>tag?

Ans: an input tag button can include images as well.

Question no.43: which of the following HTML 5.0 elements is used to embed java applets into your HTML 5.0 web page?

Ans: <object>

Question no.44: which of the following is NOT a valid attribute for the element in HTML 5.0? 

  Ans: http equie.

Question no.45: which of the following are valid values for the content editable attribute of three element in HTML 5.0?

Ans: true,false

Question no.46: you want to display a table listing out customer names and their content information . the heading of the table is shown in the figure . what is the code for creating the first line of the table heading?

  Ans: b <tr>
<th>customer Name</th>
<th col span=3 contact </th>
</tr>

question no.47: which of the following <section> elements have the correct attributes assignment as per HTML 5.0?

 ans: c.<section id="EXAMPLE">...</section>
d. <section id="EXAMPLE">...</section>
<section id="EXAMPLE">...</section>

question no.48: which of the following statements is correct if you invoke the window prompt (message,default) web application API method in HTML 5.0?

Ans: both b and c

Question no.49:which of the following is NOT an attribute of the <meta> element in HTML 5.0?

Ans: scheme 

 Question no.50: which media event will be fired when a media resource element suddenly becomes empty?

 Ans: on emptied

Question no.51: what is the purpose of the <keygen> element in HTML 5.0?

Ans: it is used to generate a public private key pair in an HTML 5.0web page.

Question no.52: which event is fired when an element loses its focus in HTML 5.0 document?

Ans : on blur

Question no.53: a piece of text contains many blank space within it. which of the following tags would be suitable to display the text as it was originally formatted?

Ans: pre

Question no.54: which HTML 5.0 element will you use to group the related options in a drop down list?

 Ans: opt group

Question no.55: you are writing the code for an HTML form and you want the browser to retain the form's input values. that is , if a user submits the form and presses the browser's back button , the fully populated form is displayed instead of a blank form. which of the following HTML 5.0 attributes will you use?

Ans: form target.

Question no.56: which of the following tags would assist in creating named groups within a select list?

Ans: opt group.

   Question no.57: how will you cancel the timeouts that are set with the set Interval() API method identified by the handlers in HTML 5.0?

Ans:a. window. clear Interval(handle)
b. <tr>
<th> customer Name</th>
<th col span= 3> contact</th>
</tr>

Question no.58: what is the default background color for the canvas element in HTML 5.0?

Ans: transparent.

Question no.59: which of the following are valid values for the content editable attribute of the <figure > element in HTML 5.0?

Ans: false 

Question no.60: which media event is triggered when there is triggered when there is an error in fetching media data in HTML 5.0?

Ans: on suspend.

Question no.61: which of the following is NOT a valid attribute for the <link> element in HTML 5.0?

Ans: http equiv.

Question no.62: which of the following HTML 5.0 elements is used to embed java applets into your HTML 5.0 web page?

Ans: <object>

Question no.64: how does a button created by the <button> tag differ from the one created by an <input> tag?

Ans: an input tag button can include images as well.

Question no.65: how will you return a reference to the parent of the current window or sub frame in an HTML 5.0 wed application?

Ans: window.parent

Question no.66: suppose you add the input code given above to your HTML web page. what result will be returned  by the Java script function when you click the button market as A in the image?

ans: text.

Question no.67: which of the following statement is correct if you allow the user to select only one radio button from a group of radio buttons?

Ans: the name of the input tag must be the same for all the radio buttons.

Question no.68: what will be the result if you use the code to your HTML 5.0 document?
 <bdo dir="rtl">
here is the some text that should be written to your document.
</bdo>

Ans: tnemucod ruoy ot enttirw eb dluohs taht txet emos si ereh.

Question no.69: which of the following would give a yellow background to the webpage?
note : the  code used in the "correct" answer below was deprecated in HTML 4.01! use styles instead  for new code.

Ans: <body bgcolor = "Yellow">

Question no.70: how will you change the value of the cookies and items in the storage object  the local Storage attributes in HTML 5.0?

Ans: by invoking the window . navigator .yieldForStorageUpdates() API method.




Question no.71: how will the target URL open when you define the <a> element in your HTML 5.0 document as shown below?

Ans: the target URL will open in the same document in which it was clicked.


Question no.72: what will be the browsing context if the browsing context if the browsing context name is _ top when the HTML 5.0 web page is loading?

Ans: it will load the linked document in the topmost frame.

Question no.73: which of the following is an INVALID value for the type attribute of command tag?

Ans: text


Question no.74: the following link is placed on an HTML webpage.

Ans: it will open the site msdn.com in a new window.  


Question no.75: you have the following directory structure.
webroot->products->ordered->delivered
the product directory has a page called Product. HTML. and the delivered directory has a page called Delivered.html. you want to provide a link to the products page on Delivered.html.the idea code should be:

Ans: <a href= "/..product.html">all product</a>

Question no.76: what will be result if you use the following code to your HTML 5.0 document?

<p>I use<del>MAC</del><ins>Microsoft</ins>!</p>

Ans:i use MAC Microsoft

Question no.77: which of the following is the correct syntax to define  charset in the html 5 <meta> element?

Ans: <meta char set=ISO-8859-1"> 

Question no.78: which of the following is the correct method to load another web page or reload the seme page in HTML 5.0?

Ans: all of the above

Question no.79: which <body> tag event fired when the user leaves the document?

Ans: on unload.

Question no.80: which event is fired when the history of the browser window changes?

Ans: on pop state. 

Tuesday, January 21, 2014

knowledge of Google SketchUp pro 7 skill test

Question no.1: what is the basic pre - requisite for the flip Edge in Standbox tools to operate?


Ans: the surface needs to contain triangulations.

Question no.2: in the given illustrations, what is the difference between the types of selection?
   a. A select the polygon and B selects the arc
b. A gives entity info the ellipse and B gives entity info of the path
c.A gives Entity info of the selected face and B gives Entity info the segment
d. A and B are identical selections.

Question no.3: which toolbar has been enabled in the given illustration?
 a. views
b.selections
c.faces
d.layers

Question no.4: where can you locate the geometric parameters/attributes of an imported component or a model in Google SketchUp?
a.Right click> Entity info
b. Window menu > Components > Statistics tabs
c.Window>Preference>Component info
d.View menu >Toolbar> Dynamic components  

Question no.5: the SimplifyContours.rb  Ruby script file is available for free download from www.sketchup.com/downloads . what does this file do?
 a.it enhances Soften / Smooth Edges feature.
b.it improves the performance of StandBox tools.
c.it display the model edges more accurately.

Question no.6: in order to convert a single surface into a component , you may not get the option of Make Component in the context menu,as shown in the figure.what could be a possible workround for this? 
 a.a single surface can't be converted into a component.
b.select bounding edges to enable the option make component
c.Press Ctrl and right click on the surface again.
d.go to Edit menu and choose Make Component from the drop down

Question no.7: when does Google SketchUp display a warning message to the user as shown in the figure?
a.while using scale tool on multiple components.
b.while using the tape measure tool to resize models with imported components.
c.while using the offset Tool on components loaded from external files.
d.when you try to resize multiple components with single selection window

Question no.8: how can the transformation as shown in the figure given illustration   be brought about?
a.view>Face style>wireframe
b.right click>Explode
c.view>hidden geometry
d.right click> intersect> intersect selected

Question no.9: of the following , which tools is not found in the construction tools of Google SketchUp?
a.3D text
b.tape measure
c.protactor
d.renderer

Question no.10: which of the following options would results in drawing of a triangle?
a.select circle tool> draw circle> types 3s in the value control box.
b.select rectangle tool>Draw rectangle>types 3sin the value control box
c.select Polygon tool> draw a Polygon > SketchUp  draws a triangle by default
d.none of these option will end up as a triangle

Question no.11: which settings window has been displayed in the given figure ?
where can you access it from?
a.geometry settings . it can be accessed under toolbar> geometry
b.shadow setting. it can be accessed under Window> Shadows
c.style setting.it cab be accessed under Window>Style
d.layer settings.it can be accessed under Toolbar>Layers

Question no.12: in the layer palette shown in the given figure,what happens when you unchecked the box under Visible for layer 1?
a.layer 1 disappears from the model
b.layer1 gets deleted from the model
c.layer1 appears grayed out.
d.sketchup doesn't allow to hide active layers.

Question no.13: which of the following options will not help you import models form 3D warehouse?
a.get models from the components window
b.go to SketchUp help and downloads.
c.use the get models option under the file menu
d.open the 3D warehouse in your internet browser.  

Question no.14: which of the following four methods would not work for the follow Me tool?

a.preselect a face  or an enclosed surface as a path
b.use the Alt key key to define a path a around face.
c.Preselect edges of a path that may or may not lie on the surface.
d.select curve

Question no.15: which of the following context menu sub-options will NOT work for the the intersect tool in Schtchup?
a. intersect with model
b.intersect select
c.intersect with
d.intersect with context

Monday, January 20, 2014

Odesk & Elance ASP.NET 3.5/2.0 C# test answers

Hi Friends,
Today i am sharing with you 100% corrected answer of oDesk & Elance  ASP.NET 3.5/2.0 C# test answer. if you have another information or suggest about oDesk & Elance  ASP.NET 3.5/2.0 C# test answer. Please post a comment below and share your experience with us.


Odesk & Elance ASP.NET 3.5/2.0 C# test answers

Ques.1
Which of the following is/are applicable while using Server Socket Level communications?

a.     A certificate must be installed on the server.
b.    The certificate must match the web address to prevent a browser warning or error.
c.     The certificate must be issued by an authority recognized by the client computer to prevent a browser warning or error.
d.    All of the above.

The answer is: d. All of the above.


Ques.2
In which file are Predefined Client Side Validation Scripts defined?

a.     WebUIValidation.js
b.    ClientValidation.js
c.     AspNetValidation.js
d.    UserValidation.js

The answer in: b. ClientValidation.js


Ques.3
Which of the following are true regarding the System.Collections.Generic.HashSet<T> class?

a.     HashSet is an unordered collection.
b.    The default EqualityComparer checks whether the element supplied to the HashSet is unique or not.
c.     HashSet provides functionality for “conceptual sets” where the rules for membership can be specified without actually creating all of the items.

The  answer is: b.  The default EqualityComparer checks whether the element supplied to the HashSet is unique or not.


Ques.4
Which of the following are true about Extension methods.

a.     They can be either declared either static or instance members.
b.    They must be declared in the same assembly (but may be in different source files)
c.     Extension methods can be used to override existing instance methods.
d.    Extension methods with the same signature for the same class may be declared in multiple namespaces without causing compilation errors.

The answer is: a. They can be either declared either static or instance members.


Ques.5
Which of the following conditions can trigger the automatic recycling of an ASP.NET application hosted in IIS?

a.     A specific number of requests to the application process.
b.    A percentage of physical memory utilized by the process.
c.     A specific time interval
d.    All of the above

The answer is: d. All of the above


Ques.6
Via which of the following is ViewState maintained by default?

a.     A hidden variable within the page that is included with each round tip.
b.    A cookie which resides on the client’s computer.
c.     A server side in-process memory cache.
d.    Instance memory variables of the Page class.

The answer is: a. A hidden variable within the page that is included with each round tip.

  

Ques.7
Which of the following are true about System.Security,Cryptography under version 3.5 of the framework?

a.     Support is provided for the “Suite B” set of cryptographic algorithms as specified by the National Security Agency(NSA).
b.    Cryptography Next Generation (CNG) classes are supported on XP and Vista systems.
c.     The System.Security.Cryptography.AesManaged.class allows custom block size , iteration counts and feedback modes to support any Rijndael based encryption.

The answer is: b. Cryptography Next Generation (CNG) classes are supported on XP and Vista systems.


Ques.8
Which of the following are recqired to be true by objects which are going to be used as keys in a System.Collections.HashTable?

a.     They must handle case-senstivity identically in both the GetHashCode() and Equals() methods.
b.    Key objects must be immutable for the duration they are usedwithin a HashTable.
c.     Get HashCode() must be overridden to provide the same result, given the same parameters, regardless of reference equality unless the HashTable constructor is provided with an IEqalitycomparer parameter.
d.    Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement
e.     All of the above

The answer is: e. All of the above.


Ques.9
Which of the following can be used to control caching within an ASP.NET application?

a.     Using the @OutputCache directive in the .aspx file.
b.    Setting the HttpCachePolicy of the Cache property inside the Response object.
c.     Using the Cache property of the Page object.
d.    All of the above

The answer is: a. Using the @OutputCache directive in the .aspx file.


Ques.10
Which of the following are included in the advantages of  Lambda Expressions over Anonymous methods?

a.     More concise syntax
b.    The types of a Lambda Expression may be omitted
c.     The body of an anonymous method can not be an expression
d.    Lambda Expressions permit deferred type inference, that anonymous methods do not
e.     All of the above

The answer is: a. More concise syntax


Ques.11
Which of the following does using Initializer Syntax with a collections as shown below require?
CollectionClass<int> numbers = new CollectionClass<int> {0,1,2,3,4,5,6,7,8,9};

a.     Collection class must implement
System.Collections.Generic.ICollection<T>
b.    Collection Class must implement
System.Collections.Generic.IList<T>
c.     Each of the items in the Initializer  List will be passed to the Add<T>(T item) method

The answer is: b. Collection Class must implement
System.Collections.Generic.IList<T>  and  c. Each of the items in the Initializer  List will be passed to the Add<T>(T item) method



 Ques.12:
Which of the following are true about System.Security.Cryptography under version 3.5 of the framework?


    a.    Support is provided for the "Suite B" set of cryptographic algorithms as specified by the National    Security Agency (NSA).
    b.    Cryptography Next Generation (CNG) classes are supported on XP and Vista systems.
    c.    The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any Rijndael based encryption.

 the answer is:    b.    Cryptography Next Generation (CNG) classes are supported on XP and Vista systems.


Ques.13:
Which of the following types guarantee atomic reads and writes?


    a.    int
    b.    double
    c.    long
    d.    float
 the answer is:    a.  int  and   d.  float


Ques.14:
Which of the following is false about declarative attributes?


    a.    They must be inherited from the System.Attribute.
    b.    Attribute classes may be restricted to be applied only to application element types.
    c.    By default, a given attribute may be applied multiple times to the same application element.
 the answer is.    b.   Attribute classes may be restricted to be applied only to application element types.



Ques.15:    When deleting a data row from the data row collection of a data table,you can

a.Use the DataRowCollection.Remove method to immediately delete the row.
b. Use the DataRowCollection.Remove method to mark the row for deletion when    DataRow.AcceptChanges is called.
c. Use the DataRow.Delete method to immediately delete the row.
d. Use the DataRow.Delete method to mark the row for deletion when DataRowAcceptChanges is called.

The answer is : (a). Use the DataRowCollection.Remove method to immediately delete the row.  And   (d).  Use the DataRow.Delete method to mark the row for deletion when DataRowAcceptChanges is called.


Ques.16:Which of the following is NOT a valid C# preprocessor directive?


    a.    #define
    b.    #line
    c.    #include
    d.     #error
    e.    #pragma
the answer is: e: #pragma


 Ques.17:
When developing a managed client to be used with an existing COM component.________

    a.    you should modify the COM component to enable CLR functionality.
    b.    you should use Tlblmp.exe to create a managed wrapper.
    c.    you should use TlbExp.exe to create a managed wrapper.
    d.   you should enable an unsafe code.



 
 the answer is: a. you should modify the COM component to enable CLR functionality.

Ques.18:
Which of the following is true about C# generics?
a.     C# allows non-type template parameters.
b.    C# supports explicit specialization.
c.     C# allows the type parameter to be used as the base class for generic type.
d.    C# allows a generic type parameter itself to be a generic.
e.     C# enforces that all codes are valid for all types of parameters.


The  answer is: d.   C# allows a generic type parameter itself to be a generic.


Ques.19
Which of the following are true about namespaces & assemblies?

a.     A single assembly may contain multiple namespaces.
b.    The same namespace may be used in multiple assemblies.
c.     Namespaces may be aliased to provide a shorthand notation for a fully qualified identifier.
d.    All of the above.


The answer is: d. All of the above.


Ques.20
Which of the following are valid as the underlying type for an enumeration?

a.     Int
b.    Sbyte
c.     Long
d.    All of the above

The answer is: a. Int


Ques.21
Elements in System.Collections.Specialized.OrderedDictionary are:

a.     Sorted by Key
b.    Sorted by element
c.     Not sorted

The answer is: a: Sorted by key


Ques22.
Which of the following types are derived from System.Reflection.MemberInfo?

a.     System.Reflection.PropertyInfo
b.    System.Reflection.EventInfo
c.     System.Type
d.    System.Refection.InstanceInfo

The answer is:  a. System.Refection.PropertyInfo
                              b. System.Refection.EventInfo  


Ques23.
Which of the following is false about declarative attributes?

a.     They must be inherited from the System Attribute.
b.    Attribute classes may be restricted to be applied only to the application element types.
c.     By default, a given attribute may be applied multiple times to the same application element.

The answer is: b. Attribute classes may be restricted to be applied only to the application element types.


Ques.24
Custom non-fatal exceptions should be derived from:

a.     ApplicationException
b.    DataMisalignedException
c.     ExecutionEngineException
d.    SystemException

The answer is: a.  ApplicationException