answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Which arithmetic operator have highest precedence?

In all popular high-level programming languages, the order in which operators are interpreted ("operator precedence") is vital to ensuring that all compilers execute instructions in precisely the same manner, as the "order of operations" rule is vital in mathematics.

In the case of C and C++, arithmetic operators are executed prior to logic operators. For a detailed description of operator precedence, see the related links below.

Static RAM vs dynamic RAM?

1.4 times more expensive 2.Very low access time 3.Information stored as voltage level in a flip flop. 4.used in cache memory 5.high cost 6.Information stored on RS flip-flops 7.small storage capacity 1.looses its signal 1 becomes 0 2.periodic refreshing of memory is needed. 3.These are mostly made of capacitors. 4.Information is stored as a charge in the gate to substrate capacitance. 5.used in main memory 6.low cost 7.comparitively high storage capacity

Name of 3d triangle?

ether a triangular prisem or a pyramid

(sorry on spelling)

Wrong. If it has a triangle base it is a tetrahedron.

If it has a square base it is a pyramid

if it has two identical shapes on either ends (in this case triangles) and 5 rectangle faces

then it is a prism.

Technically a 3D prism is a tetrahedron

How much money can you earn working with computers?

In May 2004, U.S. computer systems analyst jobs paid $66,460 as the median annual salary. Annual salary was distributed as follows. * Ten percent paid more than $99,180 * Fifty percent paid between $52,400 and $82,980 * Ten percent paid less than $41,730 According to Robert Half International, 2005 starting salaries for systems analysts ranged from $61,500 to $82,500. According to the National Association of Colleges and Employers (NACE), 2005 starting salaries were from $44,417 to $62,727, depending on the degrees that systems analysts earned.

What are legal variable names and declarations in c and c plus plus?

Any name that is not a reserved word can be a legal variable, function or type name. All names must be alphanumeric, but they cannot begin with a digit. The C++ standard recommends that all user-defined names be written entirely in lower case with underscores for spaces. Some programmers prefer 'camel case' (such as PrintObject and MaxNumber), which was a popular convention amongst the Pascal programming community, however print_object and max_number are the C++ conventions. Names in all caps are typically reserved for macro definitions (which is effectively a separate language from C++ itself), while names with leading underscores should generally be avoided as this convention is utilised extensively within the standard library.

What are entitlement programs?

An entitlement program is a system set up by a government that pays or gives certain types of benefits to people who meet certain qualifications set up in the program. Examples are Social Security, Medicare, Medicaid, Section 8 Housing, Methadone Maintenance, etc. As long a person meets the qualifications set by the program, such as low to moderate household income levels or minimum age requirements, that person is entitled by law to the benefits provided by that program.

What is a booststrap program?

A bootstrap program is the small program that is executed by the BIOS when the computer powers on. All it does is find the kernel for an OS and loads it into memory, thereby starting the computer's operating system.

What is the benefit of partitioning your drive?

Partitioning allows you to create a logical separation between different operating systems and data.

For example, you could have a windows operating system on one partition, a Linux operating system on another partition, and your personal data (My Documents in windows and /home in Linux) on a third. This allows you to wipe one of your partitions clean and reformat without having to backup the data on the others (say for example, your windows install gets a virus).

What is the difference between an EXE and a DLL?

Dll make it more simple for u, exe's are executables, or applications while dll are resource files that executables usually depend on

AnswerA DLL so called Dynamic Link Library is a Library Class (In .NET its a Final result of a User Control or a Class designed) is a file that includes the Source code or the Callable functions that provide(s) service to the Application currently being executed.

An EXE is a Stand-alone Application that could be executed on any platform

An EXE is an Independent Application while DLL is a Dependent on the Application's Call and Utilise of the DLL so In Question.

An EXE has a dynamic access to any resource(s) of the Computer for ex. Printer, DMA, while DLL is / may alloted a fixed resource(s) to utiilse.

EXE makes use of DLLs to execute the Application, while DLLs are called by the EXEs.

As the name suggest, DLL is dynamically Loaded and Executed as and when necessary been called by the application, while EXE once called is loaded in the Memory while being Executed.

DLLs has to be registered Using regsrv32 utility, while EXE is not suppose to be registered.

DLLs are more efficient than EXE when the question is related to the Memory Utilization.

Majorly DLLs comprises of the Functions or Procedures designed by any Programming Language which is mainly considered as "PROCESSING PART", whereas EXE comprises of Graphical User Interface (GUI), the Events to perform Actions, utilizing the DLLs (Calling and Retrieving results through DLLs).

EXE may directly make use of OS while DLLs may or may not directly make use of OS.

What does artificial mean?

the things which are created by humans is called artificial things, example robots

What are the disadvantages of using layered approach?

Like peeling an onion, you will cry when you go through the layers!

Each layer has its own functionality and the interfaces between adjacent layers. It would be necessary to construct and interpret these in-coming and out-going requests to accept and pass onto the next layer, and hence adding some storage and processing time to the request - less efficient.

What is the difference between eeprom and flash?

A flash drive is a storage device that uses flash memory rather than conventional spinning platters to store data.

Random access memory (RAM) is a type of computer data storage. Today it takes the form of integrated circuits that allow the stored data to be accessed in any order, i.e. at random. The word random thus refers to the fact that any piece of data can be returned in a constant time, regardless of its physical location and whether or not it is related to the previous piece of data.

How do you design and implement an application that determines and prints the number of odd even and zero digits in an integer value read from the keyboard?

Firstly you would need to get the user input and initialize some variables (This is all done in C#):

string text = Console.ReadLine();

int numberOfEven = 0;

int numberOfOdd = 0;

int numberOfZero = 0;

int number = 0;

Then you would need to loop through the string to see for the odd and even numbers:

while(number < text.Length) // Loops through how many times there are // numbers in the string

{

if (text[number] 0) // Just like the one before, checks if it is // odd

{

numberOfOdd ++;

}

number ++;

}

And you can print off each of the integers to get how many evens, odds and zeros there are.

What is language in different languages?

The grammar, which in linguistics encompasses the pronunciation, orthography (spelling), syntax (word order), morphology (the inflections such as plural, diminutive, etc...). Also where it is spoken, by how many people, you can really give an endless list of differences. Of course one obvious difference is the vocabulary/lexicon, the list of words.

What are those languages under in object oriented programming?

Most modern programming languages have some support for object-oriented programming. In some (such as Java), it is obligatory - you have to write your code in classes. In others - such as JavaScript or PHP - it is optional, meaning that you can write programs the old-fashioned way (procedural programming).

Why is so much attention today focused on object-oriented programing in general and c plus plus in particular?

Actually, there is not that much attention today paid to object-oriented programming. It is not a new technology. It is more than 15 years old, and the design paradigm of object-oriented design and object-oriented programming is relatively well established.

Where the attention today is focused is more on multi-threaded programming. The reason for this is that today's processors are approaching the point where Moore's Law is starting to flatten out, i.e. we are approaching the limits of performance gains in a single processor as technology advances.

Many modern computers solve this problem by having more than one processor. Some have many, even thousands or more, such as in a modern supercomputer. The problem is that it is very difficult to write algorithm's that can adequately take advantage of that parallelism. We tend to think linearly, and our algorithms follow that thinking. Such a linear process, however, can only use one processor at a time. We need to work on algorithms that can utilize all of the available processors in a computer at the same time.

Two "yesterdays" ago, the challenge was Block Structured Programming. One "yesterday" ago, the challenge was Object Orientation. "Today", the challenge is Multi-Threading.

Write a Flowchart for Fibonacci series?

1.start

2.a=0,b=1,c and counter

3.display a

4.display b

5.c=a+b

6.display c

7.a=b

8.b=c

9.check whether number is less than the last number you have

if yes than go to step 5

if no stop it

How do you make an program in object oriented programming?

Object Oriented Programming is the technique to create programs based on the real world..object oriented programming model programs are organized around objects and data rather than actions and logic. In OOP based language the principal aim is to find out the objects to manipulate and their relation between each other.OOP offers greater flexibility and compatibility and is popular in developing larger application.

Why is adding RAM a performance advantage?

Computers with more RAM can handle more information without crashing. Computers have to store all of the data coming from all the the devices in the computer until the processor can process the data and this data is stored in the RAM. If you have small amounts of RAM, it will fill up and then all the devices pause until the RAM has more room for data. So the more RAM that a computer has the less waiting the devices have to do on account of the CPU having data already waiting to be processed. daman155 In most modern systems using Windows XP, Linux, etc.. more RAM is better. This enables the system to keep more applications and data such as documents spreadsheets and Internet pages in the systems main storage area, which is RAM. When you have more applications and data loaded than can fit into RAM, the system will remove what it sees as idle data not being immediately used and move it from ram to "Virtual Memory" on your hard disk. This "Virtual Memory" or Swap Space is VERY SLOW. This means when you go back to what was deemed idle memory, it takes awhile to swap back into RAM. So unless you run out of both RAM and disk space, you may not crash, but without more RAM you will not be able to open as many applications or documents as you may like. --Veggivore--

What is object oriented paradigm in java?

the concept of "pure" in object orientation is a little subjective and not quite well defined in practice, but there are pure object oriented programming languages. The principles of object orientation on the other hand are well defined. Programming languages are quite nested in complicated materials, and it is hard to say that everything must be an object, since all formal systems need primitives. How can you define an object without the notion of an object as a definition? This all comes down to type theory, and one can't define everything as "something" without knowing the "something". With this, Java is not actually a pure object oriented programming language since it needs primitives. The only way you can yield a pure programming language with no primitives is not even having the notion of defining concrete terms in a programming language since it doesn't have primitives in it.

Smalltalk is an example of a pure programming language. With this, I can't exactly answer the question since you've presented two OO programming languages, neither of which is "pure".

-Fabianski Benjamin

India

What is the first step in software programming?

Generally, the first step in learning to program is to understand the process of editing code, compiling the software and running the subsequent program.

How to make a star in gwbasic language?

10 SCREEN 2

20 PSET (200,120)

30 DRAW "E100 F100 L200"

40 PSET (200,50)

50 DRAW "R200 G100 H100"

END

How do you prevent data duplication?

Data deduplication is the method by which you can prevent data duplication. Data deduplication is a specialized data compression technique for eliminating coarse-grained redundant data, typically to improve storage utilization. In the deduplication process, duplicate data is deleted, leaving only one copy of the data to be stored, along with references to the unique copy of data. Deduplication is able to reduce the required storage capacity since only the unique data is stored.