.NET and ASP.NET Programming Fundamentals
Covers .NET Framework, Windows Forms, ASP.NET Web Controls, and basic SAS programming concepts
Questions
trim(string) - returns string with leading blanks.
- True
- False
data check; set old; by id; if first.id and ^last.id; run; We can use the above code for finding the duplicate rows.
- True
- False
If you a variable containing data like,1984,00,1996,1945. Then which will be best option to make SAS read that variable properly(1984,2000,1996,1945)
- options yearcutoff=950;
- options yearcutoff=1950;
- options yearcut=1950;
- All of the above
If you a variable containing data like,1984,00,1996,1945. Then which will be best option to make SAS read that variable properly(1984,2000,1996,1945)
- options yearcutoff=950;
- options yearcutoff=1950;
- options yearcut=1950;
- All of the above
The interface used by ASP.Net to create Unique Id's?
- AppDomainsetup
- System.UI.Naming.Container
- IAsyncResult
- customFormatter
Select the caching type supported by ASP.Net ?
- Output Caching
- DataCaching
- Both A & B
- None of the above
Select the validation control used for "PatternMatching" ?
- FieldValidator
- RegularExpressionValidator
- RangeValidator
- PatternValidator
Who can access Session state variables
- All Users of an application
- A Single session
- All users within a single tunnel
- None
Select the type Processing model that asp.net simulate
- Event-driven
- Static
- Linear
- TopDown
Web Controls Supports CSS
- True
- False
What is the default authentication mode for IIS
- Windows
- Anonymous
- Basic Authentication
- None
Which control supports paging ?
- Repeater
- Datagrid
- Both
- None
Select the control which does not have any visible interface ?
- Datalist
- DropdownList
- Repeater
- Datagrid
Which of the following is not a member of Response Object ?
- Clear
- Write
- Execute
- Flush
Your company ABC Inc. standardizes on the .NET Framework as its software development platform. Subsequently, virus attacks cause your company to prohibit the execution of any applications downloaded from the Internet. You must ensure that all client computers on your intranet can execute all .NET applications originating from your company. You must also ensure that the execution of .NET applications downloaded from the Internet is prohibited. You must expend the minimum amount of administrative effort to achieve your goal. Which policy should you modify?
- Application Domain.
- Enterprise
- Machine
- User
You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside on the client computer when the application is installed. You must ensure that any future applications installed on the same computer can access the assembly. Which two actions should you take? (Each correct answer presents part of the solution.
- Use XCOPY to install the assembly in the global assembly cache.
- Use XCOPY to install the assembly in the Windows\Assembly folder.
- Create a strong name for the assembly.
- Recompile the assembly by using the Native Image Generator (Ngen.exe).
You use Visual Studio .NET to create an application that uses an assembly. The assembly will reside onthe client computer when the application is installed. You must ensure that any future applicationsinstalled on the same computer can access the assembly.Which two actions should you take? (Each correct answer presents part of the solution.
- Use XCOPY to install the assembly in the global assembly cache.
- Use XCOPY to install the assembly in the Windows\Assembly folder.
- Create a strong name for the assembly.
- Recompile the assembly by using the Native Image Generator (Ngen.exe).
You develop a Windows Form that provides online help for users. You want the help functionality to beavailable when users press the F1 key. Help text will be displayed in a pop-up window for the text boxthat has focus.To implement this functionality, you need to call a method of the HelpProvider control and pass the textbox and the help text.Which method should you call?
- SetShowHelp
- SetHelpString
- SetHelpKeyword
- ToString
You use Visual Studio .NET to develop a Windows-based application called ABCApp. Your application will display customer order information from a Microsoft SQL Server database. The orders will be displayed on a Windows Form in a data grid named DataGrid1. DataGrid1 is bound to a DataView object. The Windows Form includes a button control named displayBackOrder. When users click this button, DataGrid1 must display only customer orders whose BackOrder value is set to True. How should you implement this functionality?
- Set the RowFilter property of the DataView object to "BackOrder = True".
- Set the RowStateFilter property of the DataView object to "BackOrder = True".
- Set the Sort property of the DataView object to "BackOrder = True".
- Set the ApplyDefaultSort property of the DataView object to True.
You use Visual Studio .NET to create a Windows-based application. The application includes a form named TestKingProcedures (TKP). TKP allows users to enter very lengthy text into a database. When users click the Print button located on TKP, this text must be printed by the default printer. You implement the printing functionality by using the native .NET System Class Libraries with all default settings. Users report that only the first page of the text is being printed. How should you correct this problem?
- In the BeginPrint event, set the HasMorePages property of the PrintEventArgs object to True.
- In the EndPrint event, set the HasMorePages property of the PrintEventArgs object to True.
- In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to True.
- In the QueryPageSettings event, set the HasMorePages property of the QueryPageSettingEventArgs object to True.