Lossless and lossy compression
are terms that describe whether or not, in the compression of a file, all original data can be recovered when the file is uncompressed. With lossless compression, every single bit of data that was originally in the file remains after the file is uncompressed. All of the information is completely restored. This is generally the technique of choice for text or spreadsheet files, where losing words or financial data could pose a problem. The Graphics Interchange File (GIF) is an image format used on the Web that provides lossless compression. On the other hand, lossy compression reduces a file by permanently eliminating certain information, especially redundant information. When the file is uncompressed, only a part of the original information is still there (although the user may not notice it). Lossy compression is generally used for video and sound, where a certain amount of information loss will not be detected by most users. The JPEG image file, commonly used for photographs and other complex still images on the Web, is an image that has lossy compression. Using JPEG compression, the creator can decide how much loss to introduce and make a trade-off between file size and image quality.
Tuesday, November 25, 2014
Lossless and lossy compression
Fetch Execute Cycle
Explain the Fetch Decode Execute cycle of CPU
Most modern processors work on fetch-decode-execute principle. This is also called Von Neumann Architecture.
When a set of instructions is to be executed, the instructions and data are loaded in main memory. The address of the first instruction is copied into the program counter. The execution of an instruction by a processor is divided in three parts. These parts are fetching, decode and execute.
1. Fetch instruction
In the first step, the processor fetches the instruction from the memory. The instruction is transferred from memory to instruction register.
In the following figure, the processor is ready to fetch instruction. The instruction pointer contains the address 0100 contains the instruction MOV AX, 0.
The memory places the instruction on the data bus. The processor then copies the instruction from the data bus to the instruction register.
2. Decode instruction
In this step, the instruction is decoded by the processor. The processor gets any operand if required by the instruction. For example, the instruction MOV AX, 0. Stores the value 0 in Ax register. The processor will fetch the constant value 0 from the next location in memory before executing the instruction.
In the above figure, the processor transfers the instruction from instruction register to the decode unit. The instruction tells the computer to store 0 into AX register. The decode unit now has all the details of how to do this.
3. Execute instruction
In the last phase, the processor execute the instruction, it stores 0 in register AX.
In above figure, the processor execute the instruction MOV AX, 0. Finally it adjusts the instruction pointer to point to next instruction to be executed stored at address 0102.
What are ports? Differentiate between serial and parallel ports.
A port is an interface or point of attachment. It is used to connect peripheral devices with computer such as printers, keyboards or mouse. Each type of port operates at a certain speed. The speed is measured in kilobits per second (kbps) or megabits per second (Mbps).
Types of ports
Different types of ports are as follows:
1. Serial ports
A type of interface that transmits one bit at a time is called serial port. It is usually used to connect devices that do not require fast data transmission like mouse and keyboard etc. Serial ports are often known as communications (COM) ports. Data travels over a serial port at 115 kilobits per second.
2. Parallel ports
A type of interface that transmits many nits at a time is called parallel port. It is used to connect devices that transfer many bits at a time and require fast data transmission like printer and scanner etc. parallel ports are often referred to as line printer (LPT) ports. The speed of parallel ports is 12Mbps.
Monday, November 24, 2014
Computer Ethics
Types of computer misuse
Hacking
Data misuse and unauthorised transfer or copying
Copying and distributing copyrighted software, music and film
Email and chat room abuses
Pornography
Identity and financial abuses
Viruses
- Accessing computer material without permission, eg looking at someone else's files.
- Accessing computer material without permission with intent to commit further criminal offences, eg hacking into the bank's computer and wanting to increase the amount in your account.
- Altering computer data without permission, eg writing a virus to destroy someone else's data, or actually changing the money in an account.
- never replying to anonymous emails
- setting filters on email accounts
- reporting spammers to ISPs, who are beginning to get together to blacklist email abusers
- governments passing laws to punish persistent spammers with heavy fines
Computer Systems (FAST TRACK)
1 Data representation 1.1 Number systems How and why computers use binary to represent all forms of data? • Any form ...
-
Pre Release Material Summer 2017 | O Levels | Computer Science In Preparation for the examination candidates should attempt th...
-
What is SSL? SSL stands for Secure Sockets Layer and is one security protocol that is used on the Internet. This is the technology that ...