Describe three advantages of Java programming language?
Java has many more than 3 characteristics, which can be labelled "advantages"; of course, most of the following are shared by several other languages.
What is a Panel Meter? A panel meter is an instrument that displays an input signal in either a digital or analog form. Many panel meters also include alarm options as well as the ability to connect and transfer data to a computer. OMEGA's iSeries panel meters are available with an ethernet option which allows the panel meter reading to be accessed across a local area network (LAN) or even through the internet.
directly quoted from here: http://www.omega.com/PanelMeters.html
What are preprocessor directive?
Preprocessor directives are used to mark code that is specific to a particular compiler and thus to a specific machine architecture. In this way, programmers can write cross-platform code in the same source and let the compiler decide which parts of the source to compile and which to ignore. In reality, the compiler never actually sees the preprocessor directives since the preprocessor creates new files containing only the code that is to be compiled. Hence the preprocessor is often called the precompiler. Normally, the intermediate source files are deleted as they are compiled, however your development environment should contain an option that allows you to view these files so you can see what the compiler actually works with.
In C and C++, all preprocessor directives have a leading # symbol, such as #include and #define.
#include is by far the most common preprocessor directive. When the precompiler encounters a #include statement, the named header file is essentially copy/pasted in place of the directive. However, all header files should also contain #ifndef header guards to ensure headers are only included once per compilation and these have to be preprocessed as well. Macro definitions are also preprocessed, replacing all instances of the macro symbol with the definition. Macro functions are also inline expanded but since the compiler only sees the expanded code, never the macro itself, the compiler cannot help you debug errant macros. This is why non-trivial macro functions are best avoided.
How can you use abstract classes instead of interfaces?
In most cases, you will want to use abstract classes IN ADDITION to interfaces.
You should use an abstract class in the following circumstance:
In practice, abstract classes are a good way to collect common code into one place, to make maintenance easier.
For instance, say you have a class and interface structure like this:
Class A
Interface X
Class B extends A implements X
Class C extends A implements X
Both B and C will have the all the methods declared in X; if the implementation of those methods is the same (or can be made the same), then X is a good candidate for changing to an abstract method:
Class A
Abstract Class X extends A
Class B extends X
Class C extends X
Thus, you have removed the code duplication that was happening when using interfaces.
Note that doing the above is NOT a good idea if any class which implement interface X cannot be made a subclass of the new abstract class X.
Hai, WIPRO - Western India Products Limited Regds Western India Palm Refind Oils
Advantages of DDA line drawing algorithm?
DDA Line Drawing Algorithm
Step 1:[Determine The Dx & Dy]
Dx=Xb-Xa
Dy=Yb-Ya
Step 2:[Determine Slope is Gentle or Sharp]
If |Dx|>|Dy| then
Gentle Slope
M=Dy/Dx
Set The Starting Point
If Dx>0 Then
C=CELING(Xb)
D=Yb+M*(C-Xb)
F=FLOOR(Xa)
R=FLOOR(D+0.5)
H=R-D+M
IF M>0 Then
Positive Gentle Slope
M1=M-1
Now Step Through The Columns
WHILE C<=F
C Programming Coding For DDA AlgorithmWhat is the definition of Upset Failure?
An upset failure damages a component so that it does not function well, but will still operate at less than optimum performance. A catastrophic failure damages something beyond repair.
a device driver is software, making communication between your motherboard and your OS, probably Windows, possible.
What are 3 different data types?
According to Wikipedia,
"In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real-valued, integer or Boolean, that determines the possible values for that type; the operations that can be done on values of that type; the meaning of the data; and the way values of that type can be stored."
"Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:
How is input and output is similar?
Input is where you add somthing eg.) a picture and output is sending it to someone.
What is magnetic deflection focusing?
A scheme for focusing sheet, beams by means of a periodic configuration of magnetic fields directed transverse to the beam is presented. Discussion of a particular model gives information about stability limits and perveance. This scheme, which lends itself to the incorporation of intense magnetic fields, should be immune to the space-charge instabilities of beams focused in longitudinal magnetic fields. The focusing mechanism is such as to produce coupling between the beam and electromagnetic waves of phase velocity exceeding the velocity of light. Application to millimetre-wave tubes is anticipated.
Implementation of index sequential file organization?
Indexed sequential file organization. =In indexed sequential file organization, the records arestored in sequence according to a primary key and an index is created to allow random access of the file. This type of organization also allows the file to be accessed sequentially. Indexed sequential is the most commonlyused type of file organization. writer-k.k.b -montanna
What are sequential access files?
The file(s) (data) which are accessed in a sequential or a orderly manner is called as a sequentially accessing a file.
What is the power saving mode on your computer called?
Hypothetical decimal computer?
Hypothetical Decimal Computer A hypothetical computer is introduced, a decimal one which can operate also in four modes. The machine has 16 bit numbers, with the first bit as sign bit. The exponent is stored as a binary integer and the coefficient is stored as a sequence of decimal digits. In all modes the exponent base is 10. So in fact this computer is a multi-exponent computer with base 10. In listing the four modes are: Exponent coefficient Mode size bits size structureBCD 3 14-12 12 3 BCD-digits of 4 bits each DPD-1 5 14-10 10 3 digits in 10 bit DPD-code DPD-2 3 14-12 12 3 digits in 10 bit DPD-code preceded by one 'digit' of 2 bits PDE value=0, 1, 2 10+3 4 digits, 3 of them in 10 bit DPD-code and one combined with exponent field *****************************************************************Submitted by ADARSH.S.V.NAIR*******************************************************************
What are the necessity of embedded systems?
any electronic system inbuilt with intelligence can be called as embedded system.
for example if microwave oven is inbuilt with microcontroller can be called as embedded system. An embedded system has historically been defined as a single function product where the intelligence is embedded in the system. It could be anything from a dishwasher to a hearing aid, if that product includes a microprocessor and software. Many of today's embedded systems are looking more like PCs with user interfaces, touchscreens, displays, keypads and more. Still, these are not general function systems but are designed to perform very specific functions.
What are the main differences between ASCII code and Unicode?
Range. ASCII has only 128 characters (95 visible, 33 control), UniCode has many-many thousands.
Note: UniCode includes ASCII (first 128 characters), and ISO-8859-1 (first 256 characters). (From these you can deduct that ISO-8859-1 also includes ASCII.)
Explain the Information Processing Cycle of a computer?
= What is information processing cycle? = In: Computer Terminology [Edit categories]
[Edit]
Information processing cycle of computer can be well described by the following points: (1) input, (2) processing, (3) output and (4) storage # Input-entering data into the computer. # Processing-performing operations on the data. # Output-presenting the results. # Storage-saving data, programs, or output for future use.
1. INPUTThe collection of raw data from the outside world so it can be put into an information system. Putting the acquired data into the information system. # Examples: The payroll clerk collects workers' timecards so she knows how many hours each person worked that week and types the hours from the timecards into a spreadsheet # Conducting a survey of customer's opinions and then scanning the survey cards with a card reader. # Collecting jokes for a joke book and typing jokes into a word processor. # Using a form on a website to collect visitors' opinions
Typical input devices: Keyboards, mice, flatbed scanners, bar code readers, joysticks, digital data tablets (for graphic drawing), electronic cash registers
2. PROCESSING CPU Processor - Central ProcessingUnit A central processing unit (CPU), or sometimes simply processor, is the key component in a digital computer capable of executing a program. It interprets computer program instructions and processes data. CPUs provide the fundamental digital computer trait of programmability, and are one of the necessary components found in computers of any era, along with memory and input/output facilities. A CPU that is manufactured as a single integrated circuit is usually known as a microprocessor. Beginning in the mid-1970s, microprocessors of ever-increasing complexity and power gradually supplanted other designs, and today the term "CPU" is usually applied to some type of microprocessor. Microprocessor (CPU)
Integrated circuit, also called a chip. The Brain of the computer
Composed of: ALU: Arithmetic Logic Unit: Processor Controller High speed calculator
Intel is the most popular chip
Categorized by model numbers
Higher model number=newer/faster chip
Speed of CPU is determined by clock speed
Higher the clock speed, faster the computer
Speed is measured in megahertz (MHz) Megahertz: Clock Speed of the processor (100 MHz = 100 million cycles/second). Memory or RAM Next most critical element of a processing hardware is RAM, often referred to as "primary storage" or "main memory". Random Access Memory (RAM) receives and temporarily stores data and program instructions from the CPU This data bank communicates with the CPU, constantly exchanging information and constantly changing as long as the computer is on
RAM is an active, electronic state. When the power is on, RAM retains data. When the computer is turned off, all data in RAM is erased unless you have saved it to some mass storage device. Each time the computer boots, the computer goes through it's startup routine and lastly loads operating system instructions into RAM
Random Access Memory (RAM) is the workhorse behind the performance of your computer. Working as a foot soldier for your processor, RAM temporarily stores information from your operating system, applications, and data in current use. This gives your processor easy access to the critical information that makes your programs run. The amount of RAM you have determines how many programs can be executed at one time and how much data can be readily available to a program. It also determines how quickly your applications perform and how many applications you can easily toggle between at one time. Simply put, the more RAM you have, the more programs you can run smoothly and simultaneously. To determine how much RAM you need, factor in the demands of the applications you want to run simultaneously as well as the operating system (512 MB of RAM is recommended by Microsoft as minimum for operation of Windows) Then keep in mind that you'll inevitably add new applications and create new files, and add accordingly. RAM: (Random Access Memory): (Click here to read "How Stuff Works - RAM") Types of RAM * DRAM (Dynamic RAM) This is the most common type of computer memory. DRAM needs refreshing and is refreshed hundreds of times each second in order to retain data. During recharging it cannot be accessed by the CPS * SRAM (Static RAM) SRAM is approximately 5 times faster (and twice as expensive, as DRAM). It does not have to be constantly refreshed. Because of its lower cost and smaller size, DRAM is preferred for the main memory, while SRAM is used primarily for cache memory. * SDRAM (synchronous dynamic RAM) is the standard memory offering in the PC industry and is faster than DRAM because it's synchronized to the system clock. . It is designed for mainstream home and business applications, email, and basic audio and video streaming. It provides single-channel memory and is available on our mainstream and value desktop system. * DDR SDRAM (double data rate synchronous dynamic RAM) takes all the features of ordinary SDRAM and increases the frequency bandwidth to improve system performance and speed. * RDRAM (Rambus dynamic RAM) is able to load a new stream of data before the previous stream has completed, resulting in faster access speeds. The RDRAM memory features dual-channel processing which doubles data throughput to further enhance performance. This type of memory is optimized for high-end multimedia tasks involving video and audio. Dual Channel RDRAM is shipped on our performance desktop systems powered by Pentium 4 processors * VRAM: Memory designed for storing the image to be displayed. * CACHE RAM is a small block of high-speed memory located between the Processor and main memory and is used to store frequently requested data and instructions. When the processor requests data, it will check in the cache first
Understanding the relationship between CPU and RAM The hierarchical arrangement of memory storage in current computer architectures is called the memory hierarchy. It is designed to take advantage of memory locality in computer programs. Each level of the hierarchy is of higher speed and lower latency, and is of smaller size, than lower levels. The memory hierarchy in most computers is as follows: * Processor registers - fastest possible access (usually 1 CPU cycle), only hundreds of bytes in size * Level 1 (L1) cache - often accessed in just a few cycles, usually tens of kilobytes * Level 2 (L2) cache - higher latency than L1 by 2× to 10×, often 512 KiB or more * Level 3 (L3) cache - higher latency than L2, often several MB * Main memory (DRAM) - may take hundreds of cycles, but can be multiple gigabytes. Access times may not be uniform.
3. Output In information processing, output is the process of transmitting the processing information Essentially, output is the presentation of any data exiting a computer system. This could be in the form of printed paper, audio, video. In the medical industry this might include CT scans or x-rays. Typically in computing, data is entered through various forms (input) into a computer, the data is often manipulated, and then information is presented to a human (output). Typical output devices: Monitors* Pixels: Images are created with dots of lights called picture elements, or pixels. More pixels = higher resolution. Resolution is the maximum number of pixels the monitor can display * Basic VGA is a pixel grid 640 X 480 * Super VGA is 1,024 X 768 * A video card, (also referred to as a graphics accelerator card, display adapter, graphics card, and numerous other terms), is an item of personal computerhardware whose function is to generate and output images to a display. Printers * Laser - laser beams bond toner to paper * Ink jet - fine stream of ink * Dot Matrix - pins & ribbon What else can you think of?
4. Storage Storage, or mass storage refers to various techniques and devices for storing large amounts of data. The earliest storage devices were punched paper cards, which were used as early as 1804 to control silk-weaving looms. Modern mass storage devices include all types of disk drives and tape drives. Mass storage is distinct from memory, which refers to temporary storage areas within the computer. Unlike RAM memory, mass storage devices retain data even when the computer is turned off. The smallest unit of storage is a file that contains such data as a resume, letter, budget, images or any one of the thousands of items that you may have saved for future reference. Additionally, files can be executable program files, or system files reserved for the operating system. Mass storage is measured in kilobytes (1,024 bytes), megabytes (1,024 kilobytes), gigabytes (1,024 megabytes) and terabytes (1,024 gigabytes). Examples of some mass storage devices * Disk storage - hundreds of thousands of cycles latency, but very large ** Floppy Disks: Relatively slow and have a small capacity, but they are portable, inexpensive, and universal ** Hard disks : Very fast and with more capacity than floppy disks, but also more expensive. Some hard disk systems are portable (removable cartridges), but most are not. * Tertiary storage - ** Optical storage: Unlike floppy and hard disks, which use electromagnetism to encode data, optical disk systems use a laser to read and write data. Optical disks have very large storage capacity, but they are not as fast as hard disks. Examples: CD, CD-R, CD-RW, DVD or DVD-R ** Tapes: Relatively inexpensive and can have very large storage capacities, but they do not permit random access of data. * Flash Memory - faster than disk storage, with up to 4GB or more of data, transferring (usually) over universal serial bus (USB) POONAM VALERA GUJRAT JAMNAGAR p_aum_k@yahoo.co.in
What are the advantages of threads over processes?
Threads in distributed applications have the same benefits as in any other application: they allow you to perform multiple operations at the same time.
Specifically for distributed applications, the server will most definitely be multi-threaded so that it can communicate with all of the clients. The clients will also most likely have at least two threads: one for communication with the server and one for doing actual data processing.
Horses cannot count. Even though you have probably heard about the horse that knew math, it isn't true. The horse picked up on signals people unconsiously gave, and the horse was smart enough to understand them. Long before people knew about these signals, the owners of these horses were killed because they were "witches".
What is the largest system of linked computers in the world?
The largest system of linked computers in the world is the Internet. It is a global network that connects millions of devices and facilitates communication and information sharing on a massive scale.