Monday, December 17, 2012

CSS 2.0 Test 2014-04

https://jobs3.netmedia1.com/cp/faces/job_summary?job_id=SWG-0583112
http://www.tutorialspoint.com

#1 Question:
You defined some links as follows:

a:link {color: green}
a:visited {color: blue}
a:hover {color: red}
a:active {color: black}

What will be the color, when the mouse goes over a link?
  • a. Green
  • b. Blue
  • c. Red
  • d. Black

#2 Question:
Which style property can be used to display only some part of an image?
  • a. snap
  • b. clip
  • c. scroll
  • d. visible

#3 Question:
How will you display text as a superscript?
  • a. vertical-align: super
  • b. vertical-align: superscript
  • c. vertical-align: top

#4 Question:
While displaying some text on a web page you want to increase the spacing between the words and bring the letters within the word closer to each other. Which of the following is the best style definition if you are targeting all the paragraphs?
  • a. par {letter-spacing: 3px; word-spacing: -5px}
  • b. par{letter-spacing: -0.8px; word-spacing: 25px}
  • c. p {l-spacing: 3px; w-spacing: -5px}
  • d. p {letter-spacing: -0.8px; word-spacing: 25px}

#5 Question:
Here is one of the styles defined in your webpage:

.redborder
{
border-color:#ff0000;
border-width:thin thick
}

What type of border will be displayed if one of the paragraphs defined in the webpage uses this style?
  • a. This will display a red border with thin top and bottom
  • b. This will display a red border with thick top and bottom
  • c. This will display a red border with thick left and right
  • d. This will not display any border

#6 Question:
Which of the following font properties deals with aspect value?
  • a. font-weight
  • b. font-variant
  • c. font-size-adjust
  • d. font-size

#7 Question:
Background-position sets the position of the background image. What happens if its value is 0%0%?
  • a. Image will have zero width and height so it will be hidden.
  • b. Image will be positioned at the upper left corner.
  • c. Image will be positioned at the lower right corner
  • d. None of the above
#8 Question:
The following is a style definition:

td#aln
{ text-align: center;
color: blue }

How will you refer to this style in your web page?
  • a. By using the class attribute on a td cell
  • b. By using the id attribute on a td cell
  • c. By using the class attribute on any HTML element which supports the class attribute
  • d. By using the id attribute on any HTML element which supports the id attribute

#9 Question:
Which of the following are correct values of the overflow property?
  • a. visible
  • b. hidden
  • c. scroll
  • d. auto
#10 Question:
Is it possible to force a style definition in a linked stylesheet to over-ride an in-line style definition?
  • a. Yes
  • b. No
#12 Question:
Which of the following statement is correct?
  • a. When using CSS, positioning can be absolute, relative or dynamic
  • b. The float property for text/images can be left, right or center
  • c. The values for visibility can be true or false
  • d. The display property sets how an element is displayed

#13 Question:
Which of the following is correct?
  • a. blockquote { text-padding: 2em 4em 5em }
  • b. blockquote { padding-x: 2em 4em 5em }
  • c. blockquote { padding-y: 2em 4em 5em }
  • d. blockquote { padding: 2em 4em 5em }
#14 Question:
Which of the following is not a correct keyword value for the display property?
  • a. expanded
  • b. inline-table
  • c. table-row
  • d. table-column-group
#15 Question:
Which of the following cursor types is not valid?
  • a. wait
  • b. pointer
  • c. text
  • d. image
#16 Question:
The following is a style definition:

#styl2
{
color: red;
}

How will you refer to this style in your web page?
  • a. By using the class attribute in a td cell
  • b. By using the class attribute in any HTML element which supports the class attribute
  • c. By using the id attribute in any HTML element which supports the 'id' attribute

#17 Question:
When would you prefer to use the @import technique for applying a style sheet to your web page?
  • a. When you are creating pages for older versions of Netscape Navigator
  • b. When you don't want older browsers like IE4 or Netscape 4 to use the style sheet
  • c. When you want to include a css file in another css file
  • d. There is no such technique available for applying style sheets
#18 Question:
Which of the following is not a valid list property?
  • a. list-style-type
  • b. list-style-position
  • c. list-style-image
  • d. list-style-align
#19 Question:
You have the following style definition:

h2, h4, h5, h6
{
color: cyan;
}

Which of the following is correct for the above definition?
  • a. Grouping of tags is not allowed in the style definition
  • b. The style definition should span a single line
  • c. Grouping tags should be separated by semicolons
  • d. You can group as many tags as you like
#20 Question:
Can you define multiple styles for the same HTML element/tag or selector?
  • a. Yes
  • b. No
#21 Question:
What is the effect of the following style:

p strong {color: green; }
  • a. All strong text and all paragraph text will be displayed in green color
  • b. All paragraphs that are contained within <strong></strong> tags will be displayed in green color
  • c. All strong text that is contained in a paragraph will be displayed in green color
  • d. Only the paragraph text will be displayed in green color
  • e. Only the strong text will be displayed in green color
  • f. The style definition is erroneous and will not be applied to any element of the webpage

#22 Question:
The default value for the overflow property is:
  • a. scroll
  • b. visible
  • c. hidden
  • d. auto
#23 Question:
Which of the following is true for a class selector?
  • a. It uses a hash as the separator symbol
  • b. It applies the style to only the first element defined with that style
  • c. It applies the style to only the last element defined with that style
  • d. It applies the style to all the elements defined with that style

http://www.read4learn.com/question/odesk/29/css-2


#24 Questions:
Which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?
  • a. orphans
  • b. widows
  • c. bottom
  • d. overflow
  • e. None of the above
#25 Question:
The font "Times New Roman" has an aspect value of 0.46. What do you understand from this?
  • a. When font size is set to 46pt, the height of the letter 'x' will be 100pt
  • b. When font size is set to 100pt, the height of the letter 'x' will be 46pt

#26 Question:
You want to define the same media style for both print and screen media. Which of the following is the correct structure for the style?
  • a. @media screen, print {  span.med{font-weight:bold}  }
  • b. .media screen, print {  span.med{font-weight:bold}  }
  • c. .media screen print {  span.med{font-weight:bold}  }
  • d. #media screen, print {  span.med{font-weight:bold}  }

#27 Question:
Which of the following values are correct for font-style?
  • a. normal, wider, narrower
  • b. normal, italic, oblique
  • c. normal, bold, lighter
  • d. small, medium, large

#28 Question:
Which of the following is not a pseudo class?
  • a. link
  • b. active
  • c. lang
  • d. ins

#29 Question:
You defined two styles as follows:

td.right {text-align: right}
td.left {text-align: left}

Which of the following is the right way to use them in an HTML page?
  • a. <td class="td.right">Some Text</td>
  • b. <td class="right" class="left">Some Text</td>
  • c. <td class="td.left" class="td.right">Some Text</td>
  • d. <td class="right">Some Text</td>

#30 Question:
The following is a style definition:

BODY {background: url('banner.jpeg') right top}

What is the percentage of the background-position?
  • a. 0% 0%
  • b. 0% 100%
  • c. 100% 0%
  • d. 100% 100%
#31 Question:
Consider this style definition:

p,i { color:red }

What do you understand about the contextual selector used above?
  • a. All the text within a paragraph will be italicized
  • b. All the italic text in the page will have red color
  • c. All the page text under <p></p> tag and <i></i> tag will be red
  • d. All the italic text within a paragraph will be red


http://odesksolution.blogspot.in/search/label/odesk%20css%20test
#32 Question:
You have to display an image behind an absolutely positioned paragraph text. Which of the following will you use?
  • a. Set negative z-index for the image
  • b. Set positive z-index for the image
  • c. Set negative x-index for the image
  • d. Set positive x-index for the image
#33 Question:
Which style will always be over-ridden if you are using style definitions in the <head> tag, linked stylesheets using the <link..> tag and imported stylesheets using the @import method, provided same the style is defined using each of these techniques.
  • a. The in-line style
  • b. The style definition in the tag
  • c. The linked stylesheet
  • d. The imported stylesheet @import
#34 Question:
Which of the following is not a valid page break?
  • a. page-break-inside
  • b. page-break-outside
  • c. page-break-before
  • d. page-break-after

#35 Question:
Read the following statements:

@page rotated {size: landscape}
TABLE {page: rotated; page-break-before: right}

What does this code do?
  • a. It will put all tables on a right-hand side landscape page
  • b. It will rotate the page if the table is positioned at the right side
  • c. It will keep the table in landscape position and rotate the page
  • d. None of the above
36 Question:
Which of the following is not a valid property of an aural style sheet?
  • a. cue
  • b. voice-family
  • c. loud
  • d. speak
  • e. All of the above are valid.

#37 Question:
Which element property is required to define internal styles?
  • a. class
  • b. style
  • c. span
  • d. link
#38 Question:
When are you likely to use an id selector in your stylesheet?
  • a. When you want to apply the style to elements that appear repeatedly on a page
  • b. When you want to apply the style to only one element per page
  • c. The id selector is just like the class selector
  • d. It is better to use the class selector instead
  •  
#39 Question:
How will you link a style sheet named "ssa.css" in your web page?
  • a. <import name=''stylesheet'' url=''ssa.css''>
  • b. <link rel=''stylesheet'' type=''text/css'' href="ssa.css">
  • c. <style name=''stylesheet'' url=''ssa.css''>

#40 Question:
Your webpage contains several unordered lists:

  • Item A

  • Item B

  • Item C


...

The style sheet for these lists is:

ul {list-style-type: disc}
Due to some reason, you now want all the unordered list items to be numbered. What minimum change in your CSS/HTML will do this?
  • a. Replace all ul with ol in the HTML page
  • b. Set list-style-type:number in the CSS
  • c. Set list-style-type:decimal in the CSS
  • d. Set list-style-type:integer in the CSS
#41 Question:
You are designing a web site and need to set the background image for all the web pages. You want a small background image to repeat and fill up the whole background. Which of the following body styles is ideal for this?
  • a. body{ background: url(/images/bg.gif);
    repeat: repeat-x }
  • b. body{ background: url(/images/bg.gif);
    repeat: repeat-y }
  • c. body{ background-image: url(/images/bg.gif);
    background -repeat: no-repeat }
  • d. body { background-image: url(images/bg.gif);background-repeat: repeat}
#42 Question:
You have defined a p tag style as follows:
p
{
color: #ff0000;
font-variant: small-caps
}

You want the above style to work only on the first line of the paragraph. What modification will you make to the style definition?
  • a. p:first-only
  • b. p:first-line
  • c. p.first-line
  • d. p:first

#43 Question:
Read the following statements:

Statement 1:Vertical margins between a floated box and any other box do not collapse.
Statement 2:Margins of absolutely and relatively positioned boxes collapse.

Which of the following is correct?
  • a. Statement 1 is correct but statement 2 is incorrect
  • b. Statement 2 is correct but statement 1 is incorrect
  • c. Both statements are correct
  • d. Both statements are incorrect
#45 Question:
Read the following code:

BODY {
background: white url("bar.gif");
background-repeat: repeat-y;
background-position: center;
}

What will be the output of this code?
  • a. Image bar.gif will be tiled vertically in the background in the center of the page.
  • b. Image bar.gif will be tiled horizontally in the background in the center of the page
  • c. Image bar.gif will be displayed in the center of the page
  • d. Image bar.gif will be stretched in the center of the page

#46 Question:
Consider the following font definition:

font-weight: bold

What is the other way of getting the same result?
  • a. font-weight:b
  • b. font-weight:bolder
  • c. font-weight:bld
  • d. font-weight:700

http://tahasinataj.wordpress.com/2013/03/14/css-2-0-test-answer-04/
http://odesktestssolutions.blogspot.in/
http://odesksolutiontest.blogspot.in/2012_02_01_archive.html
http://www.read4learn.com/question/odesk/29/css-2

#47 Question:
You want to display a list of items on your webpage using the <li> tag instead of bullets. You want each list element to be marked by a small graphic that you have created. Which style could you use?
  • a. list-style
  • b. list-style-marker
  • c. list-marker
  • d. list-style-graphic
  • e. list-bullet
  • f. list-style-image

#48 Question:
Which of the following attributes can be used to supersede any of the contradictory styles with equal weight?
  • a. !supersede
  • b. !high
  • c. !important
  • d. !key
#49 Question:
You developed a website using HTML and style sheets. You defined a style for the H4 tag within the head tag, in the imported style sheet and in-line. Which style definition will be used when the page is seen in a browser?
  • a. Default browser H4 definition
  • b. External style sheet definition
  • c. Inline style definition
  • d. Style definition in the head tag
#50 Question:
Which of the following border styles is not correct?
  • a. border-style : ridge
  • b. border-style : outset
  • c. border-style : dotted
  • d. border-style : matted
border-style:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
#51 Question:
You want to increase the space between the lines in all your paragraphs. What will you use?
  • a. p{ width:1cm}
  • b. p{ height: 1cm}
  • c. p{ line-height: 1cm}
  • d. p{ line-width: 1cm}
#52 Question:
You are fetching customer names from a database. The names in the database are mostly in lowercase. What is the name of the text property which will facilitate capitalization of these names?
  • a. text-mode
  • b. text-transform
  • c. text-decoration
  • d. text-shadow
  • e. text-case
#54 Question:
Paged media differ from continuous media in that the content of the document is divided into one or more pages. When you set the dimensions, which of the following will be applied?
  • a. The dimensions of the page area are the dimensions of the page box minus the margin area.
  • b. The dimensions of the page area are the dimensions of the page box plus the margin area.
  • c. The dimensions of the page area are the dimensions of the page box and margin area does not affect it.
  • d. None of the above

c. The dimensions of the page area are the dimensions of the page box and margin area does not affect it.(3
a. The dimensions of the page area are the dimensions of the page box minus the margin area. (3
http://www.tutorialspoint.com/css/css_paged_media.htm

#55 Question:
Which of the following is correct with regard to comments in a style sheet?
  • a. Comments can appear outside the style definition only
  • b. Comments start with //
  • c. Comments end with */
  • d. Comments are not permitted in a style sheet
#56 Question:
What is the effect of the following style:

p strong {color: green; }
  • a. All strong text and all paragraph text will be displayed in green color
  • b. All paragraphs that are contained within <strong></strong> tags will be displayed in green color
  • c. All strong text that is contained in a paragraph will be displayed in green color
  • d. Only the paragraph text will be displayed in green color
  • e. Only the strong text will be displayed in green color
  • f. The style definition is erroneous and will not be applied to any element of the webpage
#57 Question:
Which of the following does not apply to external styles?
  • a. Clean Separation of Design & Content
  • b. Minimal Code Duplication
  • c. Highest priority
  • d. Reduces page download time

#59 Question:
You want to display a table whose cell borders are as per the following rules:

1. Left Border should be double
2. Right Border should be dashed
3. Top Border should be dotted
4. Bottom Border should be solid

Choose the correct style definition:
  • a. border-style:double dotted dashed solid
  • b. border-style:dotted dashed solid double
  • c. border-style:dashed double solid dotted
  • d. border-style:solid double dotted dashed
#60 Question:
You defined a style to left align the text:

.left {text-align: left}

Select the correct statement:
  • a. The style can be applied to any element in the HTML page
  • b. The style can be applied using the ID attribute
  • c. The style can be applied using the class attribute
  • d. The style is incomplete without a prefixed element tag name
#61 Question:
The following is a sample style:

1. p
2. (
3. font-family:arial
4. color:black
5. text-align:left
6. );

What correction is required in the above style?
  • a. The style definition should be enclosed in curly braces
  • b. Multiple items within a style should be separated by ";"
  • c. The style should not close with a semicolon
  • d. p should be followed by an equal-to sign
#62 Question:
The font-family property is used to specify a:
  • a. family name
  • b. generic family
  • c. family name and/or generic family
#63 Question:
You want to define the same media style for both print and screen media. Which of the following is the correct structure for the style?
  • a. @media screen, print {  span.med{font-weight:bold}  }
  • b. .media screen, print {  span.med{font-weight:bold}  }
  • c. .media screen print {  span.med{font-weight:bold}  }
  • d. #media screen, print {  span.med{font-weight:bold}  }
#64 Question: #31 Question:

#65 Questions:
Which of the following are valid css text properties in CSS2.0?
  • a. direction
  • b. text-transform
  • c. text-indent
  • d. text-height
#66 Questions:
Which of the following is not a valid text-decoration option?
  • a. text-decoration:line-through
  • b. text-decoration:in-line
  • c. text-decoration:overline
  • d. text-decoration:underline
  • e. text-decoration:none

#67 Question:
Which style will always be over-ridden if you are using style definitions in the tag, linked stylesheets using the tag and imported stylesheets using the @import method, provided the same style is defined using each of these techniques.
  • a. The in-line style
  • b. The style definition in the tag
  • c. The linked stylesheet
  • d. The imported stylesheet @import
#68 Question:
You want to display a list of items on your webpage using the <li> tag, instead of bullets. You want each list element to be marked by roman numbering, Which style will you use?
  • a. list-style
  • b. list-style-type
  • c. list-marker
  • d. list-style-marker
  • e. list-bullet
  • f. list-style-bullet
#69 Question:
Which of the following options regarding page media groups is wrong?
  • a. continuous/paged
  • b. visual/audio/speech/tactile
  • c. grid/bitmap
  • d. dynamic/interactive/static
interactive/static

#70 Question:
Which of the following is true for an ID selector?
  • a. It uses a dot as the separator symbol
  • b. It applies the style to only the first element defined with that selector
  • c. It applies the style to only the last element defined with that selector
  • d. It applies the style to all the elements defined with that selector
#71 Question:
Which of the following is not true for a style sheet?
  • a. A style sheet defines how an HTML element will be displayed
  • b. Internal and external style sheets cannot be used together
  • c. Multiple style definitions will cascade into one
  • d. The same style sheet can be used by many HTML pages
#72 Question:
You are designing a web site and need to set the background image for all the web pages. You want a small background image to repeat and fill up the whole background. Which of the following body styles is ideal for this?
  • a.body{ background: url(/images/bg.gif);
    repeat: repeat-x }
  • b.body{ background: url(/images/bg.gif);
    repeat: repeat-y }
  • c.body{ background-image: url(/images/bg.gif);
    background -repeat: no-repeat }
  • d.body { background-image: url(images/bg.gif);background-repeat: repeat}
#73 Question:
Which of the following does not apply to external styles?
  • a.Clean Separation of Design & Content
  • b.Minimal Code Duplication
  • c.Highest priority
  • d.Reduces page download time
http://hlam.com.ua/expertrating/question.php?id=15485




 

Sunday, December 9, 2012

ASP.Net 3.5 using C# Test 2012-12

 http://hlam.com.ua/expertrating/question.php?id=5793
Which directive allows the utilization of  a custom web control in an ASP.NET page?
  • a. @Register
  • b. @Include
  • c. @Control
  • d. @Import
Answer:

ASP.Net 3.5 using C# Test 2012-12

http://hlam.com.ua/expertrating/question.php?id=132
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.
Answer: Attribute classes may be restricted to be applied only to application element types.
Link to answer: http://msdn.microsoft.com/en-us/library/e8kc3626 
c. By default, a given attribute may be applied multiple times to the same application element.

ASP.Net 3.5 using VB Test 2012-12

http://hlam.com.ua/expertrating/question.php?id=13124
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. An absolute number of bytes process memory utilization .
  • c. A percentage of physical memory utilized by the process.
  • d. A specific time interval
  • e. A specific date and time
Answer:
 e. A specific date and time








Google
Name of Product Which You Are Going to Review
Last Reviewed by Reviewer's Nameon October 18 2012
Rating: 5

DotNet 3.5 using VB Test 2012-12

http://hlam.com.ua/expertrating/question.php?id=3855
 
Which of the following are true about Nullable types?
  • a. A Nullable type is a reference type.
  • b. A Nullable type is a structure.
  • c. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
  • d. An implicit conversion exists from any nullable value type to a non-nullable form of that type.
  • e. A predefined conversion from the nullable type S? to the nullable  type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T
Answer:
a. A Nullable type is a reference type.
b. A Nullable type is a structure.
c. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
d. An implicit conversion exists from any nullable value type to a non-nullable form of that type.
e. A predefined conversion from the nullable type S? to the nullableВ В type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

 
What does the AndAlso operator do?
  • a. It performs a Boolean AND operation, evaluating both operands
  • b. It performs a Boolean AND operation, evaluating the left-hand side only if the right-hand side is false
  • c. It performs a Boolean AND operation, evaluating the right-hand side only if the left-hand side is false
  • d. It performs a Boolean AND operation, evaluating the right-hand side only if the left-hand side is true
  • e. None of the above
Answer:

By which contract are the WS-Addressing action and reply action elements of the soap envelope controllable when Windows Communication Foundation is used?
  • a. ServiceContract
  • b. OperationContract
  • c. DataContract
  • d. MessageContract
Answer:  a. ServiceContract

Сейчас самое время, чтобы начать зарабатывать. Быть своим собственным боссом с www.pleasurebuilder.com

www.pleasurebuilder.com


What is the output of the following code?

        Dim x = <code>This is the <%= GetAnswer() %></code>.ToString
        Console.WriteLine(x)
  • a. This is the <%= GetAnswer() %>
  • b. This is the answer
  • c. This is the <%= GetAnswer() %>
  • d. This is the answer
  • e. None of the above
Answer:
 
Which of the following are not  valid namespaces in the .NET framework?
  • a. System.Data.OleDb
  • b. System.Data.SqlServer
  • c. System.Data.Oracle
  • d. System.Data.Xml
  • e. System.Data.SqlClient
Answer: http://hlam.com.ua/expertrating/question.php?id=3863

























DotNet 3.5 using C#

DotNet 3.5 using C# Test 2012-12

 

Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?
  • a. System.Web.Mail is not supported under version 3.5 of the Framework
  • b. System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.
  • c. System.Web.Mail is the preferred solution when using IIS hosted applications
  • d. There are no functional differences; the items were moved to a new namespace to reflect their applicability in a better way
Answer:
a. System.Web.Mail is not supported under version 3.5 of the Framewor


Which of the following scenarios are applicable to Window Workflow Foundation?
  • a. Document-centric workflows
  • b. Human workflows
  • c. User-interface page flows
  • d. Builtin support for communications across multiple applications and/or platforms
Answer:
a. Document-centric workflows
b. Human workflows
c. User-interface page flows

http://msdn.microsoft.com/en-us/library/ms734631%2

What is the proper declaration of a method which will handle the following event?

Class MyClass
{
public event EventHandler MyEvent;
}
  • a. public void A_MyEvent(object sender, MyArgs e){}
  • b. public void A_MyEvent(object sender, EventArgs e){}
  • c. public void A_MyEvent(MyArgs e){}
  • d. public void A_MyEvent(MyClass sender,EventArgs e){}
Answer:
  a. public void A_MyEvent(object sender, MyArgs e){}


Which access limitation is found in a class member declared protected internal?
  • a. Access is limited to the containing class plus any classes derived from the containing class
  • b. Access is limited to the current assembly
  • c. Access is limited to the containing class plus any classes derived from the containing class that are also in the current assembly
  • d. Access is limited to the containing class plus any classes derived from the containing class or any other class in  the current assembly
Answer: 
a. Access is limited to the containing class plus any classes derived from the containing class
http://msdn.microsoft.com/en-us/library/bcd5672a.a


In which of the following types of applications can Windows Workflow Foundation be used?
  • a. Console Applications
  • b. Windows Forms based Applications
  • c. Windows Presentation Foundation based Applications
  • d. ASP.NET based applications
  • e. All of the above
Answer:
 e. All of the above

Which of the following are true regarding the System.Collections.Generic.HashSet<T> class?
  • a. HashSet is an unordered collection.
  • b. HashSet requires that each element be unique as determined by either a supplied EqualityComparer or the default EqualityComparer
  • c. Operations on sets (Union, Intersection, etc) always create new result sets
  • d. HashSet provides functionality for "conceptual sets" where the rules for membership can be specified without actually creating all of the items.
  •  
  • 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.
Answer:
The default EqualityComparer checks whether the element supplied to the HashSet is unique or not

b. HashSet requires that each element be unique as determined by either a supplied EqualityComparer or the default EqualityComparer




While using the capabilities supplied by the System.Messaging classes, which of the following are true?
  • a. Information must be explicitly converted to/from a byte stream before it uses the MessageQueue class
  • b. Invoking the MessageQueue.Send member defaults to using the System.Messaging.XmlMessageFormatter to serialize the object.
  • c. Objects must be XMLSerializable in order to be transferred over a MessageQueue instance.
  • d. The first entry in a MessageQueue must be removed from the queue before the next entry can be accessed
  • e. Entries removed from a MessageQueue within the scope of a transaction, will be pushed back into the front of the queue if the transaction fails.
Answer:
 b. Invoking the MessageQueue.Send member defaults to using the System.Messaging.XmlMessageFormatter to serialize the object.
d. The first entry in a MessageQueue must be removed from the queue before the next entry can be accessed
e. Entries removed from a MessageQueue within the scope of a transaction, will be pushed back into the front of the queue if the transaction fails.


Which of the following are true regarding System.Threading.ReaderWriterLockSlim?
  • a. It is optimized for single processor/core operations
  • b. It is optimized for usage where writes from multiple sources are common
  • c. A thread which has a read lock on a resource may not acquire a write lock on the same resource
  • d. By default, a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception
Answer:Represents a lock that is used to manage access to a resource, allowing multiple threads for reading or exclusive access for writing.
Use ReaderWriterLockSlim to protect a resource that is read by multiple threads and written to by one thread at a time. ReaderWriterLockSlim allows multiple threads to be in read mode, allows one thread to be in write mode with exclusive ownership of the lock, and allows one thread that has read access to be in upgradeable read mode, from which the thread can upgrade to write mode without having to relinquish its read access to the resource.
 
b. It is optimized for usage where writes from multiple sources are common
c. A thread which has a read lock on a resource may not acquire a write lock on the same resource


Custom non-fatal exceptions should be derived from:
  • a. ApplicationException
  • b. DataMisalignedException
  • c. ExecutionEngineException
  • d. SystemException
Answer:
a. ApplicationException


Which of the following statements are applicable to LINQ to SQL?
  • a. It is an O/RM (object relational mapping) implementation.
  • b. It is a set of enhancements to the DataSet and DataTable classes.
  • c. It requires the use of the SQLServer as the database
  • d. Because LINQ is based on Queries, it can not be used to modify the data in the database.
  • e. None of the above
Answer:  a. It is an O/RM (object relational mapping) implementation.
LINQ to SQL works only with SQL Servers.
LINQ can be used to modify the data in database.

Which of the following operators can be overloaded?
  • a. Assignment (=)
  • b. Conditional (&&,||)
  • c. Logical (&,|,^)
  • d. Shift (<<, >>)
Answer:
c. Logical (&,|,^)
d. Shift (<<, >>)

http://msdn.microsoft.com/en-us/library/8edha89s.a


Given the code below, which of the following items will cause a compilation error?

static void F1(params int [] y)
{
}
static void Sample()
{
   int [] j = new Int32[3];
   List k = new List();
  // ANSWER GOES HERE
}
  • a. F1(j);
  • b. F1(k);
  • c. F1(1, 2, 3);
  • d. F1(new [] {1,2,3})
  • e. None of the above
Answer:
b. F1(k);
 
With which class is the task of mapping a specific point in time into  units, such as weeks, months, and years accomplished?
  • a. System.DateTime
  • b. System.TimeSpan
  • c. System.Globalization.Calendar
  • d. System.Globalization.CultureInfo
Answer: System.Globalization.Calendar
 Link to answer: http://msdn.microsoft.com/en-us/library/system.globalization.calendar.aspx

Of which elements does Generics allow parameterization by type?
  • a. Classes
  • b. Structs
  • c. Methods
  • d. Events
  • e. Fields
Answer:
a. Classes
b. Structs
c. Methods
d. Events

http://msdn.microsoft.com/en-us/library/ms379564%2


Which of the following is not supported by remoting object types?
  • a. well-known singleton
  • b. well-known single call
  • c. client activated
  • d. context-agile
Answer:
 d. context-agile



Which of the following are true with respect to the standard implementation of Garbage Collection?
  • a. Objects must be set to null in order to be eligible for garbage collection
  • b. Unless specific steps are taken, an object may be moved in memory
  • c. Objects become eligible for garbage collection as soon as it is impossible for any code to access them
  • d. Objects which implement finalizers will always have the finalizer called at some point
Answer:
 c. Objects become eligible for garbage collection as soon as it is impossible for any code to access them
d. Objects which implement finalizers will always have the finalizer called at some point


To which contract is the SessionMode property to disallow, require, or permit applied when Windows Communication Foundation is used?
  • a. ServiceContract
  • b. OperationContract
  • c. DataContract
  • d. MessageContract
Answer:
a. ServiceContract

Which of the following is not an unboxing conversion?
  • a. void Sample1(object o){  int i = (int)o;}
  • b. void Sample1(ValueType vt){   int i = (int)vt;}
  • c. enum E { Hello, World} void Sample1(System.Enum et){   E  e = (E) et;}
  • d. interface I { int Value { get; set; } }void Sample1(I vt){   int i = vt.Value;}
  • e. class C { public int Value { get; set; } }void Sample1(C vt){    int i = vt.Value;}
Answer: 
c. enum E { Hello, World} void Sample1(System.Enum et){В В  EВ В e = (E) et;}


Which features that are not supported in the System.TimeZone class does the System.TimeZoneInfo class provide?
  • a. It provides readable names for both regular time and, if appropriate, daylight savings time
  • b. It provides a means of enumerating the known time zones that are available on the local system
  • c. It provides functionality to create custom time zones
  • d. It provides the period the time zone was in effect for. For example: From 1986 to 2006, it was observed from the first Sunday in April to the last Sunday in October, but since 2007, it is being observed from the second Sunday in March to the first Sunday in November
Answer:
 b. It provides a means of enumerating the known time zones that are available on the local system
c. It provides functionality to create custom time zones

http://msdn.microsoft.com/en-us/library/system.tim


Which of the following are goals of Windows Communication Foundation?
  • a. Bringing various existing communication technologies into a unified environment.
  • b. Cross vendor/platform communication.
  • c. Support for asynchronous communications.
  • d. Support for distributed applications based on technologies such as MSMQ and/or COM+
  • e. All of the above
Answer:
 e. All of the above
http://msdn.microsoft.com/en-us/library/ms731082.a


Which of the following are true about System.Security.Cryptography under version 3.5 of the framework
  • a. None of the implementations are  FIPS-certified
  • b. Support is provided for the "Suite B" set of cryptographic algorithms as specified by the National Security Agency (NSA) .
  • c. Cryptography Next Generation (CNG) classes are supported on XP and Vista systems
  • d. The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any the Rijndael based encryption.
Answer:

d. The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any the Rijndael based encryption.


d. The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and
2012-07-17 22:21:37
c. Cryptography Next Generation (CNG) classes are supported on XP and Vista systems

Which of the following does using Initializer Syntax with a collection as shown below require?

CollectionClass numbers = new CollectionClass { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
  • a. The Collection Class must implement
    System.Collections.Generic.ICollection
  • b. The Collection Class must implement
    System.Collections.Generic.IList
  • c. Each of the Items in the Initializer List will be passed to the Add(T item) method
  • d. The items in the initializer will be treated as an IEnumerable and passed to the collection constructor+K110
Answer:
 c. Each of the Items in the Initializer List will be passed to the Add<T>(T item) method
2012-07-17 22:26:49
c. Each of the Items in the Initializer List will be passed to the Add<T>(T item) method
d. The items in the initializer will be treated as an IEnumerable<T> and passed to the collection constructor+K110

http://msdn.microsoft.com/en-us/library/bb384062.a


Which of the following characteristics is present in the DateTime type?
  • a. It always references the UTC (GMT) time
  • b. It always references the Local  time
  • c. It contains a member indicating which time zone it refers to
  • d. It contains a member indicating whether the time is UTC, Local, or Unspecified
Answer: ?id=3096
d. It contains a member indicating whether the time is UTC, Local, or Unspecified
2012-07-17 22:28:29
b. It always references the LocalВ В time
http://msdn.microsoft.com/en-us/library/system.dat

Which of the following are characteristics of the System.Threading.Timer class?
  • a. The method provided by the TimerCallback delegate will always be invoked on the thread which created the timer.
  • b. The thread which creates the timer must have a message processing loop (i.e. be considered a UI thread)
  • c. The class contains protection to prevent reentrancy to the method provided by the TimerCallback delegate  
  • d. You can receive notification of an instance being Disposed by calling an overload of the Dispose method.
Answer: d. You can receive notification of an instance being Disposed by calling an overload of the Dispose method.

The output generated by the following code will be:

string t = "This Is a Test";
t.Replace("T", "?");
Console.WriteLine(t);
  • a. ?his Is a ?est
  • b. ?his Is a ?es?
  • c. This Is a Test
  • d. ?his Is a Test
Answer:  c. This Is a Test

String can't be modifie. Replace return new string
 

When using the Demand method of System.Security.IPermission, which of the following will occur?
  • a. The permissions of the code which invoked the Demand method will be evaluated.
  • b. For permissions which do a stack walk, an exception will occur only if NONE of the calling codes has the required permission
  • c. For permissions which do a stack walk, an exception will occur if ANY of the calling codes does not have the required permission
  • d. The permission levels of individual stack frames are always checked regardless of the  permission type.
Answer:
b. For permissions which do a stack walk, an exception will occur only if NONE of the calling codes has the required permission
2012-07-18 14:58:51
a. The permissions of the code which invoked the Demand method will be evaluated.


Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable?
  • a. They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods.
  • b. Key objects must be immutable for the duration they are used within a HashTable.
  • c. Get HashCode() must be overridden to provide the same result, given the same parameters, regardless of reference equalityl unless the HashTable constructor is provided with an IEqualityComparer 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
Answer:
e. All of the above
http://msdn.microsoft.com/en-us/library/system.col


Which of the following are true about Nullable types?
  • a. A Nullable type is a reference type.
  • b. A Nullable type is a structure.
  • c. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
  • d. An implicit conversion exists from any nullable value type to a non-nullable form of that type.
  • e. A predefined conversion from the nullable type S? to the nullable  type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T
Answer:
b. A Nullable type is a structure.
c. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
e. A predefined conversion from the nullable type S? to the nullableВ В type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

Which of the following types guarantee atomic reads and writes?
  • a. int
  • b. double
  • c. string
  • d. long
  • e. float
Answer:
 a. int
e. float

http://msdn.microsoft.com/en-us/library/aa691278%2

When using a DataReader to access the results of a Database operation, which of the following are true?
  • a. The DataReader provides a cursor that can be used to move forward and backwards through the result.
  • b. The DataReader provides random access capabilities on the result.
  • c. The Application code can reference the first row of a multi-row result set faster than it can be by loading it directly into a DataTable
  • d. The DataReader can provide the Schema of the result to the application code.
Answer:  c. The Application code can reference the first row of a multi-row result set faster than it can be by loading it directly into a DataTable
d. The DataReader can provide the Schema of the result to the application code.

http://msdn.microsoft.com/en-us/library/microsoft.


In which of the following ways do structs differ from classes?
  • a. Structs can not implement interfaces
  • b. Structs cannot inherit from a base struct
  • c. Structs cannot have events interfaces
  • d. Structs cannot have virtual methods
Answer:  b. Structs cannot inherit from a base struct
d. Structs cannot have virtual methods

http://msdn.microsoft.com/en-us/library/saxz13w4.a

 

When using version 3.5 of the framework in applications which emit a dynamic code, which of the following are true?
  • a. A Partial trust code can not emit and execute a code
  • b. The generated code has no more permissions than the assembly which emitted it.
  • c. It can be executed by calling
    System.Reflection.Emit.DynamicMethod(
    string name,
    Type returnType,
    Type[] parameterTypes
    ) without any special permissions
  • d. None of the above
Answer:   b. The generated code has no more permissions than the assembly which emitted it.
c. It can be executed by callingbrbrSystem.Reflection.Emit.DynamicMethod(brbrstring name,brbrType returnType,brbrType[] parameterTypesbrbr) without any special permissions

http://msdn.microsoft.com/en-us/library/system.ref

Which of the following are true about using ADO.NET DataSets and DataTables?
  • a. The connection to the database must remain valid for the life of the data objects
  • b. All tables in a dataset must come from the same database.
  • c. A given instance of a DataTable can be in only one DataSet
  • d. Changes made to multiple tables within a DataSet can easily be transferred to a new DataSet which contains only the changes
  • e. Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes.
Answer:
 d. Changes made to multiple tables within a DataSet can easily be transferred to a new DataSet which contains only the changes
e. Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes.

http://msdn.microsoft.com/en-us/library/system.dat


What impact will using implicitly typed local variables as in the following example have?
var sample = "Hello World";
  • a. The actual type is determined at compilation time, and has no impact on the runtime
  • b. The actual type is determined at runtime, and late binding takes effect
  • c. The actual type is based on the native VARIANT concept, and no binding to a specific type takes place.
  • d. "var" itself is a specific type defined by the framework, and no special binding takes place
Answer:
 a. The actual type is determined at compilation time, and has no impact on the runtime

Which of the following are true about Extension methods?
  • a. They must be declared static
  • b. They can be declared either static or instance members
  • c. They must be declared in the same assembly (but may be in different source files)
  • d. Extension methods can be used to override existing instance methods
  • e. Extension methods with the same signature for the same class may be declared in multiple namespaces without causing compilation errors
Answer:
 a. They must be declared static
e. Extension methods with the same signature for the same class may be declared in multiple namespaces without causing compilation errors


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.

Which of the following are true when comparing ADO.NET with  Microsoft DNA (Distributed interNet Applications)?
  • a. ADO.NET provides significantly better performance.
  • b. ADO.NET is better suited for communications between disparate systems/applications.
  • c. ADO.NET can eliminate the need for COM components in the communication layer.
  • d. DNA makes it easier to communicate across firewalled boundaries.
Answer:
 a. ADO.NET provides significantly better performance.
2012-10-26 11:15:32
d. DNA makes it easier to communicate across firewalled boundaries.
2012-09-12 12:45:36
a. ADO.NET provides significantly better performance.
b. ADO.NET is better suited for communications between disparate systems/applications.

2012-07-18 18:50:31
c. ADO.NET can eliminate the need for COM components in the communication layer.
d. DNA makes it easier to communicate across firewalled boundaries.

http://en.wikipedia.org/wiki/Windows_DNA


Which of the following are static methods of the System.Reflection Activator class?
  • a. CreateComInstanceFrom
  • b. CreateInstanceFrom
  • c. GetInstance
  • d. CreateInstance
  • e. All of the above
Answer:
 a. CreateComInstanceFrom
b. CreateInstanceFrom
d. CreateInstance

http://msdn.microsoft.com/en-us/library/b4wc81dc

The default number of threads per processor in the System.Threading.ThreadPool class under version 3.5 of the Framework is:
  • a. 1
  • b. 25
  • c. 250
  • d. 100
  • e. 500
Answer:  c. 250

http://msdn.microsoft.com/en-us/library/system.threading.threadpool%28v=vs.90%29.aspx

 c. 250
http://msdn.microsoft.com/en-us/library/system.thr


Which of the following are true regarding event declaration in the code below?

class Sample
{
event MyEventHandlerType MyEvent;
}
  • a. MyEventHandlerType must be derived from System.EventHandler or System.EventHandler
  • b. MyEventHandlerType must take two parameters, the first of the type Object, and the second of a class derived from System.EventArgs
  • c. MyEventHandlerType may have a non-void return type
  • d. If MyEventHandlerType is a generic type, event declaration must use a specialization of that type.
  • e. MyEventHandlerType cannot be declared static
Answer: c. MyEventHandlerType may have a non-void return type
d. If MyEventHandlerType is a generic type, event declaration must use a specialization of that type.
e. MyEventHandlerType cannot be declared static

2012-07-18 19:05:03
a. MyEventHandlerType must be derived from System.EventHandler or System.EventHandler<TEventArgs>
b. MyEventHandlerType must take two parameters, the first of the type Object, and the second of a class derived from System.EventArgs
d. If MyEventHandlerType is a generic type, event declaration must use a specialization of that type.


class Sample
{
public Sample(int x) { }
}
In the above code, which of the following other class constructors can directly access the provided constructor?
  • a. public Sample() : this(1) { }
  • b. public Sample() : Sample(1) {}
  • c. Both of the above
  • d. One class constructor can not directly access another constructor
Answer: a. public Sample() : this(1) { }
http://msdn.microsoft.com/en-us/library/ms173115.a


To which of the following do automatic properties refer?
  • a. You declare (explicitly or implicitly) the accessibility of the property and get and set accessors but do not provide any implementation or backing field
  • b. You attribute a member field so that the compiler will generate get and set accessors
  • c. The compiler creates properties for your class based on class level attributes
  • d. They are properties which are automatically invoked as part of the object construction process
Answer:
 a. You declare (explicitly or implicitly) the accessibility of 
the property and get and set accessors but do not provide any 
implementation or backing field
Which of the following are true about System.GC under version 3.5 of the Framework?
  • a. You can request that the garbage collector process a generation if it determines that it is appropriate at specific points in your code
  • b. You can control the intrusiveness of the garbage collector (i.e. how often it performs collections) while your program is running
  • c. You can control the intrusiveness of the garbage collector (i.e. how often it performs collections) only during application initialization
  • d. You should specify LowLatency when using Concurrent Server Garbage Collection to improve memory utilization
Answer:
 a. You can request that the garbage collector process a generation if it determines that it is appropriate at specific points in your code

Which of the following characteristics do classes in the System.Drawing namespace such as Brush,Font,Pen, and Icon share?
  • a. They encapsulate native resource and must be properly Disposed to prevent potential exhausting of resources.
  • b. They are all MarshalByRef derived classes, but functionality across AppDomains has specific limitations.
  • c. You can inherit from these classes to provide enhanced or customized functionality
  • d. They are Value Type objects.
Answer: a. They encapsulate native resource and must be properly Disposed to prevent potential exhausting of resources.
b. They are all MarshalByRef derived classes, but functionality across AppDomains has specific limitations.

Which of the following code samples show a valid static constructor?
  • a. class Sample
    {
       public static Sample()
       {
       }
    }
  • b. class Sample
    {
       static Sample()
       {
       }
    }
  • c. class Sample
    {
       static Sample(int value)
       {
       }
    }
  • d. class Sample
    {
       static void Sample()
       {
       }
    }
Answer:
 b. class Sample
{
   static Sample()
   {
   }
}

Which of the following does the System.IO.Pipes namespace provide?
  • a. Interprocess communication through anonymous and/or named pipes.
  • b. Access to named pipes using System.IO.Stream
  • c. Access to system level pipe security implemented as discretionary access control lists (DACL) and/or system access control lists (SACL),
  • d. Asynchronous read and write operations
  • e. All of the above
Answer: e. All of the above

Which of the following characteristics are found in a query expression?
  • a. It must begin with a from clause
  • b. It must begin with a select clause
  • c. It can end with a group clause
  • d. It must contain at lease one where clause
  • e. An orderby clause may optionally follow a select clause
Answer: e. An orderby clause may optionally follow a select clause
2012-09-28 14:10:10
a. It must begin with a from clause
c. It can end with a group clause

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 the 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
Answer: e. C# enforces that all codes are valid for all types of parameters

Which of the following statements do Expression Trees fit best?
  • a. Expression trees are a data structure which can be initially composed using language syntax.
  • b. Expression trees are dynamically generated code which is executed to perform the desired function.
  • c. Expression trees can only be created from Lambda Expressions
  • d. Expression trees can be modified once they are created
  • e. All of the Above
Answer:
When using version 3.5 of the framework in applications which emit a dynamic code, which of the following are true?
  • a. A Partial trust code can not emit and execute a code
  • b. The generated code has no more permissions than the assembly which emitted it.
  • c. It can be executed by calling
    System.Reflection.Emit.DynamicMethod(
    string name,
    Type returnType,
    Type[] parameterTypes
    ) without any special permissions
  • d. None of the above
Answer: http://hlam.com.ua/expertrating/question.php?id=5662
Which of the following are true about Nullable types?
  • a. A Nullable type is a reference type.
  • b. A Nullable type is a structure.
  • c. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
  • d. An implicit conversion exists from any nullable value type to a non-nullable form of that type.
  • e. A predefined conversion from the nullable type S? to the nullable  type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T
Answer: b. A Nullable type is a structure.
c. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
e. A predefined conversion from the nullable type S? to the nullable&nbsp;&nbsp;type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

Which access limitation is found in a class member declared protected internal?
  • a. Access is limited to the containing class plus any classes derived from the containing class
  • b. Access is limited to the current assembly
  • c. Access is limited to the containing class plus any classes derived from the containing class that are also in the current assembly
  • d. Access is limited to the containing class plus any classes derived from the containing class or any other class in  the current assembly
Answer: d. Access is limited to the containing class plus any classes derived from the containing class or any other class in&nbsp;&nbsp;the current assembly
 

Which of the following are true about System.Security.Cryptography under version 3.5 of the framework
  • a. None of the implementations are  FIPS-certified
  • b. Support is provided for the "Suite B" set of cryptographic algorithms as specified by the National Security Agency (NSA) .
  • c. Cryptography Next Generation (CNG) classes are supported on XP and Vista systems
  • d. The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any the Rijndael based encryption.
Answer:
Which of the following are true about declarative attributes?
  • a. They must be inherited from the System.Attribute.
  • b. Attributes are instantiated at the same time as instances of the class to which they are applied.
  • c. Attribute classes may be restricted to be applied only to application element types.
  • d. By default, a  given attribute may be applied multiple times to the same application element.
Answer: a. They must be inherited from the System.Attribute.
c. Attribute classes may be restricted to be applied only to application element types.

Which of the following are true regarding event declaration in the code below?

class Sample
{
event MyEventHandlerType MyEvent;
}
  • a. MyEventHandlerType must be derived from System.EventHandler or System.EventHandler<TEventArgs>
  • b. MyEventHandlerType must take two parameters, the first of the type Object, and the second of a class derived from System.EventArgs
  • c. MyEventHandlerType may have a non-void return type
  • d. If MyEventHandlerType is a generic type, event declaration must use a specialization of that type.
  • e. MyEventHandlerType cannot be declared static
Answer: c. MyEventHandlerType may have a non-void return type
d. If MyEventHandlerType is a generic type, event declaration must use a specialization of that type.
e. MyEventHandlerType cannot be declared static

When Deleting a DataRow from the DataRowCollection of a DataTable, 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.
Answer: a. use the DataRowCollection.Remove method to immediately delete&nbsp;&nbsp;the row.
d. use the DataRow.Delete method to mark the row for deletion when DataRowAcceptChanges is called.

When using the Demand method of System.Security.IPermission, which of the following will occur?
  • a. The permissions of the code which invoked the Demand method will be evaluated.
  • b. For permissions which do a stack walk, an exception will occur only if NONE of the calling codes has the required permission
  • c. For permissions which do a stack walk, an exception will occur if ANY of the calling codes does not have the required permission
  • d. The permission levels of individual stack frames are always checked regardless of the  permission type.
Answer:
Which of the following characteristics is present in the DateTime type?
  • a. It always references the UTC (GMT) time
  • b. It always references the Local  time
  • c. It contains a member indicating which time zone it refers to
  • d. It contains a member indicating whether the time is UTC, Local, or Unspecified
Answer: d. It contains a member indicating whether the time is UTC, Local, or Unspecified

Which of the following advantages does System.Collections.IDictionaryEnumerator provide over System.Collections.IEnumerator?
  • a. It adds properties for direct access to both the Key and the Value
  • b. It is optimized to handle the structure of a Dictionary.
  • c. It provides properties to determine if the Dictionary is enumerated in Key or Value order
  • d. It provides reverse lookup methods to distinguish a Key from a specific Value
Answer: a. It adds properties for direct access to both the Key and the Value
When Implementing System.EnterpriseServices.ServicedComponent derived classes, which of the following statements are true?
  • a. Enabling object pooling requires an attribute on the class and the enabling of pooling in the COM+ catalog.
  • b. Methods can be configured to automatically mark a transaction as complete by the use of attributes.
  • c. You can configure authentication using the AuthenticationOption when the ActivationMode is set to Library.
  • d. You can control the lifecycle policy of an individual instance using the SetLifetimeService method.
Answer: a. Enabling object pooling requires an attribute on the class and the enabling of pooling in the COM+ catalog.
b. Methods can be configured to automatically mark a transaction as complete by the use of attributes.
c. You can configure authentication using the AuthenticationOption when the ActivationMode is set to Library.

2012-09-28 14:49:35
a. Enabling object pooling requires an attribute on the class and the enabling of pooling in the COM+ catalog.
b. Methods can be configured to automatically mark a transaction as complete by the use of attributes.


Within Windows Workflow Foundation, Compensating Actions are used for:
  • a. provide a means to rollback a failed transaction
  • b. provide a means to undo a successfully committed transaction later
  • c. provide a means to terminate an in process transaction
  • d. achieve load balancing by adapting to the current activity
Answer: a. provide a means to rollback a failed transaction
2012-09-16 21:07:37


b. provide a means to undo a successfully committed transaction later

http://msdn.microsoft.com/en-us/library/dd489432.aspx

When Windows Communication Foundation is used to develop a Web Service, which of the following are supported?
  • a. WS-Addressing
  • b. WS-MetadataExchange
  • c. WS-Security
  • d. WS-Atomic Transaction
  • e. All of the above
Answer: e. All of the above
To which of the following can System.IO.IsolatedStorage not be scoped?
  • a. Restricted to a Specific Application
  • b. Restricted to a Specific AppDomain
  • c. Restricted to a Specific User
  • d. Restricted to a specific Physical Media
Answer: d. Restricted to a specific Physical Media
Which of the following are characteristics of the System.Threading.Timer class?
  • a. The method provided by the TimerCallback delegate will always be invoked on the thread which created the timer.
  • b. The thread which creates the timer must have a message processing loop (i.e. be considered a UI thread)
  • c. The class contains protection to prevent reentrancy to the method provided by the TimerCallback delegate  
  • d. You can receive notification of an instance being Disposed by calling an overload of the Dispose method.
Answer: d. You can receive notification of an instance being Disposed by calling an overload of the Dispose method.
Which of the following  regarding the System.DateTimeOffset structure are true?
  • a. It provides an exact point in time relative to the UTC time zone
  • b. It combines a DateTime structure with a TimeZone structure
  • c. It provides arithmetical operations using values with different offsets from the UTC
  • d. It can be used to determine the specific TimeZone for a local time
Answer: a. It provides an exact point in time relative to the UTC time zone
c. It provides arithmetical operations using values with different offsets from the UTC


The framework provides three different timer classes. Select the answer that properly matches the class with the listed characteristic.
  • a. System.Threading.Timer
    Simple timer which requires a delegate to be supplied for execution when the timer expires.
    execution of the method provided by the delegate will be invoked on a ThreadPool Thread.
  • b. System.Timers.Timer:
    Designed for use with worker threads in a multithreaded environment.
    Can move among threads to handle the raised Elapsed event
    May result in more accuracy than System.Windows.Forms.Timer instances.
  • c. System.Windows.Forms.Timer
    Lower Resolution timer which requires a UI message pump on the creating thread.
  • d. All of the above
Answer: d. All of the above
Which of the following is not an unboxing conversion?
  • a. void Sample1(object o)
    {
      int i = (int)o;
    }
  • b. void Sample1(ValueType vt)
    {
       int i = (int)vt;
    }
  • c. enum E { Hello, World}
    void Sample1(System.Enum et)
    {
       E  e = (E) et;
    }
  • d. interface I { int Value { get; set; } }
    void Sample1(I vt)
    {
       int i = vt.Value;
    }
  • e. class C { public int Value { get; set; } }
    void Sample1(C vt)
    {
        int i = vt.Value;
    }
Answer:
e. class C { public int Value { get; set; } }
void Sample1(C vt)
{
    int i = vt.Value;
}

By which contract are the ws-addressing action and replyaction elements of the soap envelop controllable when Windows Communication Foundation is used?
  • a. ServiceContract
  • b. OperationContract
  • c. DataContract
  • d. MessageContract
Answer:b. OperationContract
For which of the following scenarios does Reflection.Emit provide support?
  • a. Defining methods dynamically.
  • b. Defining types dynamically
  • c. Defining assemblies dynamically
  • d. Defining Instances dynamically
  • e. Exporting an executable code to a disk based assembly
Answer: a. Defining methods dynamically.
b. Defining types dynamically
c. Defining assemblies dynamically

Which of the following items are recommended when using XML comments to generate documentation?
  • a. <exception>
  • b. <code>
  • c. <summary>
  • d. <events>
Answer:
a. <exception> b. <code> c. <summary>
When using an automatic property, which of the following statements is true?
  • a. The compiler generates a backing field that is completely inaccessible from the application code.
  • b. The compiler generates a backing field that is a private instance member with a leading underscore that can be programmatically referenced.
  • c. The compiler generates a backing field that is accessible via reflection
  • d. The compiler generates a code that will store the information separately from the instance to ensure its security.
Answer: c. The compiler generates a backing field that is accessible via reflection

Which of the following statements apply to developing .NET code, using .NET utilities that are available with the SDK or Visual Studio?


  • a. Developers can create assemblies directly from the MSIL Source Code.
  • b. Developers can examine PE header information in an assembly.
  • c. Developers can generate XML Schemas from class definitions contained within an assembly.
  • d. Developers can strip all meta-data from managed assemblies.
  • e. Developers can split an assembly into multiple assemblies.
Answer:c. Developers can generate XML Schemas from class definitions contained within an assembly.

When using an implicitly typed array, which of the following is most appropriate?


  • a. All elements in the initializer list must be of the same type.
  • b. All elements in the initializer list must be implicitly convertible to a known type which is the actual type of at least one member in  the initializer list
  • c. All elements in the initializer list must be implicitly convertible to the common type which is the base type of the items actually in the list
  • d. There are no restrictions on the items in the initializer list as the array is not declared to be a specific type.
Answer: c. All elements in the initializer list must be implicitly convertible to the common type which is the base type of the items actually in the list

Which of the following are true about anonymous types?


  • a. They can be derived from any reference type.
  • b. Two anonymous types with the same named parameters in the same order declared in different classes have the same type.
  • c. Anonymous types can have methods
  • d. All properties of an anonymous type are read/write
Answer: b. Two anonymous types with the same named parameters in the same order declared in different classes have the same type.

Determining the availability of sufficient memory for an operation can be accomplished by:
  • a. There is no supported application level means to determine if a specific amount of memory is available.
  • b. using static methods of System.Runtime.MemoryFailPoint and checking the return value
  • c. creating an instance  of System.Runtime.MemoryFailPoint and monitoring for an InsufficientMemoryException
  • d. creating an instance  of System.Runtime.MemoryFailPoint and monitoring for an OutOfMemoryException
Answer: c. creating an instance&nbsp;&nbsp;of System.Runtime.MemoryFailPoint and monitoring for an InsufficientMemoryException

Which of the following does using Initializer Syntax with a collection as shown below require?

CollectionClass numbers = new CollectionClass { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
  • a. The Collection Class must implement
    System.Collections.Generic.ICollection<T>
  • b. The 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
  • d. The items in the initializer will be treated as an IEnumerable<T> and passed to the collection constructor+K110
Answer: c. Each of the Items in the Initializer List will be passed to the Add&lt;T&gt;(T item) method
 

Which of the following are true regarding  multiple versions of an assembly?
  • a. When multiple versions of an assembly are available on the search path (AKA private assemblies), the runtime will use the first matching assembly with a version number equal to or higher than the assembly version that was originally linked against.
  • b. When assemblies are resolving in the GAC (AKA shared assemblies), both the originator and the version are considered in determining the appropriate assembly.
  • c. Configuration files can be used to override the version specified at build time.
  • d. Strong Names are not required to utilize .NET's versioning capabilities
Answer:
a. When multiple versions of an assembly are available on the search path (AKA private assemblies), the runtime will use the first matching assembly with a version number equal to or higher than the assembly version that was originally linked against.
Which of the following do the advantages of Lambda Expressions over Anonymous methods include?
  • a. More concise syntax
  • b. The types for a Lambda Expression may be omitted
  • c. The body of an anonymous method can not be an expression
  • d. Lambda Expressions permit deferred type interference, that anonymous methods do not
  • e. All of the above
Answer:


=================================ODESK===================================
 Question1:
The earliest event in which all viewstate information has been restored is:


    a.    Init
    b.    PreLoad
    c.    Load
    d.    Render

 the answer is:
    b.    PreLoad       

 Question2:
Which of the following differentiates a UserControl from a Custom Server control?


    a.    UserControl can directly express rendering information via markup; a Custom Server control can not.
    b.    UserControl does not require the use of the @Register directive; a Custom Server control does require it.
    c.    UserControl can make use of script based validation;  a Custom Server control can not.
    d.    UserControl can represent complete compositate hierarchy; a Custom Server control can not.

 the answer is:
    b.    UserControl does not require the use of the @Register directive; a Custom Server control does require it.       

 Question3:
What is the proper declaration of a method which will handle the following event?

Class MyClass
{
      public event EventHandler MyEvent;
}


    a.    public void A_MyEvent(object sender, MyArgs e)
{
}
    b.    public void A_MyEvent(object sender, EventArgs e)
{
}
    c.    public void A_MyEvent(MyArgs e)
{
}

 the answer is:
c.    public void A_MyEvent(MyArgs e)
{
}
       

 Question4:
Given the code below, which items will cause a compilation error?

static void F1(params int [] y)
{
}

static void Sample()
{
   int [] j = new Int32[3];
List k = new List();
// ANSWER GOES HERE
}


    a.    F1(j);
    b.    F1(k);
    c.    F1(1, 2, 3);
    d.    F1(new [] {1,2,3})
    e.    None of the above

 the answer is:
    e.    None of the above       

 Question5:
By which of the following can the .NET class methods be included in .aspx files?


    a.    Including .Net code within the script element with the runat attribute set to server
    b.    Including .Net code within the code element
    c.    Including .Net code using the @code directive on the page
    d.    Including .Net code within the execute attribute of the individual control

 the answer is:
    c.    Including .Net code using the @code directive on the page
       
 Question6:
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.       

 Question7:
Where should an instance of an object which provides services to all users be stored?


    a.    ApplicationState
    b.    SessionState
    c.    ViewState
    d.    None of the above

 the answer is:
    d.    None of the above       

 Question8:
Which of the following are the goals of the Windows Communciation Foundation?


    a.    Bringing various existing communication technologies into a unified environment.
    b.    Cross vendor/platform communication.
    c.    Support for asynchronous communications.
    d.    Support for distributed applications based on technologies such as MSMQ and/or COM+
    e.    All of the above

 the answer is:
    e.    All of the above       

 Question9:
When using a DataReader to access the results of a Database operation, which of the following is true?


    a.    The DataReader provides a cursor that can be used to move forward and backwards through the result.
    b.    The DataReader provides random access capabilities on the result.
    c.    The DataReader can provide the Schema information of the result to the application code.

 the answer is:
    b.    The DataReader provides random access capabilities on the result.       

 Question10:
Which of the following types guarantee atomic reads and writes?


    a.    int
    b.    double
    c.    long
    d.    float

 the answer is:
    d.    float       

 Question11:
Which of the following does Event Bubbling allow composite controls to perform?


    a.    Propagate container related events to the child controls.
    b.    Propagate child events up to control hierarchy
    c.    Distribute events between peer child controls.
    d.    Translate control unhandled control events into exceptions.

 the answer is:
    b.    Propagate child events up to control hierarchy       

 Question12:
Which of the following is/are true regarding the use of Authentication to control access to the HTML file (.htm or .html)?


    a.    ASP.NET authentication handles these by default in a manner equivalent to .aspx pages
    b.    ASP.NET authentication can be associated with these extensions using aspnet_isapi.dll in IIS 6.0, for the appropriate directory
    c.    ASP.NET authentication cannot be used for this purpose

 the answer is:
    c.    ASP.NET authentication cannot be used for this purpose       

 Question13:
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:
    c.    By default, a given attribute may be applied multiple times to the same application element.       

 Question14:
Which of the following is false about System.GC under version 3.5 of the .NET Framework?


    a.    You can request that the garbage collector processes a generation if it determines that it is appropriate at specific points in your code
    b.    You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running
    c.    You can control the intrusiveness of the garbage collector (how often it performs collections) only during application initialization

 the answer is:
    b.    You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running       

 Question15:
With which of the following are Declarative Databinding expressions delimited?


    a.    <%#    %>
    b.    <%--   --%>
    c.  
    d.    <#  >

 the answer is:
<%--   --%>       

 Question16:
Which of the following statements are applicable in LINQ to SQL?


    a.    It is pure Object Relational (O/R) model.
    b.    It is a set of enhancements to the DataSet and DataTable classes.
    c.    It requires the use of SQLServer as the database.
    d.    Because LINQ is based on Queries, it can not be used to modify the data in the database.

 the answer is:
    b.    It is a set of enhancements to the DataSet and DataTable classes.       

 Question17:
Which of the following is used to remove a cookie from a client machine?


    a.    Remove the cookie from the System.Web.UI.Page.Request.Cookies collection.
    b.    Remove the cookie from the System.Web.UI.Page.Request.Browser.Cookies collection.
    c.    Set the Expires property to DataTime.Now for a cookie in the Web.UI.Page.Response.Cookies
    d.    Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.

 the answer is:
    d.    Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.       

 Question18:
Which of the following are true of using ADO.NET DataSets and DataTables?


    a.    The DataSets and DataTables objects requires continuous connection to the database
    b.    All tables in a dataset must come from the same database
    c.    A given instance of a DataTable can be in only one DataSet
    d.    Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes

 the answer is:
    b.    All tables in a dataset must come from the same database       

 Question19:
The following are two statements related to System.DateTimeOffset namespace.

Statement X: DateTimeOffset values can be converted to DateTime values and vice versa.
Statement Y: DateTimeOffset does not supports arithmetical operations


    a.    Statement X is incorrect and Statement Y is correct
    b.    Statement X is correct and Statement Y is incorrect
    c.    Both Statements X, Y are correct
    d.    Both Statements X, Y are incorrect

 the answer is:
    d.    Both Statements X, Y are incorrect       

 Question20:
Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?


    a.    System.Web.Mail is not supported under version 3.5 of the Framework
    b.    System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.
    c.    System.Web.Mail is the preferred solution when using IIS hosted applications
    d.    There are no functional differences; the items were moved to a new namespace to better reflect their applicability

 the answer is:
    b.    System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.       

 Question21:
In which file are Predefined Client Side Validation Scripts defined?


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

 the answer is:
    d.    USerValidation.js       

 Question22:
Which of the following are common methods of supplying "Help" information to an ASP.NET application?


    a.    Setting the ToolTip property of a control to a string containing the information.
    b.    using the open method of the browser window object to open a new browser window and display a help related ASP.NET page
    c.    Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).
    d.    All of the above

 the answer is:
    c.    Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).       

 Question23:
When using Cascading Style Sheets (CSS) to format output, which of the following is/are true?


    a.    Styles can be applied to all elements having the same CSS Class attribute
    b.    Styles can be applied to specific elements based on their ID attribute
    c.    Styles can be applied to elements based on their position in a hierarchy
    d.    Styles can be used to invoke script based code
    e.    All of the above

 the answer is:
    e.    All of the above       

 Question24:
Which of the following is false regarding System.Threading.ReaderWriterLockSlim?


    a.    It is optimized for single processor/core operations
    b.    A thread which has a read lock on a resource may not acquire a write lock on the same resource
    c.    By default, a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception

 the answer is:
    b.    A thread which has a read lock on a resource may not acquire a write lock on the same resource       

 Question25:
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       

 Question26:
Which of the following is not a characteristic, that a Query expression should have?


    a.    It must contain a from clause
    b.    It must begin with a select clause
    c.    It can end with a group clause

 the answer is:
    b.    It must begin with a select clause       

 Question27:
When using asynchronous partial updates with an UpdatePanel, which of the following are true?


    a.    Only the UpdatePanel and any child controls go through the server lifecycle.
    b.    The entire page always goes through the entire lifecycle.
    c.    Only the UpdatePanel which initiated the Postback and its child controls can provide updated information.
    d.    UpdatePanels can not be used with Master Pages.

 the answer is:
    d.    UpdatePanels can not be used with Master Pages.       

 Question28:
Which of the following statements is false about Passport Authentication?


    a.    The Passport SDK must be installed.
    b.    Passport authentication requires a network path between the Client and the Microsoft Passport Server
    c.    Passport Authentication provides persistent authentication across sessions

 the answer is:
    b.    Passport authentication requires a network path between the Client and the Microsoft Passport Server       

 Question29:
The default number of threads per processor in the System.Threading.ThreadPool class under version 3.5 of the Framwork is:


    a.    1
    b.    25
    c.    250
    d.    100
    e.    500

 the answer is:
    d.    100       

 Question30:
Which of the following statements do Expression Trees fit best?


    a.    Expression trees are a data structure which can be initially composed using language syntax.
    b.    Expression trees are a dynamically generated code which is executed to perform the desired function.
    c.    Expression trees can be modified once they are created

 the answer is:
    c.    Expression trees can be modified once they are created       

 Question31:
Which of the following are performed to fully debug an ASP.NET Application running on the same machine as the debugger?


    a.    Enabling debug information in the .NET Assembly
    b.    Setting the debug attribute of the compilation element to true in the web.config file.
    c.    Enabling ASP.NET debugging in the IIS metabase.

 the answer is:
    c.    Enabling ASP.NET debugging in the IIS metabase.       

 Question32:
Which of the following are included in the advantages of Lambda Expressions over Anonymous methods?


    a.    More concise syntax
    b.    The types for 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:
    b.    The types for a Lambda Expression may be omitted       

 Question33:
Which of the following controls allows the use of XSL to transform XML content into formatted content?


    a.    System.Web.UI.WebControls.Xml
    b.    System.Web.UI.WebControls.Xslt
    c.    System.Web.UI.WebControls.Substitution
    d.    System.Web.UI.WebControls.Transform

 the answer is:
    d.    System.Web.UI.WebControls.Transform       

 Question34:
Which of the following is not an unboxing conversion?


    a.    void Sample1(object o)
{
   int i = (int)o;
}
    b.    void Sample1(ValueType vt)
{
   int i = (int)vt;
}
    c.    enum E { Hello, World}

void Sample1(System.Enum et)
{
   E e = (E) et;
}
    d.    class C { public int Value { get; set; } }

void Sample1(C vt)
{
   int i = vt.Value;
}

 the answer is:
    d.    class C { public int Value { get; set; } }

void Sample1(C vt)
{
       

 Question35:
Which of the following are true about Nullable types?


    a.    A Nullable type is a reference type.
    b.    An implicit conversion exists from any non-nullable value type to a nullable form of that type.
    c.    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

 the answer is:
    c.    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T       

 Question36:
Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable?


    a.    They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods.
    b.    Key objects must be immutable for the duration they are used within 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 IEqualityComparer 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:
    d.    Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement       

 Question37:
Where should information about a control created at design time be stored?


    a.    ApplicationState
    b.    SessionState
    c.    ViewState
    d.    None of the above

 the answer is:
    d.    None of the above       

 Question38:
Which directive allows the utilization of  a custom web control in an ASP.NET page?


    a.    @Register
    b.    @Include
    c.    @Control
    d.    @Import

 the answer is:
    d.    @Import       

 Question39:
The output generated by the following code will be:

string t = @"This\Is\a\Test";
Response.Write(t);


    a.    ThisIsaTest
    b.    This\Is\a\Test
    c.    It will give a compilation error: Unrecognized escape sequence

 the answer is:
    c.    It will give a compilation error: Unrecognized escape sequence       

 Question40:
Which of the following events should be used for assigning a Theme dynamically to a page?


    a.    PreInit
    b.    Init
    c.    PreLoad
    d.    PreRender
    e.    Render

 the answer is:
    c.    PreLoad - See more at: http://odeskta.blogspot.in/2012/06/how-to-pass-odesk-aspnet-35-using-c.html#sthash.40YcDoaD.dpuf


 Question1:
The earliest event in which all viewstate information has been restored is:


    a.    Init
    b.    PreLoad
    c.    Load
    d.    Render

 the answer is:
    b.    PreLoad       

 Question2:
Which of the following differentiates a UserControl from a Custom Server control?


    a.    UserControl can directly express rendering information via markup; a Custom Server control can not.
    b.    UserControl does not require the use of the @Register directive; a Custom Server control does require it.
    c.    UserControl can make use of script based validation;  a Custom Server control can not.
    d.    UserControl can represent complete compositate hierarchy; a Custom Server control can not.

 the answer is:
    b.    UserControl does not require the use of the @Register directive; a Custom Server control does require it.       

 Question3:
What is the proper declaration of a method which will handle the following event?

Class MyClass
{
      public event EventHandler MyEvent;
}


    a.    public void A_MyEvent(object sender, MyArgs e)
{
}
    b.    public void A_MyEvent(object sender, EventArgs e)
{
}
    c.    public void A_MyEvent(MyArgs e)
{
}

 the answer is:
c.    public void A_MyEvent(MyArgs e)
{
}
       

 Question4:
Given the code below, which items will cause a compilation error?

static void F1(params int [] y)
{
}

static void Sample()
{
   int [] j = new Int32[3];
List k = new List();
// ANSWER GOES HERE
}


    a.    F1(j);
    b.    F1(k);
    c.    F1(1, 2, 3);
    d.    F1(new [] {1,2,3})
    e.    None of the above

 the answer is:
    e.    None of the above       

 Question5:
By which of the following can the .NET class methods be included in .aspx files?


    a.    Including .Net code within the script element with the runat attribute set to server
    b.    Including .Net code within the code element
    c.    Including .Net code using the @code directive on the page
    d.    Including .Net code within the execute attribute of the individual control

 the answer is:
    c.    Including .Net code using the @code directive on the page
       
 Question6:
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.       

 Question7:
Where should an instance of an object which provides services to all users be stored?


    a.    ApplicationState
    b.    SessionState
    c.    ViewState
    d.    None of the above

 the answer is:
    d.    None of the above       

 Question8:
Which of the following are the goals of the Windows Communciation Foundation?


    a.    Bringing various existing communication technologies into a unified environment.
    b.    Cross vendor/platform communication.
    c.    Support for asynchronous communications.
    d.    Support for distributed applications based on technologies such as MSMQ and/or COM+
    e.    All of the above

 the answer is:
    e.    All of the above       

 Question9:
When using a DataReader to access the results of a Database operation, which of the following is true?


    a.    The DataReader provides a cursor that can be used to move forward and backwards through the result.
    b.    The DataReader provides random access capabilities on the result.
    c.    The DataReader can provide the Schema information of the result to the application code.

 the answer is:
    b.    The DataReader provides random access capabilities on the result.       

 Question10:
Which of the following types guarantee atomic reads and writes?


    a.    int
    b.    double
    c.    long
    d.    float

 the answer is:
    d.    float       

 Question11:
Which of the following does Event Bubbling allow composite controls to perform?


    a.    Propagate container related events to the child controls.
    b.    Propagate child events up to control hierarchy
    c.    Distribute events between peer child controls.
    d.    Translate control unhandled control events into exceptions.

 the answer is:
    b.    Propagate child events up to control hierarchy       

 Question12:
Which of the following is/are true regarding the use of Authentication to control access to the HTML file (.htm or .html)?


    a.    ASP.NET authentication handles these by default in a manner equivalent to .aspx pages
    b.    ASP.NET authentication can be associated with these extensions using aspnet_isapi.dll in IIS 6.0, for the appropriate directory
    c.    ASP.NET authentication cannot be used for this purpose

 the answer is:
    c.    ASP.NET authentication cannot be used for this purpose       

 Question13:
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:
    c.    By default, a given attribute may be applied multiple times to the same application element.       

 Question14:
Which of the following is false about System.GC under version 3.5 of the .NET Framework?


    a.    You can request that the garbage collector processes a generation if it determines that it is appropriate at specific points in your code
    b.    You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running
    c.    You can control the intrusiveness of the garbage collector (how often it performs collections) only during application initialization

 the answer is:
    b.    You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running       

 Question15:
With which of the following are Declarative Databinding expressions delimited?


    a.    <%#    %>
    b.    <%--   --%>
    c.  
    d.    <#  >

 the answer is:
<%--   --%>       

 Question16:
Which of the following statements are applicable in LINQ to SQL?


    a.    It is pure Object Relational (O/R) model.
    b.    It is a set of enhancements to the DataSet and DataTable classes.
    c.    It requires the use of SQLServer as the database.
    d.    Because LINQ is based on Queries, it can not be used to modify the data in the database.

 the answer is:
    b.    It is a set of enhancements to the DataSet and DataTable classes.       

 Question17:
Which of the following is used to remove a cookie from a client machine?


    a.    Remove the cookie from the System.Web.UI.Page.Request.Cookies collection.
    b.    Remove the cookie from the System.Web.UI.Page.Request.Browser.Cookies collection.
    c.    Set the Expires property to DataTime.Now for a cookie in the Web.UI.Page.Response.Cookies
    d.    Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.

 the answer is:
    d.    Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.       

 Question18:
Which of the following are true of using ADO.NET DataSets and DataTables?


    a.    The DataSets and DataTables objects requires continuous connection to the database
    b.    All tables in a dataset must come from the same database
    c.    A given instance of a DataTable can be in only one DataSet
    d.    Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes

 the answer is:
    b.    All tables in a dataset must come from the same database       

 Question19:
The following are two statements related to System.DateTimeOffset namespace.

Statement X: DateTimeOffset values can be converted to DateTime values and vice versa.
Statement Y: DateTimeOffset does not supports arithmetical operations


    a.    Statement X is incorrect and Statement Y is correct
    b.    Statement X is correct and Statement Y is incorrect
    c.    Both Statements X, Y are correct
    d.    Both Statements X, Y are incorrect

 the answer is:
    d.    Both Statements X, Y are incorrect       

 Question20:
Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?


    a.    System.Web.Mail is not supported under version 3.5 of the Framework
    b.    System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.
    c.    System.Web.Mail is the preferred solution when using IIS hosted applications
    d.    There are no functional differences; the items were moved to a new namespace to better reflect their applicability

 the answer is:
    b.    System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.       

 Question21:
In which file are Predefined Client Side Validation Scripts defined?


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

 the answer is:
    d.    USerValidation.js       

 Question22:
Which of the following are common methods of supplying "Help" information to an ASP.NET application?


    a.    Setting the ToolTip property of a control to a string containing the information.
    b.    using the open method of the browser window object to open a new browser window and display a help related ASP.NET page
    c.    Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).
    d.    All of the above

 the answer is:
    c.    Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).       

 Question23:
When using Cascading Style Sheets (CSS) to format output, which of the following is/are true?


    a.    Styles can be applied to all elements having the same CSS Class attribute
    b.    Styles can be applied to specific elements based on their ID attribute
    c.    Styles can be applied to elements based on their position in a hierarchy
    d.    Styles can be used to invoke script based code
    e.    All of the above

 the answer is:
    e.    All of the above       

 Question24:
Which of the following is false regarding System.Threading.ReaderWriterLockSlim?


    a.    It is optimized for single processor/core operations
    b.    A thread which has a read lock on a resource may not acquire a write lock on the same resource
    c.    By default, a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception

 the answer is:
    b.    A thread which has a read lock on a resource may not acquire a write lock on the same resource       

 Question25:
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       

 Question26:
Which of the following is not a characteristic, that a Query expression should have?


    a.    It must contain a from clause
    b.    It must begin with a select clause
    c.    It can end with a group clause

 the answer is:
    b.    It must begin with a select clause       

 Question27:
When using asynchronous partial updates with an UpdatePanel, which of the following are true?


    a.    Only the UpdatePanel and any child controls go through the server lifecycle.
    b.    The entire page always goes through the entire lifecycle.
    c.    Only the UpdatePanel which initiated the Postback and its child controls can provide updated information.
    d.    UpdatePanels can not be used with Master Pages.

 the answer is:
    d.    UpdatePanels can not be used with Master Pages.       

 Question28:
Which of the following statements is false about Passport Authentication?


    a.    The Passport SDK must be installed.
    b.    Passport authentication requires a network path between the Client and the Microsoft Passport Server
    c.    Passport Authentication provides persistent authentication across sessions

 the answer is:
    b.    Passport authentication requires a network path between the Client and the Microsoft Passport Server       

 Question29:
The default number of threads per processor in the System.Threading.ThreadPool class under version 3.5 of the Framwork is:


    a.    1
    b.    25
    c.    250
    d.    100
    e.    500

 the answer is:
    d.    100       

 Question30:
Which of the following statements do Expression Trees fit best?


    a.    Expression trees are a data structure which can be initially composed using language syntax.
    b.    Expression trees are a dynamically generated code which is executed to perform the desired function.
    c.    Expression trees can be modified once they are created

 the answer is:
    c.    Expression trees can be modified once they are created       

 Question31:
Which of the following are performed to fully debug an ASP.NET Application running on the same machine as the debugger?


    a.    Enabling debug information in the .NET Assembly
    b.    Setting the debug attribute of the compilation element to true in the web.config file.
    c.    Enabling ASP.NET debugging in the IIS metabase.

 the answer is:
    c.    Enabling ASP.NET debugging in the IIS metabase.       

 Question32:
Which of the following are included in the advantages of Lambda Expressions over Anonymous methods?


    a.    More concise syntax
    b.    The types for 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:
    b.    The types for a Lambda Expression may be omitted       

 Question33:
Which of the following controls allows the use of XSL to transform XML content into formatted content?


    a.    System.Web.UI.WebControls.Xml
    b.    System.Web.UI.WebControls.Xslt
    c.    System.Web.UI.WebControls.Substitution
    d.    System.Web.UI.WebControls.Transform

 the answer is:
    d.    System.Web.UI.WebControls.Transform       

 Question34:
Which of the following is not an unboxing conversion?


    a.    void Sample1(object o)
{
   int i = (int)o;
}
    b.    void Sample1(ValueType vt)
{
   int i = (int)vt;
}
    c.    enum E { Hello, World}

void Sample1(System.Enum et)
{
   E e = (E) et;
}
    d.    class C { public int Value { get; set; } }

void Sample1(C vt)
{
   int i = vt.Value;
}

 the answer is:
    d.    class C { public int Value { get; set; } }

void Sample1(C vt)
{
       

 Question35:
Which of the following are true about Nullable types?


    a.    A Nullable type is a reference type.
    b.    An implicit conversion exists from any non-nullable value type to a nullable form of that type.
    c.    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

 the answer is:
    c.    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T       

 Question36:
Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable?


    a.    They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods.
    b.    Key objects must be immutable for the duration they are used within 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 IEqualityComparer 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:
    d.    Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement       

 Question37:
Where should information about a control created at design time be stored?


    a.    ApplicationState
    b.    SessionState
    c.    ViewState
    d.    None of the above

 the answer is:
    d.    None of the above       

 Question38:
Which directive allows the utilization of  a custom web control in an ASP.NET page?


    a.    @Register
    b.    @Include
    c.    @Control
    d.    @Import

 the answer is:
    d.    @Import       

 Question39:
The output generated by the following code will be:

string t = @"This\Is\a\Test";
Response.Write(t);


    a.    ThisIsaTest
    b.    This\Is\a\Test
    c.    It will give a compilation error: Unrecognized escape sequence

 the answer is:
    c.    It will give a compilation error: Unrecognized escape sequence       

 Question40:
Which of the following events should be used for assigning a Theme dynamically to a page?


    a.    PreInit
    b.    Init
    c.    PreLoad
    d.    PreRender
    e.    Render

 the answer is:
    c.    PreLoad - See more at: http://odeskta.blogspot.in/2012/06/how-to-pass-odesk-aspnet-35-using-c.html#sthash.40YcDoaD.dpuf

 Question1:
The earliest event in which all viewstate information has been restored is:


    a.    Init
    b.    PreLoad
    c.    Load
    d.    Render

 the answer is:    b.    PreLoad       

 Question2:
Which of the following differentiates a UserControl from a Custom Server control?


    a.    UserControl can directly express rendering information via markup; a Custom Server control can not.
    b.    UserControl does not require the use of the @Register directive; a Custom Server control does require it.
    c.    UserControl can make use of script based validation;  a Custom Server control can not.
    d.    UserControl can represent complete compositate hierarchy; a Custom Server control can not.

 the answer is:    b.    UserControl does not require the use of the @Register directive; a Custom Server control does require it.       

 Question3:
What is the proper declaration of a method which will handle the following event?

Class MyClass
{
      public event EventHandler MyEvent;
}


    a.    public void A_MyEvent(object sender, MyArgs e)
{
}
    b.    public void A_MyEvent(object sender, EventArgs e)
{
}
    c.    public void A_MyEvent(MyArgs e)
{
}


 the answer is: c.    public void A_MyEvent(MyArgs e)
{
}
       

 Question4:
Given the code below, which items will cause a compilation error?

static void F1(params int [] y)
{
}

static void Sample()
{
   int [] j = new Int32[3];
List k = new List();
// ANSWER GOES HERE
}


    a.    F1(j);
    b.    F1(k);
    c.    F1(1, 2, 3);
    d.    F1(new [] {1,2,3})
    e.    None of the above

 the answer is:    e.    None of the above       

 Question5:
By which of the following can the .NET class methods be included in .aspx files?


    a.    Including .Net code within the script element with the runat attribute set to server
    b.    Including .Net code within the code element
    c.    Including .Net code using the @code directive on the page
    d.    Including .Net code within the execute attribute of the individual control

 the answer is:    c.    Including .Net code using the @code directive on the page

       
 Question6:
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.       

 Question7:
Where should an instance of an object which provides services to all users be stored?


    a.    ApplicationState
    b.    SessionState
    c.    ViewState
    d.    None of the above

 the answer is:    d.    None of the above       

 Question8:
Which of the following are the goals of the Windows Communciation Foundation?


    a.    Bringing various existing communication technologies into a unified environment.
    b.    Cross vendor/platform communication.
    c.    Support for asynchronous communications.
    d.    Support for distributed applications based on technologies such as MSMQ and/or COM+
    e.    All of the above

 the answer is:    e.    All of the above       

 Question9:
When using a DataReader to access the results of a Database operation, which of the following is true?


    a.    The DataReader provides a cursor that can be used to move forward and backwards through the result.
    b.    The DataReader provides random access capabilities on the result.
    c.    The DataReader can provide the Schema information of the result to the application code.

 the answer is:    b.    The DataReader provides random access capabilities on the result.       

 Question10:
Which of the following types guarantee atomic reads and writes?


    a.    int
    b.    double
    c.    long
    d.    float

 the answer is:    d.    float       

 Question11:
Which of the following does Event Bubbling allow composite controls to perform?


    a.    Propagate container related events to the child controls.
    b.    Propagate child events up to control hierarchy
    c.    Distribute events between peer child controls.
    d.    Translate control unhandled control events into exceptions.

 the answer is:    b.    Propagate child events up to control hierarchy       

 Question12:
Which of the following is/are true regarding the use of Authentication to control access to the HTML file (.htm or .html)?


    a.    ASP.NET authentication handles these by default in a manner equivalent to .aspx pages
    b.    ASP.NET authentication can be associated with these extensions using aspnet_isapi.dll in IIS 6.0, for the appropriate directory
    c.    ASP.NET authentication cannot be used for this purpose

 the answer is:    c.    ASP.NET authentication cannot be used for this purpose       

 Question13:
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:    c.    By default, a given attribute may be applied multiple times to the same application element.       

 Question14:
Which of the following is false about System.GC under version 3.5 of the .NET Framework?


    a.    You can request that the garbage collector processes a generation if it determines that it is appropriate at specific points in your code
    b.    You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running
    c.    You can control the intrusiveness of the garbage collector (how often it performs collections) only during application initialization

 the answer is:    b.    You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running       

 Question15:
With which of the following are Declarative Databinding expressions delimited?


    a.    <%#    %>
    b.    <%--   --%>
    c.  
    d.    <#  >

 the answer is:<%--   --%>       

 Question16:
Which of the following statements are applicable in LINQ to SQL?


    a.    It is pure Object Relational (O/R) model.
    b.    It is a set of enhancements to the DataSet and DataTable classes.
    c.    It requires the use of SQLServer as the database.
    d.    Because LINQ is based on Queries, it can not be used to modify the data in the database.

 the answer is:    b.    It is a set of enhancements to the DataSet and DataTable classes.       

 Question17:
Which of the following is used to remove a cookie from a client machine?


    a.    Remove the cookie from the System.Web.UI.Page.Request.Cookies collection.
    b.    Remove the cookie from the System.Web.UI.Page.Request.Browser.Cookies collection.
    c.    Set the Expires property to DataTime.Now for a cookie in the Web.UI.Page.Response.Cookies
    d.    Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.

 the answer is:    d.    Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.       

 Question18:
Which of the following are true of using ADO.NET DataSets and DataTables?


    a.    The DataSets and DataTables objects requires continuous connection to the database
    b.    All tables in a dataset must come from the same database
    c.    A given instance of a DataTable can be in only one DataSet
    d.    Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes

 the answer is:    b.    All tables in a dataset must come from the same database       

 Question19:
The following are two statements related to System.DateTimeOffset namespace.

Statement X: DateTimeOffset values can be converted to DateTime values and vice versa.
Statement Y: DateTimeOffset does not supports arithmetical operations


    a.    Statement X is incorrect and Statement Y is correct
    b.    Statement X is correct and Statement Y is incorrect
    c.    Both Statements X, Y are correct
    d.    Both Statements X, Y are incorrect

 the answer is:    d.    Both Statements X, Y are incorrect       

 Question20:
Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?


    a.    System.Web.Mail is not supported under version 3.5 of the Framework
    b.    System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.
    c.    System.Web.Mail is the preferred solution when using IIS hosted applications
    d.    There are no functional differences; the items were moved to a new namespace to better reflect their applicability

 the answer is:    b.    System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.       

 Question21:
In which file are Predefined Client Side Validation Scripts defined?


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

 the answer is:    d.    USerValidation.js    
b. ClientValidation.js  

 Question22:
Which of the following are common methods of supplying "Help" information to an ASP.NET application?


    a.    Setting the ToolTip property of a control to a string containing the information.
    b.    using the open method of the browser window object to open a new browser window and display a help related ASP.NET page
    c.    Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).
    d.    All of the above

 the answer is:    c.    Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).       

 Question23:
When using Cascading Style Sheets (CSS) to format output, which of the following is/are true?


    a.    Styles can be applied to all elements having the same CSS Class attribute
    b.    Styles can be applied to specific elements based on their ID attribute
    c.    Styles can be applied to elements based on their position in a hierarchy
    d.    Styles can be used to invoke script based code
    e.    All of the above

 the answer is:    e.    All of the above       

 Question24:
Which of the following is false regarding System.Threading.ReaderWriterLockSlim?


    a.    It is optimized for single processor/core operations
    b.    A thread which has a read lock on a resource may not acquire a write lock on the same resource
    c.    By default, a thread which has a read lock on a resource and attempts to get another read lock on the same resource will throw an exception

 the answer is:    b.    A thread which has a read lock on a resource may not acquire a write lock on the same resource       

 Question25:
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       

 Question26:
Which of the following is not a characteristic, that a Query expression should have?


    a.    It must contain a from clause
    b.    It must begin with a select clause
    c.    It can end with a group clause

 the answer is:    b.    It must begin with a select clause       

 Question27:
When using asynchronous partial updates with an UpdatePanel, which of the following are true?


    a.    Only the UpdatePanel and any child controls go through the server lifecycle.
    b.    The entire page always goes through the entire lifecycle.
    c.    Only the UpdatePanel which initiated the Postback and its child controls can provide updated information.
    d.    UpdatePanels can not be used with Master Pages.

 the answer is:    d.    UpdatePanels can not be used with Master Pages.       

 Question28:
Which of the following statements is false about Passport Authentication?


    a.    The Passport SDK must be installed.
    b.    Passport authentication requires a network path between the Client and the Microsoft Passport Server
    c.    Passport Authentication provides persistent authentication across sessions

 the answer is:    b.    Passport authentication requires a network path between the Client and the Microsoft Passport Server       

 Question29:
The default number of threads per processor in the System.Threading.ThreadPool class under version 3.5 of the Framwork is:


    a.    1
    b.    25
    c.    250
    d.    100
    e.    500

 the answer is:    d.    100       

 Question30:
Which of the following statements do Expression Trees fit best?


    a.    Expression trees are a data structure which can be initially composed using language syntax.
    b.    Expression trees are a dynamically generated code which is executed to perform the desired function.
    c.    Expression trees can be modified once they are created

 the answer is:    c.    Expression trees can be modified once they are created       

 Question31:
Which of the following are performed to fully debug an ASP.NET Application running on the same machine as the debugger?


    a.    Enabling debug information in the .NET Assembly
    b.    Setting the debug attribute of the compilation element to true in the web.config file.
    c.    Enabling ASP.NET debugging in the IIS metabase.

 the answer is:    c.    Enabling ASP.NET debugging in the IIS metabase.       

 Question32:
Which of the following are included in the advantages of Lambda Expressions over Anonymous methods?


    a.    More concise syntax
    b.    The types for 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:    b.    The types for a Lambda Expression may be omitted       

 Question33:
Which of the following controls allows the use of XSL to transform XML content into formatted content?


    a.    System.Web.UI.WebControls.Xml
    b.    System.Web.UI.WebControls.Xslt
    c.    System.Web.UI.WebControls.Substitution
    d.    System.Web.UI.WebControls.Transform

 the answer is:    d.    System.Web.UI.WebControls.Transform       

 Question34:
Which of the following is not an unboxing conversion?


    a.    void Sample1(object o)
{
   int i = (int)o;
}
    b.    void Sample1(ValueType vt)
{
   int i = (int)vt;
}
    c.    enum E { Hello, World}

void Sample1(System.Enum et)
{
   E e = (E) et;
}
    d.    class C { public int Value { get; set; } }

void Sample1(C vt)
{

   int i = vt.Value;
}

 the answer is:    d.    class C { public int Value { get; set; } }

void Sample1(C vt)
{
       

 Question35:
Which of the following are true about Nullable types?


    a.    A Nullable type is a reference type.
    b.    An implicit conversion exists from any non-nullable value type to a nullable form of that type.
    c.    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T

 the answer is:    c.    A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T       

 Question36:
Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable?


    a.    They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods.
    b.    Key objects must be immutable for the duration they are used within 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 IEqualityComparer 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:    d.    Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement       

 Question37:
Where should information about a control created at design time be stored?


    a.    ApplicationState
    b.    SessionState
    c.    ViewState
    d.    None of the above

 the answer is:    d.    None of the above       

 Question38:
Which directive allows the utilization of  a custom web control in an ASP.NET page?


    a.    @Register
    b.    @Include
    c.    @Control
    d.    @Import

 the answer is:    d.    @Import       

 Question39:
The output generated by the following code will be:

string t = @"This\Is\a\Test";
Response.Write(t);


    a.    ThisIsaTest
    b.    This\Is\a\Test
    c.    It will give a compilation error: Unrecognized escape sequence

 the answer is:    c.    It will give a compilation error: Unrecognized escape sequence       

 Question40:
Which of the following events should be used for assigning a Theme dynamically to a page?


    a.    PreInit
    b.    Init
    c.    PreLoad
    d.    PreRender
    e.    Render

 the answer is:    c.    PreLoad


100% corrected answers of Odesk & Elance ASP.NET 3.5/2.0 C# test.

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.