What is the lifespan for items stored in ViewState?

Select Answer:

 1. Item stored in ViewState exist for the life of the current page

 2. Item stored in ViewState exist for the life of the current Session

 3. Item stored in ViewState exist for the life of the current Applicaiton

 4. Item stored in ViewState exist for the life of the current configuration

1 Answer

Answer :

1. Item stored in ViewState exist for the life of the current page

AS any web application works on request and response basis ,so on every post backs, The data in control gets lost. To retain page data on post backs, Asp.Net uses ViewState. It holds the data in hidden form fields and get fills the control with data. The life cycle of the view state exist for life of current running page only. 

Related questions

Description : What si the difference between interface and abstractclass Select Answer:  1. interface contain only methods  2. we can't declare a variable for interface  3. interface contain only events  4. None  5. All

Last Answer : Ans : 2 The only Difference between Interface and Abstract class is we can declare a variable in abstract class but we can't declare in variable interface

Description : Which one of the following tools is used to view the metadata information contained in a .NET assembly? Select Answer:  1. al.exe  2. ilasm.exe  3. vbx.exe  4. csc.exe  5. ildasm.exe

Last Answer :  5. ildasm.exe

Description : Explain how to retrieve information from the configuration file at run time. How would you store information in the configuration file at design time?

Last Answer : You must first create an instance of AppSettingsReader to read the configuration file. You can then call the GetValue method to read values represented in the configuration file. To add configuration ... used to retrieve the entry. The value can be changed between executions of the application.

Description : Where are shared assemblies stored ?

Last Answer : Answer: Global assembly cache.

Description : Where are shared assemblies stored?

Last Answer : The GAC  

Description : Where are private assemblies stored? 

Last Answer : Same folder as exe 

Description : Is a struct stored on the heap or stack? 

Last Answer : Stack

Description : _________ is the energy stored within a body or substance by virtue of the activity and configuration of its molecules.  a. Internal Energy  b. External Energy  c. Kinetic Energy  d. Potential Energy

Last Answer : Internal Energy

Description : Explain how to convert data in legacy code page formats to the Unicode format.

Last Answer : You can use the Encoding.Convert method to convert data between encoding types. This method requires instances of both encoding types and an array of bytes that represents the data to be converted. ... GetBytes method and can convert an array of bytes back to chars with the Encoding.GetChars method.

Description : Which mobile metrics are used to evaluate app engagement  page views  revenue and sales  downloads and users  monthly active users, session length and events

Last Answer :  monthly active users, session length and events

Description : Keyword scope" is associate with which type of scope in Web analytics?  Session scope  Visitor scope  Page Scope  None of the above

Last Answer :  Page Scope

Description : In the following table, every item on the left side can match with any number of items on the right hand side. Select all those.

Last Answer : In the following table, every item on the left side can match with any number of items on the right hand side. Select all those.

Description : What are the four major parts of a SQL SELECT statement? Briefly describe each one.

Last Answer : The four major parts of a SELECT statement are SELECT, FROM, WHERE, and ORDER BY. SELECT specifies the fields to be retrieved. FROM specifies the table from which the records are to be retrieved. WHERE ... the records to be retrieved, and ORDER BY allows you to specify a sort order for the records.

Description : Which of the following is not a Configuration Management  Activity? a) Configuration item identification b) Risk management c) Release management d) Branch management

Last Answer : b) Risk management

Description : Which of the following statement is not correct with reference to cron daemon in UNIX O.S? (A) The cron daemon is the standard tool for running commands on a predetermined schedule. (B) It starts ... command lines and the times at which they invoked. (D) Crontab for individual users are not stored.

Last Answer : (D) Crontab for individual users are not stored.

Description : The lifespan of White Blood Cells is ----- day(s)? A. 1 – 5 days B. 3 – 7 days C. 4 – 8 days D. 5 – 21 days (Answer)

Last Answer : D. 5 – 21 days (Answer)

Description : The lifespan of Red Blood Cells is ----- days? A. 60 B. 120 (Answer) C. 180 D. 240

Last Answer : B. 120 (Answer)

Description : The kernel configuration file is normally changed only when you wish to: A. Produce a smaller, more efficient kernel by removing unneeded items. B. Add a new device C. Modify a system parameter D. all of the above.

Last Answer : D. all of the above.

Description : The Provision and Management of a controlled library containing all the configurations items is called as a) Configuration Control b) Status Accounting c) Configuration Identification d) Configuration Identification

Last Answer : The provision and management of a controlled library containing all the configuration items is called Configuration Management. Configuration Management is the process of identifying, organizing, and ... Verification and Audit (ensuring that the configuration items are complete and accurate).

Description : .Match items in column I with those in columnII. Column I Column II (A) Peritrichous flagellation (J) Ginkgo (B) Living fossil (K) Macrocystis (C) Rhizophore (L) Escherichia coli (D) Smallest flowering plant (M) Selaginella (E) Largest perennial ... - M; E - J (d) A - J; B - K; C - N; D - L; E - M

Last Answer : (a) A - L; B - J; C - M; D - N; E - K

Description : A programmer is writing a system that is intended to be able to store large amounts of personal data. As the programmer develops the data system, which of the following is LEAST likely to impact the ... of the information for analysis. D. The frequency of a particular item occurring in a data set.

Last Answer : D. The frequency of a particular item occurring in a data set.

Description : Does any food item exist that has a scoville score less then zero?

Last Answer : Pretty sure that the Scoville refers exclusively to the capsaicin content, so, by definition, no, as the complete lack of capsaicin in any food that does not have any to begin with, removes it from consideration altogether.

Description : What food item or items should we not store in a plastic peanut butter jar, for example?

Last Answer : Peanut butter. It goes south too fast. Also mayo.

Description : How often do workers sign out items, or modify a product for themselves before putting the item on shelf?

Last Answer : Apartment managers sometimes get free cable.

Description : When you need an item for your home, what's your favorite online place to shop and what's your favorite "bricks and mortar" store to shop for such items?

Last Answer : I head to Sears.

Description : What item/items in someones shopping cart would make you want them?

Last Answer : That is so you!! Cat food, dog food, deodorant, body spray, peach juice. Man that’s random, all I could think of now!

Description : When you're on line at a store and you have 10+ items, and you notice that the person behind you has only one item, do you let that person "cut" you?

Last Answer : Do you mean cut in front of you in the line? If so, always. However, I would not be happy to let a person cut me.

Description : If you find yourself at a McDonald's restaurant, what item or items on the menu are you most likely to order?

Last Answer : twin ice cream and french fries :)

Description : What is international trade? Name two major item of export and two items of import to India? -Geography

Last Answer : The term trade is referred to the exchange of goods among the people, states and countries and exchanges take place in the markets. Thus, trade between the two countries is called International ... of export. Pearls and precious stones and inorganic chemicals are two items of import to India.

Description : An item is made from lead blanks in a lathe shop. Each blank suffices for 1 item. Lead shavings accumulated for making 6 items can be melted and made into a blank. How many items can be made from 36 blanks? -Riddles

Last Answer : From 36 blanks there are 36 items made. The lead shavings are enough to make 6 blanks. Which make 6 more items. But don't stop here. The new shavings are good for 1 more item. Total: 43.

Description : Match the items of Column I with item of Column II and assign the correct code.

Last Answer : Match the items of Column I with item of Column II and assign the correct code. A. `{:(,A,B,C,D),(,2,3,4,1):}` ... }` D. `{:(,A,B,C,D),(,4,5,3,2):}`

Description : Match the items of Column I with item of Column II and assign the correct code.

Last Answer : Match the items of Column I with item of Column II and assign the correct code. A. `{:(,A,B,C,D),(,3,4,2,1):}` ... }` D. `{:(,A,B,C,D),(,1,2,3,4):}`

Description : Match the items of Column I with item of Column II and assign the correct code.

Last Answer : Match the items of Column I with item of Column II and assign the correct code. A. `{:(,A,B,C,D),(,4,2,3,1):}` ... }` D. `{:(,A,B,C,D),(,3,4,5,1):}`

Description : Which of the following items is a major item of Indian export? (1) Computer chips (2) Potato chips (3) Textile garments (4) Car engines

Last Answer : (4) Car engines Explanation: India exports were worth 23698 Million USD in September of 2012. Historically, from 1994 until 2012, India Exports averaged 8603.18 Million USD reaching an all time high ... . India's main export partners are European Union, United States, United Arab Emirates and China.

Description : With respect to the concept of materiality, which one of the following statements is correct? a. Materiality is a matter of professional judgment. b. Materiality is determined by reference to AASC's ... depends only on the peso amount of an item relative to other items in the financial statements

Last Answer : Materiality is a matter of professional judgment

Description : Which of the following food item has been exempted from labeling? i. On the spot food like bakery items ii. Ready to eat food iii. Food served on plane/ vending machine iv. All of the mentioned

Last Answer : READY TO EAT FOOD

Description : Which of the following food item has been exempted from labeling? i) On the spot food like bakery items c) Ready to eat food j) Food served on plane machine d) All of the above

Last Answer : ready to eat food

Description : Which of the following items is a major item of Indian export? (1) Computer chips (2) Potato chips (3) Textile garments (4) Car engines

Last Answer : Car engines 

Description : How would you ensure that all relevant registry entries were removed in the event that installation of your application failed?

Last Answer : You can ensure that registry entries are removed, as well as perform any other “clean-up” tasks, by creating an Installer class and writing the appropriate code in the Rollback event handler. Then create a new Custom Action and set the InstallerClass, and EntryPoint properties to appropriate values.

Description : Describe a general strategy for creating a setup project that terminates installation if a specific file is not already installed on the target machine.

Last Answer : First, create a file search to search the file system for the specific file. Then create a launch condition to evaluate the results of the search. You can connect the launch condition to ... in the search's Property property in the expression specified by the launch condition's Condition property. 

Description : What is the purpose of a bootstrapper application? When do you not need to create one?

Last Answer : A bootstrapper application automatically detects if Windows Installer is installed on the target machine. If Windows Installer is not present, it installs Windows Installer before proceeding with the rest ... Installer 1.5 already installed) or have had Microsoft Installer 1.5 installed previously.

Description : What is a native image? How do you create one?

Last Answer : A native image is a precompiled version of a .NET assembly. You can create a native image of your application by using the Ngen.exe utility.

Description : Describe XCOPY deployment. Under what conditions is it useful? When can it not be used?

Last Answer : XCOPY deployment is a simple method of deployment where the DOS command XCOPY is used to copy the application directory and any subdirectories to the target machine. You can use XCOPY ... an application requires a more complex deployment or references shared assemblies, you cannot use XCOPY.

Description : What is a shared assembly? How would you create one?

Last Answer : An assembly is an assembly of which only a single copy is installed per machine. This copy can be shared by multiple applications. To make an assembly a shared assembly, you must first assign it a strong name, and then install it to the global assembly cache.

Description : Briefly highlight the differences between imperative and declarative security as they pertain to code access security.

Last Answer : Imperative security is implemented by calling methods of Permission objects in code at run time. Declarative security is configured by attaching attributes representing permissions to classes ... request assembly-wide permissions using the Assembly (assembly) directive with declarative security.

Description : Describe how to use code to retrieve resources at run time.

Last Answer : You must first create an instance of the ResourceManager class that is associated with the assembly that contains the desired resource. You can then use the GetString method to retrieve string resources or the GetObject method to retrieve object resources.

Description : Describe how to sign your assembly with a strong name. Why would you want to do this?

Last Answer : To sign your assembly with a strong name, you must have access to a key file or create one with the strong name utility (sn.exe). You then specify the key file in the AssemblyInfo file and ... identity, a strong name is required if you want to install your assembly to the Global Assembly Cache.

Description : Explain how to use the PrintPreviewDialog control to display a preview of a printed document before it is printed.

Last Answer : You display a preview of a printed document with the PrintPreviewDialog control by first setting the PrintDocument property of the PrintPreviewDialog instance to the PrintDocument you want to preview, then by calling the PrintPreviewDialog.Show command to display the dialog box.