Hello friends if you are finding for DOT NET Techgenics MCQ | DOT NET Techgenics Multiple choice questions | DOT NET Techgenics Question Answers | DOT NET Techgenics Question answer dumps | DOT NET Techgenics Accenture Answers
Note: Please use “Find In Page” Option in Chrome to find out your questions.
1.Which of the following statements are TRUE, with respect to WCF?
Ans:
2.Which of the following is the correct option for an input field that allows only letters and numbers?
Ans:
3.Which of the following statement is TRUE about Unit Testing?
Ans:
4.Consider you have a customer form containing two textboxes named as “txtPassword” and “txtConfirmPassword”.
You need to ensure that value entered in confirm password textbox must match the value entered in password.
Ans)set ControlToValidate=”txtCOnfirmPassword” ControToCompare=”txtPassword”
5.WCF achieves reliable messaging using which of the following?
Ans) MSMQ
6.Identify which of the following layout controls aligns the child control in the edges of panel?
Ans: Dock Panel
7.Which of the following Asset class method is used to check whether the Add method works correctly when the value is passed?
Ans. AreEqual() (checked)
8.Which of the following Hosting service are provided by WCF?
A)Executable(.EXE)
B)Windows Service
Ans: Both A and B
9.How will the service endpoint inform the service clients about the particular transport protocol and encoding technique which clients must support to access the service?
Ans: Binding
10.Consider you are developing an ASP.NET web application. Whenever a user selects a value in a dropdownlist called ddlEmployees, the application fetches a list of records from the database and stores them in a data table called “d
tEMployee”. This data table must be bound to a gridview called “gvEmployees”. Which of the following options will solve the problem?
Ans: a.gvEmployees DataSource=dlEmployee
b.gvEmployees DataBind()
11.Which of the following statements are TRUE with respect to WCF?
Ans:
12.You have created a WCF service to return the latest share prices for online trading. The client application is a WPF app. How will the WPF app know where the WCF service is located?
Ans: Using the URL contained in the endpoint address
13.You are creating a web form using ASP.NET. The web form uses a drop down list called ddlDepartments to displays a list of departments. The department name(DeptName) is displayed as the options in the drop down. When the
user selects a dept name the corresponding department id(Deptid) is taken as the value. How will you implement this
in ASP>NET ?
Ans: ddlDepartments.DataTextField=”DeptName”;
ddlDepartments.DataValueField=”DeptId”;
14.What is wrong with the following mark up?
Ans:
15.Which of the following statement is TRUE about WCF Proxy?
Ans: Proxy gets generated when you execute the application
16.Which of the following feature of WCF helps in customizing the behavior of the service?
Ans: Attribute based programming
17.Which base class is inherited by all WPF and Layout controls?
Ans: FrameworkElement
18.You would like to define the number of characters in an input element storing empname field to Not exceeding 50 chars. Which of the following is the correct way to achieve the same ?
Ans:
19.In WPF, Identity which of the following layout controls aligns the information in the form of rows and columns.
Ans: Grid.
20.Snippet you can use to add audio content on
Ans:
21.How will the service endpoint inform the service clients about te operations available in the service?
Ans: using the contract
22.Which of the following new elements are added in HTML5?
Ans. All the above
Block element
garphic element
S
23.How will you specify a method is available to access by client in WCF?
Ans:
24.You are creating a web form using ASP.NET . The web form uses a drop down list called ddlDepartments to displays a list of departments. The department name(DeptName) is displayed as the options in the drop down. When the user selects a dept name the corresponding department id(Deptid) is taken as the value. How will you implement this
in ASP>NET ?
Ans: ddlDepartments.DataTextField=”DeptName”;
ddlDepartments.DataValueField=”DeptId”;
25.Which of the following statement is TRUE about WCF Proxy?
Ans: Proxy gets geerated at cluent side
26.How will the service endpoint inform the seervice clients about the particlar transport protocol and encoding technique which clients must support to access the service?
Ans:Binding
27.which base class is inherited by wpf and layout controls?
Ans:
topic WPF sub topic WPF_controls_events consider you have created the following wpf code
<window>
<stackpanel>
<button x:name=”button/>
<stackPanel>
<window>
In the above example id the event execution happens from
Window>stackpanel->button>
4.Consider you have a customer form containing two textboxes named as “txtPassword” and
“txtConfirmPassword”. You need to ensure that value entered in confirm password textbox must match
the value entered in password.
Ans)set ControlToValidate=”txtCOnfirmPassword” ControToCompare=”txtPassword”
5.WCF achieves reliable messaging using which of the following?
Ans) MSMQ
6.Identify which of the following layout controls aligns the child control in the edges of panel?
Ans: Dock Panel
7.Which of the following Asset class method is used to check whether the Add method works correctly
when the value is passed?
Ans. AreEqual() (checked)
8.Which of the following Hosting service are provided by WCF?
A)Executable(.EXE)
B)Windows Service
Ans: Both A and B
9.How will the service endpoint inform the service clients about the particular transport protocol and
encoding technique which clients must support to access the service?
Ans: Binding
10.Consider you are developing an ASP.NET web application. Whenever a user selects a value in a
dropdownlist called ddlEmployees, the application fetches a list of records from the database and stores them in a data table called “dtEMployee”. This data table must be bound to a gridview called
“gvEmployees”. Which of the following options will solve the problem?
Ans: a.gvEmployees DataSource=dlEmployee
b.gvEmployees DataBind()
12.You have created a WCF service to return the latest share prices for online trading. The client
application is a WPF app. How will the WPF app know where the WCF service is located?
Ans: Using the URL contained in the endpoint address
13.You are creating a web form using ASP.NET. The web form uses a drop down list called
ddlDepartments to displays a list of departments. The department name(DeptName) is displayed as the
options in the drop down. When the user selects a dept name the corresponding department id(Deptid)
is taken as the value. How will you implement this in ASP>NET ?
Ans: ddlDepartments.DataTextField=”DeptName”;
ddlDepartments.DataValueField=”DeptId”;
15.Which of the following statement is TRUE about WCF Proxy?
Ans: Proxy gets generated when you execute the application
16.Which of the following feature of WCF helps in customizing the behavior of the service?
Ans: Attribute based programming
17.Which base class is inherited by all WPF and Layout controls?
Ans: FrameworkElement
19.In WPF, Identity which of the following layout controls aligns the information in the form of rows and
columns.
Ans: Grid.
21.How will the service endpoint inform the service clients about te operations available in the service?
Ans: using the contract
22.Which of the following new elements are added in HTML5?
Ans. All the above
Block element
garphic element
S
24.You are creating a web form using ASP.NET . The web form uses a drop down list called ddlDepartments to displays a list of departments. The department name(DeptName) is displayed as the
options in the drop down. When the user selects a dept name the corresponding department id(Deptid)
is taken as the value. How will you implement this in ASP>NET ?
Ans: ddlDepartments.DataTextField=”DeptName”;
ddlDepartments.DataValueField=”DeptId”;
25.Which of the following statement is TRUE about WCF Proxy?
Ans: Proxy gets geerated at cluent side
26.How will the service endpoint inform the seervice clients about the particlar transport protocol and
encoding technique which clients must support to access the service?
Ans:Binding
2.Which of the following Hosting service are provided by WCF?
A)Executable(.EXE)
B)Windows Service
Ans) Both A and B
3.Choose the design principal in WPF ,which measures the graphics on specific screen resolution
excluding degree of quality.
Ans) Vector Graphics
4.Peter is novice developer and he has written a web based applications and he wants to test the
Functionality of the web applications. Which of the following test would you suggest peter to use ?
Ans) Web Tests
5.Which of the below statements regarding WCF Service Hosting are True?
Ans) a.WCF Service can be hosted in internal information Services(IIS)
b.WCF Service can be hosted in Windows Process Activation Services(WAS).
6.Consider you ave created the following WPF Code.
Peter is creating service using WCF. He wants to know which contract is used for error handling.
Kindly suggest peter in identifying the suitable contract?
Ans) Fault Contract
8.Identify which of the following is a client side statemanagement technique in Asp.net WebForms?
Ans) Cookies & Querystring
9. Consider the following code:
Yes
In the above example when YesButton is clicked YesButton_Click event i.e the same event handler
operation is executed.
The above illustration is an example of which of the following event of WPF?
Ans) Direct
10.Consider you are developing an ASP.NET web application you have created a gridview called
“gvCategories”.You need to set two of the below provided options so that the gridview displays the data
when viewed in browser.
Which of the following options should you use?
Ans) Datasource and DataBind
Which attribute needs to be specified for the class to indicate that the class is basically belongs for
Testing?
Ans) Testclass
12.Which base class is inherited by all WPF and Layout controls?
Ans) FrameworkElement
13.Consider you are developing an ASP.NET web application. Whenever a user selects a value in a
dropdownlist called ddlEmployees, the application fetches a list of records from the database and stores
them in a data table called “dtEMployee”. This data table must be bound to a gridview called
“gvEmployees”. Which of the following options will solve the problem?
Ans) a.gvEmployees DataSource=dlEmployee
b.gvEmployees DataBind()
14.Consider the class “Calculator” shown below and we want to ensure that the properties inside this
class should be made available to client in WCF,
Which of the following should be defined for the Properties?
[DataContract]
class Calculator
{
public int Num1{get; set;}
public int Num2{get; set;}
}
Ans) DataMember
15.Peter is creating service using WCF.He wants to know which contract is used for describing complex
types like classes created to represent information like Employee,Customer etc.Kindly suggest peter in
identifying the suitable contract?
Ans) Data Contract , Message Contract
16.You would like to define the number of characters in an input element storing empname field to
Not exceeding 50 chars. Which of the following is the correct way to achieve the same ?
Ans)
<input type ="text" id="empname" maxlength="50">
17.You have created a Score page using ASP.NET web forms
There is a text box control names as “txtMarks” you need to validate the txtmarks control by ensuring
that the values entered are between 0 and 100 only.
Which control is most suitable to perform this task?
Ans) Range Validate
18.You are creating a web form using ASP.NET the form requires a start date and an end date to be
entered.
You want to ensure that the start date is always lesser than the end date. Which validation control can help you achieve this with least effort?
Ans)Custom Validate
19.Angine is a novice developer and he wants to ensure that the FirstName textbox should allow only
alphabets and special characters like dot. SUggest the suitable HTML5 attribute to be used by ANgile to
achieve the same?
Ans) Pattern
20.The _ is a global object used for server-side state management of ASP.NET web forms and
accessible by all users and paes of a web application.
Ans) Application
{
21.Refer the incomplete code given below
Email
Phone Number
Date of birth
Choose a valid option to complete the above code so that user can enter only email,phone,number and
date of birt in respectively fields
Ans)email,number,date
22.Consider the following code in WCF
interface MathData int Add(int num1, int num2);
}
Ans) MathData should be defined as ServiceContract and method Add as OperationContract.
23.Which of the following are the reason for activating or hosting a WCF service?
Ans) To run the server
24.For security reasons __ is replaced for cookies in HTML5.
Ans) Web Storage
25.In WPF , Identity which of the following layout controls aligns the information in the form of rows
and columns.
Ans) Grid.
26.How will the service endpoint inform the service clients about te operations available in the service?
Ans) using the contract
- Identify which of the following is a server side statemanagement technique in Asp.net?
Ans) Session - Identify which of the following Event gets executed first in the ASP.NEt webforms page life cycle?
Ans) Page_int
29.Angie is a software developer and she had created registration page with 5 textbox contains and she
wants to ensure that all the textboxes cannot be empty and user must enter some data.Which validation
control would you suggest for angie?
Ans) RequireFieldValidator
30.You have created a registration page using ASP.NET web forms. You have used various validation
controls for the fields accepted as user input from the page. In case validation fails you want to display
all the error messages together , in a message box.Which control is most suitable to perform this task?
Ans) ValidationSummary
31.WCF achieves reliable messaging using which of the following?
Ans) MSMQ
34.Developer and tom wants to ensure that the user must enter data into the Attribute should Tom use
to achieve it?
Ans) Required
35.Which of the following feature of WCF helps in customizing the behavior of the service?
Ans) Attribute based programming
36.Protected void Page_Load(object sender , EventArgs e)
{
DropDownList1.Items.Add(“Jio”);
DropDownList1.Items.Add(“Vodafone”); }
When the below code is executed its found that the dropdownlist was loaded with same data multiple
timeson click of button?
Which of the following options can solve the problem?
Ans)Write the above code inside if(IsPostback==false)
39.Which of the following statement is TRUE about WCF Proxy?
Ans) Proxy gets geerated at cluent side
40.Which of the following new elements are added in HTML5?
Ans) All the above
44.Snippet you can use to add audio content on
Ans)
<audio controls=”controls”>
<source src=”cartoon.mp3” type=”audio/mp3”>
</audio>
- Which base class is inherited by all WPF and Layout controls?
Ans)FrameworkElement
46.Which of the following elements cannot be represented using input tag in type we
will mention which element we want to represent?
a.Number
b.Time
c.Meter
d.Color
Ans.only c
47.How will the service endpoint inform the seervice clients about the particlar transport protocol and
encoding technique which clients must support to access the service?
Ans.Binding
49.which of the following Asset class method is used to check whether the Add method works correctly
when the value is passed?
Ans. AreEqual() (checked)
2.Which of the following Hosting service are provided by WCF?
A)Executable(.EXE)
B)Windows Service
Ans) Both A and B
3.Choose the design principal in WPF ,which measures the graphics on specific screen resolution
excluding degree of quality.
Ans) Vector Graphics
4.Peter is novice developer and he has written a web based applications and he wants to test the
Functionality of the web applications. Which of the following test would you suggest peter to use ?
Ans) Web Tests
5.Which of the below statements regarding WCF Service Hosting are True?
Ans) a.WCF Service can be hosted in internal information Services(IIS)
b.WCF Service can be hosted in Windows Process Activation Services(WAS).
6.Consider you ave created the following WPF Code.
<Window>
<Stack Panel> <Button Name="Button1/>
</Stack Panel>
</Window>
In the above example , if the event execution happens from
Window -> StackPanel -> Button
The above illustration is an xample of which of the following event of WPF?
Ans) Tunneling
- Peter is creating service using WCF. He wants to know which contract is used for error handling.
Kindly suggest peter in identifying the suitable contract?
Ans) Fault Contract
8.Identify which of the following is a client side statemanagement technique in Asp.net WebForms?
Ans) Cookies & Querystring
Consider the class “Calculator” shown below and we want to ensure that the properties inside this
class should be made available to client in WCF,
Which of the following should be defined for the Properties?
[DataContract]
class Calculator
{
public int Num1{get; set;}
public int Num2{get; set;}
}
Ans) DataMember
Peter is creating service using WCF.He wants to know which contract is used for describing complex
types like classes created to represent information like Employee,Customer etc.Kindly suggest peter in
identifying the suitable contract?
Ans) Data Contract , Message Contract
which of the following Asset class method is used to check whether the Add method works correctly
when the value is passed?
Ans. AreEqual() (checked)