You work as software decveloper at HUI IT Center. You need to develop a Windows
form that provides online help for users. You want the help function to be available when press
the F1 key.
Help text will be displayed in a pop-up window for the text box that has focus. To implement
this functionality, you need to call a method of the HelpProvider control and pass the text box
and the help text. What should you do?
A -
SwtShowHelp
B -
SetHelpKeyword
C -
ToString
D -
SetHelpString
2-
You want to make a listbox. The user can choose many item from this listbox. Select
the property and value for listbox to do that?
A -
MultiSelect=true
B -
SelectionMode=Multi
C -
SelectionMode=MultiExtended
D -
MultiSelect=MultiExtended
3-
You want to change backcolor of form when user select color from listbox lst. Select
the best event to do that?
A -
private void Ist_Selected(object sender, EventArgs e) { //code to select and change forms backcolor }
B -
private void Ist_SelectedChanged(object sender, EventArgs e) { //code to select and change forms backcolor }
C -
private void Ist_SelectedIndexChanged(object sender, EventArgs e) { //code to select and change forms backcolor }
D -
#
4-
You use Visual Studio .NET to create a Windows-based application that will track
testking sale. The applications main object is named myApp. The class is created by the
following definition:
public class myApp{
}
You write code that sets properties for the myApp class. This code must executed as soon as an
instance of the myApp class is created.
Now you need to create a procedure in which you can place your code. Which code segment
should you use?
A -
public myApp()
B -
public void myApp()
C -
public myApp New()
D -
public myApp myApp()
5-
You are preparing a localized version of a Windows Form named CertkillerLocal.
Users of CertkillerLocal speak a language that prints text from right to left. #
What should you do?
A -
Set the RightToLeft property of the form to Yes
B -
Set the RightToLeft property of each control on the form to Yes
C -
Set the Localizable property of the form to true
D -
Set the Language property of the appropriate language
6-
You develop a Windows-based application that contains a class named Contact # You
must ensure that your application calls HandleContactSaved whenever the ContactSaved event is
fired for any of the Contact objects. What should you do?
A -
Add each Contact Object to the Contacts array as it is created Assign HandleContactSaved to the Handle property of the HandleRef structure
B -
Use the WithEvents keyword declare each Contact object Add each Contact Object to the Contacts array as it is created
C -
Add each Contact Object to the Contacts array as it is created Call the AddHanlder statement and pass the new Contact object and the address of HandleContactSaved
D -
Add each Contact object to the Contacts array as it is created Add the Handles keyword to HandleContactSaved
7-
You develop a Windows-based application that contains a form named
ContactSertkiller. You need to write code to initialize all class-level variables ContactCertkiller
as soon as ContactCertkiller is instantiated. You will place your code in a public procedure in the
ContactCertkiller class. Which public procedure should you ise?
A -
Initialize
B -
Create
C -
New
D -
Load
8-
You use Visual Studio .NET to create a accounting application called
CertkillerAccounting, which includes a function #
What should you do?
A -
Use the Local window
B -
From the Command window, print the contents of each variable that you want to examine by using the following code segment: ?
C -
Use the Autos window
D -
Use the QuickWatch window
9-
You use Visual Studio .NET to create a component named Request. This compiment
includes a method named AcceptCKRequest, which to process new user requests for services.
AcceptCKRequest calls a private function named Validates.#
What should you do?
A -
Use the following code segment in AcceptCKRequest: this.Validate():
B -
Use the following code segment in AcceptCKRequest: try{ this.Validate(); } catch(Exception ex){ throw ex: }
C -
Use the following code segment in AcceptCKRequest: try{ this.Validate(); } catch(Exception ex){ throw new Exception("Exception in AcceptCKRequest",ex): }
D -
None of the above
10-
You develop a kiosk application TestKingKiosk that enables users to register for an e-mail account in your domain.
What should you do?
A -
Change the code textName_Leave to ensure that only the first 20 characters of textName.Text are used
B -
Use an ErrorProvider control to prompt a revision if a user enters a name longer than 20 characters