Briefly summarize the similarities and differences between arrays and collections.

1 Answer

Answer :

Arrays and collections allow you to manage groups of objects. You can access a particular object by index in both arrays and collections, and you can use For Each…Next (foreach) syntax to iterate through the members of arrays and most collections. Arrays are fixed in length, and members must be initialized before use. Members of collections must be declared and initialized outside of the collection, and then added to the collection. Collections provided in the System.Collections namespace can grow or shrink dynamically, and items can be added or removed at run time.

Related questions

Description : What are the two kinds of multidimensional arrays? Briefly describe each.

Last Answer : Multidimensional arrays can be either rectangular arrays or jagged arrays. A rectangular array can be thought of as a table, where each row has the same number of columns. Rectangular arrays with ... dimensional jagged array is like a table where each row might have a different number of columns.

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 : Define Jagged Arrays in C#?

Last Answer : If the elements of an array is an array then it’s called a jagged array. The elements can be of different sizes and dimensions.

Description : Briefly describe the five accessibility requirements of the Certified for Windows logo program.

Last Answer : The five requirements are o Support standard system settings. This requires your application to be able to conform to system settings for colors, fonts, and other UI elements. o Be ... information by sound alone. This requirement can be met by providing redundant means of conveying information.

Description : Briefly describe how to use the PrintDocument component to print a document. Discuss maintaining correct line spacing and multipage documents.

Last Answer : The PrintDocument class exposes the Print method, which raises the PrintPage event. Code to render printed items to the printer should be placed in the PrintPage event handler. The PrintPage event ... been printed, you must incorporate all logic for printing multiple pages into your event handler.

Description : Briefly describe the three types of user-developed controls and how they differ.

Last Answer : The three types of user-developed controls are inherited controls, user controls, and custom controls. An inherited control derives from a standard Windows Forms control and inherits the ... inherit only generic control functionality. All specific functionality must be implemented by the developer.

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 : Briefly describe an XmlDataDocument and how it relates to a DataSet.

Last Answer : An XmlDataDocument is an in-memory representation of data in a hierarchical XML format. Each XmlDataDocument is synchronized with a DataSet. Whenever changes are made to one object, the other is instantly updated. Thus, you can use the XmlDataDocument to perform XML manipulations on a DataSet.

Description : Briefly discuss the advantages and disadvantages of using typed DataSet objects.

Last Answer : Typed DataSet objects allow you to work with data that is represented as members of the .NET common type system. This allows your applications to be aware of the types of data returned in a DataSet and serves ... if you do not know the structure of your data, and can be used with any data source. 

Description : Briefly contrast connected and disconnected data access in ADO.NET.

Last Answer : In ADO.NET, connected data access is available through the DataReader, which is a lightweight class designed to provide very fast and efficient data access. It is severely limited, however, in ... to update the database and keeping the connection open just long enough to execute those commands.

Description : Briefly explain encapsulation and why it is important in object-oriented - programming.

Last Answer : Encapsulation is the principle that all of the data and functionality required by an object be contained by that object. This allows objects to exist as independent, interchangeable units of functionality without maintaining dependencies on other units of code.

Description : Briefly explain how to convert a string representation of a number to a numeric type, such as an Integer or a Double.

Last Answer : All numeric data types have a Parse method that accepts a string parameter and returns the value represented by that string cast to the appropriate data type. You can use the Parse method of each data type to convert strings to that type.

Description : Briefly describe how a class is similar to a structure. How are they different?

Last Answer : Both classes and structures can have members such as methods, properties, and fields, both use a constructor for initialization, and both inherit from System.Object. Both classes and structures can be ... are value types, and the memory that holds structure instances is allocated on the stack. 

Description : Briefly explain the difference between Public (public), Friend (internal), and Private (private) access levels as they apply to user-defined types and members.

Last Answer : In user-defined types, Public (public) classes can be instantiated by any element of the application. Friend (internal) classes can be instantiated only by members of the same assembly, and Private ( ... the same assembly, and Private (private) members can be accessed only from within the type. 

Description : Briefly describe what members are, and list the four types of members.

Last Answer : Members are the parts of a class or a structure that hold data or implement functionality. The primary member types are fields, properties, methods, and events.

Description : Briefly describe how garbage collection works.

Last Answer : The garbage collector is a thread that runs in the background of managed .NET applications. It constantly traces the reference tree and attempts to find objects that are no longer referenced. When a nonreferenced object is found, its memory is reclaimed for later use.

Description : Briefly explain what is meant by a reference type and a value type.

Last Answer : A value type holds all of the data represented by the variable within the variable itself. A reference type contains a reference to a memory address that holds the data instead of the actual data itself. 

Description : Briefly describe the major components of the .NET Framework and describe what each component does.

Last Answer : The .NET Framework consists of two primary parts: the common language runtime, which manages application execution, enforces type safety, and manages memory reclamation, and the .NET base class library, which consists of thousands of predeveloped classes that can be used to build applications.

Description : List the differences in C# 2.0. 

Last Answer : • Generics • Iterators • Partial class definitions • Nullable Types • Anonymous methods • :: operator • Static classes static class members • Extern keyword • Accessor accessibility • Covariance and Contravariance • Fixed size buffers • Fixed assemblies • #pragma warning

Description : Define what are the differences between static, public and void in C#?

Last Answer : 1. Static classes/methods/variables are accessible throughout the application without creating an instance. The compiler will store the method address as an entry point. 2. Public methods or variables are accessible ... 3. The void is used for the methods to indicate it will not return any value.

Description : List out the differences between Array and ArrayList in C#?

Last Answer : Array stores the values or elements of the same data type but ArrayList stores values of different data types. Arrays will use the fixed length but ArrayList does not use fixed length like an array.

Description : When you compare the US to the UK, what significant similarities or differences do YOU note?

Last Answer : Well, the biggest difference is, of course, the language. In England, they speak correct English.

Description : What are the differences , and similarities, between a role playing games pub and real life?

Last Answer : Well, the alcohol in an actual pub will get you actually drunk. Also, I’d bet that vague smell of urine and vomit doesn’t exist in a role-playing pub.

Description : What are the differences and similarities between Communism and Marxism?

Last Answer : answer:Both came out of the head of Karl Marx-similarity Marxism is a term to refer to an abstraction - the philosophical system created by Karl Marx. Communism is a term to refer to a ... - difference. Example- Christianity as an abstract notion, Catholicism as a form of practice of Christianity.

Description : What similarities and what differences are there between us and the Romans?

Last Answer : The similarities are: – corrupt political system – military overspending and over expansion – reliance on quasi-slave labour

Description : Could you, for once and for all, explain the differences (and possibly similarities) between Irony, Sarcasm and Cynicism?

Last Answer : answer:Sarcasm is something said sharply or bitterly. Cynicism is the doctrine of the Cynics. Irony is to say something and mean the opposite.

Description : Similarities and differences between the causes of wwi and wwii?

Last Answer : Homework question?

Description : Humans and mammals such as monkeys and apes have certain similarities in behaviour and anatomy behaviour and (b) anatomy. Are there any differences that are noteworthy? -History

Last Answer : Similarities (a) Behaviour: Humans Monkeys and Apes 1. Humans can climb on trees. Monkeys and apes can also climb on trees. 2. Mothers give birth to their young ones. Monkeys also give birth to ... also vertebrates. 2. Humans have two feet and two hands. 2. Monkeys and apes are also quadrupeds.

Description : Compare the drainage system in your locality with that of the cities mentioned in the lesson. What similarities and differences do you notice? -History

Last Answer : In our locality, the drainage system includes pipes and drains. In the lesson, it is mentioned that irrigation projects/things that were built during the time (which we have studied in the ... have been survived long. We use separator and filters with modem technology which was not there earlier

Description : 6. Make two columns in your notebook. In the left hand column, list the foods hunter-gatherers ate. In the right hand column, list some of the foods you eat. Do you notice any similarities/differences. -History

Last Answer : Differences between the two eating habits: Today, we largely eat processed and cooked food, whereas the early people did not cook their food. They ate everything raw.

Description : What are the similarities and differences between salt and sugar?

Last Answer : * Salt granules are rougher and exfoliate more vigorously whether sugar granules are softer on the skin and their molecules are more gentle then salt. * Salt are more abrasive while sugar is less abrasive.

Description : What are some similarities and differences between Rosh Hashana and Id al-Adha?

Last Answer : Need answer

Description : What were the similarities and differences between the colonies of acadia and new France?

Last Answer : Need answer

Description : What similarities and differences does Kennedy see between the world now and the world as it was during the American revolution?

Last Answer : both struggling, the difference was that the world during the revolutionary war was struggling for independence while the world today struggles to preserve it.

Description : What are the similarities and differences between Shakespeare's Globe Theatre and the original Globe built in 1599?

Last Answer : Shakespeare's Globe Theatre is a modern theatre which opened in 1996, It attempts to be a replica of the original Globe built almost 400 years before and looks a lot like it: both theatres were built with ... was only 14 years old when it burned down. The second Globe (built in 1614) lasted longer.

Description : What is the mein Similarities and differences Between Head Office And Branch?

Last Answer : A head office is like the hub of a bicycle wheel. Radiating out from the hub, the spokes lead outwards to the rim. Along the rim will be the branches of the business. Branches that ... nation wide or even internationally. But all branches are governed and directed by the head office management.

Description : What are some similarities and differences between the Indus Valley civilization and other ancient river Valley civilization?

Last Answer : Feel Free to Answer

Description : What are the similarities and differences between how both producers and consumer use money?

Last Answer : Feel Free to Answer

Description : What are some similarities and differences between quartic and cubic functions?

Last Answer : The similarities are that they are polynomial functions and therefore continuous and differentiable.A real cubic will has an odd number of roots (and so must have a solution), a quartic has an even number of roots and so may have no solutions.

Description : What are the similarities and differences between occupation activity and tasks?

Last Answer : What is the answer ?

Description : What are the differences and the similarities between the onion cells and the elodea cells?

Last Answer : What is the answer ?

Description : What are Similarities and differences between sclc and sncc?

Last Answer : What is the answer ?

Description : What are some differences and similarities between a modern elaphant and a phiomia?

Last Answer : Need answer

Description : What are the similarities and differences between a third degree burn and a third degree decubitus ulcer (Consider the cause tissues affected and treatments)?

Last Answer : Need answer

Description : What is the mein Similarities and differences Between Head Office And Branch?

Last Answer : A head office is like the hub of a bicycle wheel. Radiating out from the hub, the spokes lead outwards to the rim. Along the rim will be the branches of the business. Branches that ... nation wide or even internationally. But all branches are governed and directed by the head office management.

Description : What are the similarities and differences between the Samsung Android phone and an iPhone?

Last Answer : The Samsung has a larger screen and the battery lasts longer but the iPhone has an Excel File Viewer and Copy and Paste capabilities. Both have similar features including Speed and Response time, Cameras, Telephone capability and 4G LTE Capability.

Description : Compare and contrast Lamarck’s and Darwin’s theories of evolution: What are the similarities What are the differences?

Last Answer : Lamrack:Individuals change due to mutation (born with changes)Nature favors those best suited to survive and reproduceDarwin's:Change happens slowly over many generations.Common:Any individual can change responding to environmentAcquired traits can be passed on to offspring

Description : What similarities and differences do prokaryotes have with modern-day green plants?

Last Answer : Prokaryotes are similar to green plants because, like plants, prokaryotes perform basic life functions, including reproduction, digestion, and respiration. As far as differences, prokaryotes have one cell, while green plants are multicellular. Plants are also eukaryotes—they have a nucleus.

Description : What are the morphological similarities and differences between nematodes and annelids?

Last Answer : Nematodes, like annelids, have a cylindrical elongated body. Annelids differentiate from nematodes by presenting a segmented body (body divided into metameres) and so they are called segmented worms.

Description : Which of these statements apply to Strategic Groups. A. Organizations within an industry following similar strategies or competing on similar bases. B. Examples, in grocery retailing are supermarkets ... the similarities and differences in bases of segmentation D. All of these options apply

Last Answer : All of these options apply