Sunday, July 7, 2013

.NET MCQ Test – 2


Que.1. Which of the following statements is true?

A:        CommitChanges is a method of SqlDataContext.
B:        CommitChanges is a method of DataContext.
C:        CommitChanges is a method of DbDataContext.
D:        CommitChanges is a method of OleDbData Context

Right Answer: B

Que.2. If you want to access a web service method ,which attribute it must have ?

A:        [WebMethod]
B:        [PageMetod]
C:        [Web.Service]
D:        [WebSupport]

Right Answer: A

Que.3. An UpdatePanel control defined on a page. Button control is placed outside of the UpdatePanel.How to cause the UpdatePanel to execute an update.

A:        Set the Trigger attribute of the UpdatePanel to the ID of the Button control.
B:        Set the AsyncPostBackTrigger attribute of the Button control to the ID of the UpdatePanel.
C:        Place the button control on the update panel without script manager.
D:        Add an AsyncPostBackTrigger control to the Triggers section of the UpdatePanel. Set the ControlID attribute of the AsyncPostBackTrigger control to the ID of the Button
control.

Right Answer: D

Que.4. Which of the following is true ?
1.AJAX is a platform-independent technology
2.AJAX can work with web application
3.AJAX can only work with ASP.NET
4.AJAX is a platform-dependent technology

A:        1, 2
B:        1,2,3
C:        1,3,4
D:        None

Right Answer: A

Que.5. In which Event you can set the value of a Theme?

A:        Page_Load
B:        Page_Render
C:        Page_PreRender
D:        Page_PreInit

Right Answer: D

Que.6. Which of the following statements is true?

A:        LINQ to SQL works with any database.
B:        LINQ to SQL works with SQL Server.
C:        LINQ to SQL is a CLR feature.
D:        LINQ to SQL is a SQL Server feature.

Right Answer: B

Que.7. Which of the following are value types?

A:        String
B:        System.Value
C:        System.Drawing
D:        System.Drawing.Point

Right Answer: D

Que.8. How many readers can simultaneously read data with ReaderWriterLock if there is no writer lock apply?

A:        9
B:        11
C:        13
D:        No Limit

Right Answer: D

Que.9. Which interface you will use wrap an AJAX client control into a custom server control?

A:        IScriptManager
B:        IScriptControl
C:        IScriptAJAX
D:        None

Right Answer: A

Que.10. Which control is required for every page that have AJAX Extensions for ASP.NET

A:        UpdatePanel
B:        ScriptManager
C:        ContentPanel
D:        None

Right Answer: B

Que.11. Choose the correct one.

int[] numbers = { 9,10, 0,11 };

var nums =
from n in numbers
select n + 1;

foreach (var i in nums)
{
Console. Write (i+”,”);
}

A:        10, 11,1,12,
B:        10,11,12,13,
C:        9, 10, 0, 11
D:        None of these

Right Answer: A

Que.12. What is the file extension of web service in ASP.NET

A:        .ascx
B:        .asmx
C:        .aspx
D:        .docx

Right Answer: B

Que.13. What LINQ expressions are used to shape results in a query?
1.where
2.select
3.join
4.group

A:        2,4
B:        1,2
C:        3,4
D:        None of A,B,C

Right Answer: A

Que.15. If you are using the DataSet and you have to display the data in sorted order what will you do?

A:        Use Sort method of DataTable
B:        Use Sort method of DataSet
C:        Use DataViev object with each sort
D:        Use datapaging and sort the data.

Right Answer: C

Que.16. Which LINQ statement is used to merge two data sources to perform queries?

A:        where
B:        select
C:        join
D:        group

Right Answer: C

Que.17. Which of the following are reference types?

A:        String
B:        Exception
C:        Class
D:        All choices are correct.

Right Answer: D

Que.18. Which method is used to dynamically register client script from code?

A:        Page.ClientScript.RegisterClientScriptBlock
B:        RegisterScript
C:        Page.ClientScript
D:        None

Right Answer: A

Que.18. Which method is used to dynamically register client script from code?

A:        Page.ClientScript.RegisterClientScriptBlock
B:        RegisterScript
C:        Page.ClientScript
D:        None

Right Answer: A

Que.19. Which interface defines the basic extension methods for LINQ?

A:        IComparable< T>
B:        IList
C:        IEnumerable
D:        IQueryable< T>

Right Answer: C

Que.20. What types of shapes can LINQ query results be shaped into?
1.Collections of primitive types
2.Collections of complex types
3.Single types
4.Collections of anonymous types

A:        1, 2, 4
B:        1,2,3
C:        1,3,4
D:        None of A,B,C

Right Answer: A

Software Testing MCQ Test - 2


Que.1. In quantifying risk, the term RE represents

A:        Risk expense
B:        Related expense
C:        Risk exposure
D:        Risk evaluation

Right Answer: C

Que.2. Quality Control is a validation technique whereas Quality Assurance is a verification technique

A:        True
B:        False

Right Answer: A

Que.3. What is the present value of money of a $10,000 expenditure that you will spend one year from now if money is worth 14%

A:        $2630
B:        $8770
C:        $1600
D:        $8600

Right Answer: B

Que.3. What is the present value of money of a $10,000 expenditure that you will spend one year from now if money is worth 14%

A:        $2630
B:        $8770
C:        $1600
D:        $8600

Right Answer: B

Que.5. Which of the following techniques does not require the understanding of internal data structures and algorithms?

A:        Gray box testing
B:        Mutation testing
C:        Glass box testing
D:        All - pairs testing

Right Answer: D

Que.6. Which of the following is not a black-box testing technique?

A:        Fault injection
B:        Exploratory testing
C:        Model based testing
D:        Requirements testing

Right Answer: A

Que.7. The __________ is an application of a process management and quality improvement concepts to software development and maintenance.

A:        Malcom-Baldridge
B:        ISO 9000
C:        SEI/CMM
D:        QSI4000

Right Answer: C

Que.8. Code inspection of a program is a dynamic testing technique

A:        True
B:        False

Right Answer: B

Que.9. The pareto analysis is most effective for

A:        ranking items by importance
B:        showing relationships between items
C:        measuring the impact of identified items
D:        ranking items by size/quantity

Right Answer: A

Que.10. Which of the following acceptance testing is done prior to a new build?

A:        Alpha testing
B:        Beta testing
C:        Smoke testing
D:        UAT

Right Answer: C

Que.11. Which of the following verifies the product rather than the process?

A:        Inspection
B:        Quality Control
C:        Walkthrough
D:        Review

Right Answer: B

Que.12. For black-box testing,

A:        The tester is completely unconcerned about the internal behaviour of the program
B:        The tester is concerned with finding circumstances in which the program does not behave according to specifications
C:        Test data is derived solely from specifications
D:        All choices are correct.

Right Answer: D

Que.13. Which of the following is not a white box testing technique?

A:        Branch testing
B:        Path testing
C:        Requirements testing
D:        Penetration testing

Right Answer: C

Que.13. Which of the following is not a white box testing technique?

A:        Branch testing
B:        Path testing
C:        Requirements testing
D:        Penetration testing

Right Answer: C

Que.15. Which of the following is not a level in CMM

A:        Managed
B:        Adhoc
C:        Predictable
D:        Optimised

Right Answer: C

Que.16. Almost one-half of a programmer's time is spent identifying and fixing errors in specifications.

A:        True
B:        False

Right Answer: A

Que.17. Boundary value testing,

A:        is the same as Equivalence partitionining tests
B:        tests boundary conditions on, above and below the edges of input and output equivalence classes
C:        tests combinations of input cirumstances
D:        is used in white box testing strategy

Right Answer: B

Que.18. Which of the following is not a cost of quality?

A:        Prevention Cost
B:        Appraisal cost
C:        Failure cost
D:        Build cost

Right Answer: D

Que.19. The process of identifying the kinds of software failures that can occur and then quantifying how likely it is that they will actually occur is

A:        Configuration management
B:        Risk management
C:        Contingency planning
D:        Process improvement

Right Answer: B

Que.20. In which model functional expertise can be used to estimate cost

A:        Function point
B:        Expert judgment
C:        Top-down
D:        Bottom-up

Right Answer: B