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