It is the computer program written in human readable form that is eventually sent through a compiler or assembler to create a computer application. Source code can be in any high level language or even assembly language.
What is the difference between a nested IF and a multiple condition IFAND?
The difference is mainly in the way a compound condition is set out. A nested IF can be rewritten in terms of IFAND, and conversely.
Function pointer that will point to a function that takes integer value and return character?
char (*funcp(int));
What is visual basic express 2008?
The Visual Studio Express editions are free versions of software that are released with the intent of teaching people that would like to learn to use Microsoft-based programming languages. Visual Basic is one of the core languages you can learn using the Express 2008 suite, along with C++, C#, Microsoft SQL Lite, and the Web Developer (ASP) versions. Downloading Visual Basic Express 2008 allows you to learn Visual Basic and compile programs for demonstration/testing purposes only. You must upgrade to Visual Studio 2008 to legally distribute programs you have created in Visual Basic Express 2008. The projects for both programs are compatible with each other, so you can upgrade at any time without losing your work.
What are the disadvantages of data centralization?
Without a solid backup plan, a central repository of data can cause catastrophic loss of data if the storage fails. Also, it means that a criminal needs only access one central location to obtain all of the data stored at once.
How bubble sort works and provide example?
Bubble sort work by comparing values of two numbers and then swapping them if they are in the wrong order until no more swapping can be done. procedure bubbleSort( A : list of sortable items ) defined as:
do
swapped := false
for each i in 0 to length(A) - 1 inclusive do:
if A[i] > A[i+1] then
swap( A[i], A[i+1] )
swapped := true
end if
end for
while swapped
end procedure
First of all you need get the access to the figure properties . this is done by gca () command. and then you need to change the data_bounds . a=gca() ;//get the current axes a.data_bounds=[0,-1;10,1.5];
What is program verification in c plus plus?
Program verification typically uses static analysis software to analyse program source code. Much of this is done by the compiler itself, however the compiler's primary job is to ensure the code will compile, not that it is logically correct, or efficient, or that it will actually solve the problem.
For instance, the following is perfectly acceptable as far as the compiler is concerned:
if (true) {
}
else if (true) {
// unreachable
}
else {
}
However, program verification will fail because the else if (true) clause is unreachable.
Similarly, it can happen that the then clause is exactly the same as the else clause:
int x;
if (true)
{
x = 42;
}
else
{
x = 42;
}
Problems such as these can be extremely subtle. The compiler will issue no warnings and the program will appear to work exactly as intended, but they are problems nonetheless. In these cases, program efficiency will be affected. They both produce programs that will be slightly larger than they need to be, but the second introduces an unnecessary decision along with duplicate code, thus affecting performance.
Throwing exceptions from a destructor is another problem.
struct foo
{
int m_data;
~foo() { if (!m_data) throw; }
};
In fact, it is illegal. Destructors must never throw exceptions. Yet the compiler allows it. If an exception could occur during destruction then it must be placed within a try...catch block and handled accordingly. Nothing should ever prevent an object from destroying itself.
PVS-Studio (see sources and related links below) is a good example of program verification software and is used primarily to validate open-source software. The website lists a number of problems that have been detected by the software, along with some examples of these problems.
What is the pseudocode that outputs all prime numbers between 2 and 100?
function is_prime (n) such that n>=0
if n<2 return false // 0 and 1 are non-prime
if n%2=0 return n=2 // 2 is the only even prime
max_div = sqrt (n) + 1
for div=3 to max_div step 2 // odd factors (3, 5, 7, 9, etc)
if n%div==0 then return false // div is a factor of n, thus n is non-prime
next div
return true // if we get this far, n has no factors, thus n is prime
function main // test the algorithm
for n=2 to 100 step 1 // inclusive if is_prime (n) = true then output n next n
Note: % is the modulo operator, returning the remainder after division. E.g., n%d returns 0 when d is a factor of n, and non-zero if d is not a factor of n
What is the difference between an intelligent and dumb computer?
Its protocol, ie. primary reasoning logic.
Eg. A dumb computer deals with static and/or constant inputs. A smarter logic interprets inputs dynamically and/or variably.
What is the main reason for not using mysql functions in PHP?
The mysql_ functions were deprecated for a number of reasons:
The sum of two numbers is those two numbers multiplied together. For instance, the sum of 4 and 5 is 20.
yes in the preemptive sjf where every time the system recieve job shorter than the current it stop the current and start the new one
What happens if you add two ram sticks to your PC and one has bad SPD?
When you try to boot the system, you will get a POST error message and will not be able to boot.
The computer programming language known as Pascal was invented by Niklaus Wirth in 1970.
In what programming language is substr used?
Java is the programming language where substr is used. Substr is a command that returns the characters in a string beginning at the specified location through the specified number of characters.
Exception Handling allows us to check input?
Exception handlers take care of asynchronous events (e.g. software arithmetic errors, hardware malfunction, normal termination of a different thread) other than interruptsthat require special handling in the software and would be inconvenient or impossible to check for using the standard conditional tests.
In general these asynchronous events make further processing impossible without this special handling, which may or may not correct any problems (if correctable) and then retry.
How can you get free Windows xp software?
Visit the Microsoft homepage, or run the updates for Windows.
Free download window xp2007
Who is the developer of the web?
The web designers are responsible for the whole architecture of a website. From the very tiny content up to the higher contents such as web pages and so on.
I Computer Science, Ordering paradigm refers to a Greedy heuristic in which candidates are choosen in the order in which they appear, no selection function is used.
Kruskal's algorithm is an algorithm in graph theory that finds a minimum spanning tree for a connected weighted graph. This means it finds a subset of the edges that forms a tree that includes every vertex, where the total weight of all the edges in the tree is minimized. If the graph is not connected, then it finds a minimum spanning forest (a minimum spanning tree for each connected component). Kruskal's algorithm is an example of a greedy algorithm.
What are the differences between a calculator and a computer?
A computer can perform many functions beyond a calculator, including advanced calculations as well as communication, graphics and other high-level activities.
Difference bw adevrtising and marketing?
Advertising is to let it be known that the product is available, describing things like quality price to a market that is aware of the uses of the product. Marketing it to investigate and find areas in the market where the product can be put to new uses that up to now haven't been thought of, there by expanding the marketability of the product.