0

programming languages Online Quiz - 342

Description: programming languages Online Quiz - 342
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

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


Correct Option: A

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


Correct Option: B

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

  1. AppDomainsetup

  2. System.UI.Naming.Container

  3. IAsyncResult

  4. customFormatter


Correct Option: B

Select the caching type supported by ASP.Net ?

  1. Output Caching

  2. DataCaching

  3. Both A & B

  4. None of the above


Correct Option: C

AI Explanation

To answer this question, you need to understand the caching types supported by ASP.Net. Let's go through each option to understand why it is correct or incorrect:

Option A) Output Caching - This option is correct. Output caching is a caching technique in ASP.Net that allows you to cache the output of a web page or user control. It can improve the performance of your application by serving cached content instead of generating it dynamically for each request.

Option B) Data Caching - This option is incorrect. There is no specific caching type called "DataCaching" in ASP.Net. However, you can use the ASP.Net Cache object or other caching mechanisms to cache data in your application.

Option C) Both A & B - This option is correct. ASP.Net supports both output caching and data caching. Output caching is used to cache the output of web pages or user controls, while data caching is used to cache data in your application.

Option D) None of the above - This option is incorrect. As explained above, ASP.Net supports both output caching and data caching, so the correct answer is not "None of the above".

The correct answer is C) Both A & B. This option is correct because ASP.Net supports both output caching and data caching.

Select the validation control used for "PatternMatching" ?

  1. FieldValidator

  2. RegularExpressionValidator

  3. RangeValidator

  4. PatternValidator


Correct Option: B

AI Explanation

To validate a pattern matching input, the correct validation control to use is the "RegularExpressionValidator."

Let's go through each option to understand why it is correct or incorrect:

Option A) FieldValidator - This option is incorrect because the FieldValidator control is used to check if a required field is filled or not. It does not validate pattern matching.

Option B) RegularExpressionValidator - This option is correct. The RegularExpressionValidator control is used to validate input against a specified regular expression pattern. It is commonly used to validate pattern matching for fields like email addresses, phone numbers, or zip codes.

Option C) RangeValidator - This option is incorrect. The RangeValidator control is used to validate if the input value falls within a specified range of values. It does not validate pattern matching.

Option D) PatternValidator - This option is incorrect. There is no validation control named PatternValidator in ASP.NET. The correct control for pattern matching validation is the RegularExpressionValidator.

The correct answer is B) RegularExpressionValidator. This option is correct because it is specifically designed to validate pattern matching using regular expressions.

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


Correct Option: B

Select the type Processing model that asp.net simulate

  1. Event-driven

  2. Static

  3. Linear

  4. TopDown


Correct Option: A

AI Explanation

To answer this question, you need to understand the different types of processing models.

Option A) Event-driven - This option is correct because ASP.NET simulates an event-driven processing model. In an event-driven model, the flow of execution is determined by events, such as button clicks or page load events. ASP.NET uses event handlers to respond to these events and execute the corresponding code.

Option B) Static - This option is incorrect. A static processing model refers to a model where the flow of execution is predetermined and does not change based on user actions or events.

Option C) Linear - This option is incorrect. A linear processing model refers to a model where the execution flow follows a linear sequence of steps, without the ability to handle events or respond to user actions.

Option D) TopDown - This option is incorrect. A top-down processing model refers to a model where the execution flow starts from the top and progresses downwards, without the ability to handle events or respond to user actions.

The correct answer is A) Event-driven. This option is correct because ASP.NET simulates an event-driven processing model, where the flow of execution is determined by events and event handlers are used to respond to these events.

Web Controls Supports CSS

  1. True

  2. False


Correct Option: A

AI Explanation

To answer this question, you need to understand web controls and CSS.

Web controls are components used in web development to provide interactive functionalities to websites. Examples of web controls include buttons, textboxes, dropdown menus, and checkboxes.

CSS (Cascading Style Sheets) is a style sheet language used to describe the presentation of a document written in HTML (Hypertext Markup Language). CSS allows developers to control the layout and appearance of web pages.

The statement "Web controls support CSS" is true. Web controls can be styled and customized using CSS. This means that you can apply CSS styles to web controls to change their appearance, such as their color, font, size, and positioning.

Therefore, the correct answer is A) True.

  1. Windows

  2. Anonymous

  3. Basic Authentication

  4. None


Correct Option: B

Which control supports paging ?

  1. Repeater

  2. Datagrid

  3. Both

  4. None


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of paging in web controls.

Option A) Repeater - This option is incorrect because the Repeater control does not support built-in paging. It is used to display data from a data source without any built-in pagination functionality.

Option B) Datagrid - This option is correct because the Datagrid control supports paging. It provides built-in pagination functionality, allowing you to display a subset of data at a time and navigate through different pages.

Option C) Both - This option is incorrect because only the Datagrid control supports paging. The Repeater control does not have built-in paging functionality.

Option D) None - This option is incorrect because the Datagrid control supports paging.

The correct answer is B. The Datagrid control supports paging, allowing you to display data in a paginated manner.

Select the control which does not have any visible interface ?

  1. Datalist

  2. DropdownList

  3. Repeater

  4. Datagrid


Correct Option: C

AI Explanation

To answer this question, we need to understand the different controls and their interfaces.

Option A) Datalist - This option is incorrect because a Datalist control provides a visible interface, usually in the form of a dropdown list, where users can select an option from a predefined set of values.

Option B) DropdownList - This option is incorrect because a DropdownList control provides a visible interface, usually in the form of a dropdown list, where users can select an option from a predefined set of values.

Option C) Repeater - This option is correct because a Repeater control does not have any visible interface. It is used to dynamically repeat a specified template for each item in a data source, but it does not provide any visible UI elements itself.

Option D) Datagrid - This option is incorrect because a Datagrid control provides a visible interface to display and manipulate tabular data. It typically includes features such as sorting, paging, and editing of data.

The correct answer is C) Repeater. This option is correct because the Repeater control does not have any visible interface.

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

  1. Clear

  2. Write

  3. Execute

  4. Flush


Correct Option: C

AI Explanation

To answer this question, we need to understand the concept of a "Response object" and the methods that can be performed on it.

Option A) Clear - This option is incorrect because the Clear method is commonly used to remove any previously set headers or content from the response object.

Option B) Write - This option is incorrect because the Write method is commonly used to write content to the response object.

Option C) Execute - This option is correct because the Execute method is not typically a member of the Response object. The Execute method is not a standard method that is commonly used to interact with the response object.

Option D) Flush - This option is incorrect because the Flush method is commonly used to send any buffered response data to the client.

The correct answer is C) Execute. This option is not a member of the Response object.

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).


Correct Option: C
  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).


Correct Option: C
  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.


Correct Option: C
- Hide questions