What is the difference between platform independent and portable in programming?
There is no difference. They mean exactly the same thing. Portable code is independent of the platform while non-portable code is platform-dependant.
they are like interrupt handlers
when a message arrived, a thread poped and handle it
How can you use long names at the DOS prompt?
Use quotes to surround the long name. Example: >dir "John Doe"
What do you mean by logical operators?
I think you may mean logic operators, also known as Boolean Algebra. Some of the more common being OR, AND, NAND, NOR, NOT, and XOR. These are used mainly in the Binary numbering system, 1's and 0's. For example in a two input OR, either input being a 1 the output will be 1. In a two input AND both inputs must be a 1 to get an output of 1.
What is pseudo code for LCD of two numbers?
The LCD (least common denominator) is better known more generally as the LCM (least common multiple). The LCM of any two integers, typically denoted LCM (a, b), is the lowest positive integer that is evenly divisible by both integers. That is, LCM (a, b) = c such that c/a = c/b. Division by zero is undefined thus it stands to reason that neither a nor b can be zero. However, many people regard LCM (a, 0) = a to be valid even though it is technically undefined, as is LCM (0, 0). Note that either a or b may be negative but LCM (a, b) must always be positive.
The product of a and b is obviously a common multiple of a and b. However, it is not necessarily the lowest common multiple. For instance, 20 is the product of 2 and 10 and is therefore a common multiple of 2 and 10. However, the lowest common multiple of 2 and 10 is 10 because 10/2 = 5 and 10/10 = 1. From this we can surmise that LCM (a, b) can be no greater than the product of a and b and it cannot be any less than the largest of a and b.
There are several ways to calculate the LCM of two integers, however one of the simplest is by reduction by the greatest common divisor (GCD). That is, GCD (a, b) = c such that a and b are evenly divisible by c. The GCD and LCM are similar types of problem, however the GCD is much easier to calculate and can be implemented efficiently using Euclid's algorithm.
In pseudo-code, we can write the GCD (Euclid) algorithm as follows:
algorithm GCD (a, b) is:
while (a <> b) do
if a > b then a := a - b else b := b - a
end while
return a
From this we can now write the LCM algorithm in terms of the GCD algorithm:
algorithm LCM (a, b) is: return a / GCD (a, b) * b
Note that a * b / GCD (a, b) produces the same result, however it is more efficient to perform the division before the multiplication. This is because a / GCD (a, b) is guaranteed to be an integer that is less than or equal to a and is therefore guaranteed not to overflow. Multiplying that integer by b may still overflow, however the chances of overflow are reduced compared to that of multiplying a and b prior to the division.
What action best describes a branch in a computer program?
This would be a jump to a line number that is non sequential. This is the best way to describe the process.
How would you use the functions fseek freed fwrite and ftell?
fread(s,i1,i2,f) Enter i2 dataitems,each of size i1 bytes,from file f to string s.
fseek(f,1,i) Move the pointer for file f a distance 1 byte from location i.
ftell(f) Return the current pointer position within file f.
fwrite(s,i1,i2,f) send i2 data items,each of size i1 bytes from string s to file f.
The data type returned for functions fread,fseek and fwrite is int and ftell is long int.
In real mode far pointers are 32 bit long (segment + offset)
In protected mode 48 bit (16 bit segment + 32 bit offset)
(In 64-bit mode 80 bit (16 nit segment + 64 bit offset) but it's not so useful)
How do you edit the legends of charts in Crystal Reports?
In Crystal Reports XI you must buy the real version to edit legend text labels. Then you just select and right-click etc. This feature is not available in the Lite version with Visual Studio for instance. Call businessobjects.com to confirm.
Are DMA channels part of a system resource?
Formally no, since 'resource' refers to something consumable, like RAM or CPU time. Rather, DMA channels are encountered to be a part of hardware infrastructure.
I believe it is:
Loop condition
Loop actions
And how the loop breaks
What is a bit- in computer terms is it a character- in language terms is it a syllable?
A bit is the smallest piece of data that a computer (digital) can process. Several bits make up a byte. It started out as 4 bit and 8 bit processors. The earlest processers commercially available were 8 bit capable now there are 128 bit and possible in the near future. With each increase in bits also increased the instruction set that went with those processors. 8 Bits could up to 255 instructions in the operating set.
The bit is to the byte as the letter is to a word.
You cannot reverse such process especially after you have installed the os. But if you remember the old partition size you can format the disk again, delete partitions which you don't need and create a partition which you want to have.
What does Emerson compare an iron string to?
"Trust thyself; every heart vibrates to that iron string."
Iron string = belief in ones own thoughts, to be self confident.
Program to find area of circle using class in c?
class area{ int l,w,a; a=i*w; printf"area of rectangle is= %d",a; endl; }
What is the newest prgramming language?
depends on the application you wish to produce ..... dot NET is probably the best for windows apps