answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Can an for loop be terminated with a semicolon in c language?

Sure.

for (i=0; i;

or

i=0; do printf ("%d %s\n", i, argv[i]); while (i++;

What two programming language deficiencies were discovered as a result of the research in software development in the 1970s?

There were far more than 2 deficiencies found during the 1970s so its hard to identify which two you are specifically referring to. Every language was and still is deficient in some way, otherwise there would be no need to evolve the existing languages never mind invent new languages and new development techniques.

What is difference between uni-programming and multiprogramming?

multiprogramming or multitasking means more than one program can execute at the same time. It is the allocation of a computer system and its resources to more than one application at the same time. However in uni-programming you can have only one program running at any point in time.

What are the two types of programming language?

2 types of java programs are application and applet application program is the one which run on ur computer under the O.S of ur computer. applet is an application designed to be transmitted over the Internet and executed java compatible web browser.

What is the difference between a constructor and its corresponding overloaded assignment operator?

The copy constructor is used to initialize a new instance from an old

instance, and is called when passing variables by value into functions

or as return values out of functions.

The assignment operator is used to change an existing instance to have

the same values as the rvalue, which means that the instance has to be

destroyed and re-initialized if it has internal dynamic memory.

What is memory leak?

When a piece of software running for an extended time uses more and more memory. The software is not releasing its resources correctly! And so the machine cannot recoup memory.

It is possible that eventually the machine will crash, or the offending software will need restarted.

What is the difference between imperative and non-imperative programming languages?

Imperative languages focus on how the program should follow it's tasks, while non-imperative languages, functional or logical, tell the program what it needs to do, as opposed on how to do it.
Imperative programming is programming which changes the computer's state and focuses on how a program is to perform. Non-imperative languages are predominantly declarative languages, where the programmer states what is to be performed without specifying how to achieve it.

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.