header1.html

Showing posts with label .net mcqs. Show all posts
Showing posts with label .net mcqs. Show all posts

Wednesday, 2 October 2013

WCF MCQs


WCF is framework used to implement SOAs.After some sample quizzes on WCF like
WCF SET-I
WCF SET-II
WCF SET-III
Here I am with some MCQs on WCF again for uncovered topics like Binding,Contracts.


1._________defines the parameters and return type of an operation.
A.Message contract
B.Data contract
C.Fault contract
D.Operation contract
Click for answer 

D.Operation contract.
2._________an endpoint exposed by the application and that corresponds to a service contract implemented by the application.
A.infrastructure endpoint
B.application endpoint
C.binding
D.None of above
Click for answer 

B.application endpoint
3.It is a procedure defined in a service's code that implements the functionality for an operation.
A.operation contract
B.hosting
C.service operation
D.None of these.
Click for answer 

C.service operation
4.___________ is service that runs within a process application that the developer created.
A.hosted service
B.self-hosted service
C.self service
D.Data service
Click for answer 

B.self-hosted service
5.A secure and interoperable binding that is designed for use with duplex service contracts that allows both services and clients to send and receive messages.
A.WSHttpBinding
B.WS2007HttpBinding
C.WSHttpContextBinding
D.WSDualHttpBinding
Click for answer 

D.WSDualHttpBinding
6.Represents an interoperable binding that supports distributed transactions and secure, reliable sessions.
A.NetTcpBinding
B.WSDualHttpBinding
C.WSHttpBinding
D.NetNamedPipeBinding
Click for answer 

C.WSHttpBinding
7.Represents a queued binding that is suitable for cross-machine communication.
A.NetMsmqBinding
B.WSHttpBinding
C.NetNamedPipeBinding
D.HttpPipeBinding
Click for answer 

A.NetMsmqBinding
8.Represents a binding that a Windows Communication Foundation (WCF) service can use to configure and expose endpoints that are able to communicate with ASMX-based Web services and clients.
A.BasicHttpBinding
B.WSHttpBinding
C.NetMsmqBinding
D.NetNamedPipeBinding
Click for answer 

A.BasicHttpBinding

Tuesday, 24 September 2013

MCQs on WinForms in .NET


After good response to C# 4.0 MCQs,I planned to write this post for advanced controls in WinForms.

1.____________ class represents a collection of TreeNode objects.
A.TreeNodes
B.TreeView
C.Collection
D.TreeNodeCollection
Click for answer 

D.TreeNodeCollection
2.The Windows Forms__________control displays a hierarchy of nodes, like the way files and folders are displayed in the left pane of the Windows Explorer feature in Windows operating systems.
A.ContextMenuStrip
B.TreeView
C.Splitter
D.ToolStrip
Click for answer 

B.TreeView
3.______ class represents a node of a TreeView.
A.Node
B.TreeNodeCollection
C.TreeNode
D.None of above
Click for answer 

C.TreeNode
4.Windows Forms _________ controls are used to resize docked controls at run time.
A.Timer
B.Splitter
C.ContextMenuStrip
D.None of above
Click for answer 

B.Splitter
5.________ class represents a control consisting of a movable bar that divides a container's display area into two resizable panels.
A.Splitter
B.Container
C.ContextMenuStrip
D.SplitContainer
Click for answer 

D.SplitContainer
6.The Windows Forms __________ is a component that raises an event at regular intervals.
A.Splitter
B.delegate
C.Timer
D.None of these
Click for answer 

C.Timer
7.The __________ control provides a shortcut menu that you associate with a control.
A.ContextMenuStrip
B.ToolStrip
C.ToolStripTextBox
Click for answer 

A.ContextMenuStrip
8.ContextMenuStrip replaces _______.
A.ContextMenu
B.MenuStrip
C.ToolStrip
D.Menu
Click for answer 

A.ContextMenu

Sunday, 21 July 2013

Basic Web Development MCQs


1.Basic features of Web Browsers are ___________.
1)Mass access to web pages
2)Easy hyperlinks
3)Number of commands
4)Easy online help
5)Support Search mechanism
A.1, 2, 3 &4
B.2, 3, 4 & 5
C.1, 3, 4 & 5
D.1, 2, 3, 4 & 5
Click for answer 

D.1, 2, 3, 4 & 5
2.URIs typically consists of _________________

1)The naming scheme of the mechanism used to access the resource.
2)The name of the machine hosting the resource.
3)The name of the resource itself, given as a path.
A.1 & 2
B.1, 2 & 3
C.1 & 3
D.2 & 3
Click for answer 

B.1,2 & 3
3.Programs that ask servers for services are called _________
A.FTP
B.URL
C.Clients
D.None of these
Click for answer 

C.Clients
4.Three version of POP are ___________
A.POP, POP2, and POP3
B.POP1, POP2, and POP3
C.POP0, POP1, and POP2
D.POP, POP2, and POP4
Click for answer 

B.POP1, POP2, and POP3
5.______ is a method of recording a visited website or web pages.
A.blog
B.bookmark portal
C.Robot
D.bookmark
Click for answer 

D.bookmark
6.Relative path make your hypertext links______________
A.Discrete
B.Uniform
C.Portable
D.Interactive
Click for answer 

C.Portable
7.Which of the following path is supported by HTML?
A.Absolute and Relative
B.Server path
C.Both A & B
Click for answer 

A.Absolute and Relative
8.What is the most widely used e-mail form script?
A.PHP
B.ASP
C.Perl
D.JSP
Click for answer 

A.PHP

Thursday, 20 June 2013

C# and asp.net mcqs


1.In ASP.NET ,What method must be overridden in a custom control ?
A.Paint()
B.Build()
C.Run()
D.Render()
Click for answer 

D.Render()
2. The Visual Studio.NET IDE creates ____________supplementary file,that contains General Information about the assembly.
A.AssemblyInfo.xml
B.AssemblyInformation.cs
C.AssemblyInfo.cs
D.AssemblyAttributes.cs
Click for answer 

C.AssemblyInfo.cs
3.Regular expressions are used to validate complex string patterns like an e-mail address.True or False?
A.False
B.True.
Click for answer 

B.True
4.All dll's should not have starting point(Main() method) of execution?
A.Can't say,it may have
B.False
C.True
Click for answer 

C.True
5.The ASP.NET directive that lets you cache different versions of a page based on varying input parameters, HTTP headers and browser type is______.
A.@CacheOutput
B.@PageCache
C.@CacheAll
D.@OutputCache
Click for answer 

D.@OutputCache
6.An Event Handler is a subroutine that executes code for a given event.True/False?
False
True
Click for answer 

B.True
7.If you want to execute the code in the Page_Load subroutine only the FIRST time the page is loaded, you can use the Page.IsPostBack property.True/False?
A.True.
B.False
Click for answer 

A.True
8.All server controls must appear within a <form> tag
A.True.
B.False.
Click for answer 

A.True.