What is a Computer?
Technically, a computer is a programmable machine.
This means which stores data and processes information based upon the instructions provided by the user and generates the desired output.
What can computers do?
- Connect to the Internet.
- Use your word processor.
- Use your spreadsheet.
- Broaden your knowledge.
- Play games.
- Listen to music, create music or music CDs.
- Look at pictures, scan pictures, import pictures, and create pictures.
- Watch videos, create movies, or watch TV.
- Store personal information and contacts electronically and share it with other devices.
- Use your computer to control appliances and lights in your house.
How the System Works?
- Input: Your keyboard and mouse, for example, are just input units—ways of getting information into your computer that it can process. If you use a microphone and voice recognition software, that's another form of input.
- Memory/storage: Your computer probably stores all your documents and files on a hard drive: a huge magnetic memory. But smaller, computer-based devices like digital cameras and cellphones use other kinds of storage such as flash memory cards.
- Processing: Your computer's processor (sometimes known as the central processing unit) is a microchip buried deep inside. It works amazingly hard and gets incredibly hot in the process. That's why your computer has a little fan blowing away to stop its brain from overheating!
- Output: Your computer probably has an LCD screen capable of displaying high-resolution (very detailed) graphics, and probably also stereo loudspeakers. You may have an inkjet printer on your desk too to make a more permanent form of output.
ref: Explainthatstuff
you want more details to visit here
Compiler Vs Interpreter
Basis for comparison | Compiler | Interpreter |
---|---|---|
Input | It takes an entire program at a time. | It takes a single line of code or instruction at a time. |
Output | It generates intermediate object code. | It does not produce any intermediate object code. |
Working mechanism | The compilation is done before execution. | Compilation and execution take place simultaneously. |
Speed | Comparatively faster | Slower |
Memory | Memory requirement is more due to the creation of object code. | It requires less memory as it does not create an intermediate object code. |
Errors | Display all errors after compilation, all at the same time. | Displays error of each line one by one. |
Error detection | Difficult | Easier comparatively |
Pertaining Programming languages | C, C++, C#, Scala, typescript uses a compiler. | PHP, Perl, Python, Ruby uses an interpreter. |
No comments:
Post a Comment