.NET and ASP.NET Programming Fundamentals

Covers .NET Framework, Windows Forms, ASP.NET Web Controls, and basic SAS programming concepts

20 Questions Published

Questions

Question 1 True/False

trim(string) - returns string with leading blanks.

  1. True
  2. False
Question 2 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.

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

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)

  1. options yearcutoff=950;
  2. options yearcutoff=1950;
  3. options yearcut=1950;
  4. All of the above
Question 4 Multiple Choice (Single Answer)

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)

  1. options yearcutoff=950;
  2. options yearcutoff=1950;
  3. options yearcut=1950;
  4. All of the above
Question 5 Multiple Choice (Single Answer)

The interface used by ASP.Net to create Unique Id's?

  1. AppDomainsetup
  2. System.UI.Naming.Container
  3. IAsyncResult
  4. customFormatter
Question 6 Multiple Choice (Single Answer)

Select the caching type supported by ASP.Net ?

  1. Output Caching
  2. DataCaching
  3. Both A & B
  4. None of the above
Question 7 Multiple Choice (Single Answer)

Select the validation control used for "PatternMatching" ?

  1. FieldValidator
  2. RegularExpressionValidator
  3. RangeValidator
  4. PatternValidator
Question 8 Multiple Choice (Single Answer)

Who can access Session state variables

  1. All Users of an application
  2. A Single session
  3. All users within a single tunnel
  4. None
Question 9 Multiple Choice (Single Answer)

Select the type Processing model that asp.net simulate

  1. Event-driven
  2. Static
  3. Linear
  4. TopDown
Question 10 True/False

Web Controls Supports CSS

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

What is the default authentication mode for IIS

  1. Windows
  2. Anonymous
  3. Basic Authentication
  4. None
Question 12 Multiple Choice (Single Answer)

Which control supports paging ?

  1. Repeater
  2. Datagrid
  3. Both
  4. None
Question 13 Multiple Choice (Single Answer)

Select the control which does not have any visible interface ?

  1. Datalist
  2. DropdownList
  3. Repeater
  4. Datagrid
Question 14 Multiple Choice (Single Answer)

Which of the following is not a member of Response Object ?

  1. Clear
  2. Write
  3. Execute
  4. Flush
Question 15 Multiple Choice (Single Answer)

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?

  1. Application Domain.
  2. Enterprise
  3. Machine
  4. User
Question 16 Multiple Choice (Single Answer)

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.

  1. Use XCOPY to install the assembly in the global assembly cache.
  2. Use XCOPY to install the assembly in the Windows\Assembly folder.
  3. Create a strong name for the assembly.
  4. Recompile the assembly by using the Native Image Generator (Ngen.exe).
Question 17 Multiple Choice (Single Answer)

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.

  1. Use XCOPY to install the assembly in the global assembly cache.
  2. Use XCOPY to install the assembly in the Windows\Assembly folder.
  3. Create a strong name for the assembly.
  4. Recompile the assembly by using the Native Image Generator (Ngen.exe).
Question 18 Multiple Choice (Single Answer)

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?

  1. SetShowHelp
  2. SetHelpString
  3. SetHelpKeyword
  4. ToString
Question 19 Multiple Choice (Single Answer)

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?

  1. Set the RowFilter property of the DataView object to "BackOrder = True".
  2. Set the RowStateFilter property of the DataView object to "BackOrder = True".
  3. Set the Sort property of the DataView object to "BackOrder = True".
  4. Set the ApplyDefaultSort property of the DataView object to True.
Question 20 Multiple Choice (Single Answer)

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?

  1. In the BeginPrint event, set the HasMorePages property of the PrintEventArgs object to True.
  2. In the EndPrint event, set the HasMorePages property of the PrintEventArgs object to True.
  3. In the PrintPage event, set the HasMorePages property of the PrintPageEventArgs object to True.
  4. In the QueryPageSettings event, set the HasMorePages property of the QueryPageSettingEventArgs object to True.