answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Name an instance when you should credit the source?

Whenever you copy code you should credit the author, unless it is stated in whatever license he released his code with that this is not necessary.

Deference between prototype and incremental model?

In incremental model the real product is designed, implemented, integrated and tested as a series of incremental builds. while

In prototype model the prototype (not the real product) is designed, implemented, integrated and tested as a series of incremental builds

What would you have instead of computers?

A pencil, paper, a typewriter, a filing cabnet, everything was wriiten before computers or typed by atypewriter.

How do you pass a one-dimensional array to user-defined functions?

In C++ you would pass a std::array if the array is fixed-length, otherwise you'd use a std::vector. Most object oriented languages will provide some method of passing a self-contained array object to a function.

In C and other non-object oriented languages you would pass a reference or pointer to the start address of the array along with a variable indicating the number of valid elements within the array. The array type will determine the size of each element.

What GPA and SAT scores are required to get into UCI?

SAT doesn't really matter. All UC's admissions are done on their own scale. Its called a UC Score. Each variable is given certain number of creds. Like getting a 3.5 means you need to get 143 UC score cred to be eligible. If you want to get in. I would say you should have something like a 3.8 to 4.0 weighted, and then between 18 and 1900 SAT. You also want to get at least 500 on all your SATII's though getting 600 would be better. My stats right now are pretty low too, but hey, what can we do. I have something like a 4.2 GPA, 1700 SAT, and 600/630 SATII's. My chances are good because I have a high GPA, but slim because Low SAT score conversion. So just get into the 1900 and your set.

What are external variables?

The concept of external variable has different meanings from language to language. The primary context in which the phrase is used is in the C and C++ programming languages. The concept is commonly incorrectly explained on the web. Please refer to a real c++ programming text for finality. In C and C++, keyword extern means either of two things, dependent on context. When applied to the declaration of a variable , extern tells the compiler that said variable will be found in the symbol table of a different translation unit. This is used to expose variables in one implementation file to a different implementation file. It is important to understand that the external declaration is not resolved by the compiler, but instead by the linker, meaning that extern is a legitimate mechanism to install modularity at the compiler level; if, for example, you create a debug and a release version of a library , you can switch between the two simply by loading one or the other, without recompiling either library or the things dependent thereupon. When applied to the instantation of a variable, extern promotes that variable into the symbol table of the translation unit. This is frequently misunderstood to mean that the variable is global; this is incorrect. The variable must already be global for externality to make sense. What this actually means is that the symbol may be referenced from other translation units. There must be a single implementation of the variable somewhere, marked extern (typically in the header,) for other translation units to refer to the variable. Unfortunately, externality is frequently misrepresented as an issue of scope; scope has nothing to do with externality. Scope is an issue of symbol availability and symbol conflict resolution not terribly unlike namespaces. Externs are always global, and thus scope is essentially a foreign concept. Never the twain shall meet. It is incorrect to say that variables in global scope must be externed within the scope of any function that depends upon those globals. Two important uses of externality are common: preventing circular references (in a fashion similar to the section declarations of languages like Pascal) and preventing compiled dependency chains. In the latter case, consider the example of a video game with a large amount of graphic resources. If the game code is portable, the author cannot rely on compiler extensions like binary inclusion, and therefore must convert their resources to arrays and compile them into the application from source. Because those resources are physically huge, compiling them can take a long time. If these resources are kept each in their own translation unit, however, and referenced as extern from other TUs, then when those other TUs are recompiled, the graphics are just re-linked, meaning they only need to be compiled the once. The effect described above can serve a similarly important role in breaking the recompile chain which otherwise would form from a huge stack of inclusions, by keeping things in separate TUs and therefore modular at the linker level. The more granular such distinctions are, the further compile times drop, and the lower dependencies between modules become; as such, extern is a tremendously important yet rather subtle tool for the modern C/C++ developer.

How many words are there in a 64 bit variable if a word is defined as 2 bytes?

Assuming a byte is 8 bits, then a 2 byte word is 16 bits. Therefore there are maximum of four 2 byte words in a 64-bit variable.

Note that a byte is defined as being the smallest unit of addressable storage. As such there is no official standard that dictates its length; it is entirely hardware dependent. Some systems can address at the bit level, thus a byte would literally be just 1 bit in length. Although most systems today use an 8-bit byte, this is not always the case thus the term octet was defined to specifically mean an 8-bit byte.

What is Object Oriented Programming without the principle of Polymorphism?

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.

Polymorphism is an important principle in OOP; it would be hard to imagine OOP without it. Other important principles are inheritance, and encapsulation.

What is the function of rombecephalon?

The hind brain is also called the rhombencephalon. It is the brain stem which provides the connection between the spinal cord and the rest of the brain.

Which language is source program written?

The Java language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities

Who is the auditor of Oracle Financial Services?

The auditor of OFS is S.R. Batliboi & Associates LLP, Chartered Accountants.

Disadvantage of data glove?

The main disadvantage is the enormous cost, depending on which features you require. Prices can range from about $500 upwards.

What does a Hindu Temple look like?

Go here: http://www.sgpc.net/photo-gallery/index2.asp

What are the three types of programming errors?

Three types of errors you may encounter in a Java program in sequential order of realization are compile time errors, run time errors, and semantic errors.

Compilation errors occur when the program will not compile due to the compiler rejecting the compilation process for various reasons such as syntax errors or mismatched data types. Given your JDE, the compiler typically returns the reason it was rejected.

Run time errors occur while the program is running and the reasons are sometimes cryptic and slightly more difficult to find.

Semantic errors are logical errors that a programmer makes when writing the code for the program. These are most noticeable when the program is not doing what it is intended to do. Also, a study of the code can reveal the programmer's mistake.

Iam not finding any difference between sdlc and rad please explain?

The reason why you might not find differences in the sdlc and rad is because RAD is a more sped-up version of the SDLC. RAD is typically used in small to medium size projects, while the SDLC is generally used for large projects. Another difference is that in the SDLC, one can control the scope creep of the project, whereas that is very limited when one implements RAD because you give it up for faster implementation times. In RAD you have alot of feedback from the user to refine the program more to the aspects of the user, whereas you dont get the same user input in the SDLC. This feedback loop is another reason that RAD is sometimes chosen over the SDLC