Computer science is the study of computers and computational systems. It deals with how problems are analysed, how step-by-step solutions called algorithms are designed, and how information is represented, processed and communicated. It also covers the design of hardware and software and the safe and efficient use of computing technology in daily life.
An algorithm is a finite sequence of well-defined steps that is followed to solve a particular problem. A good algorithm has clear and unambiguous steps, so that each instruction can be understood in only one way. It must also end after a finite number of steps and always produce the correct output for valid input.
A flowchart is a graphical representation of an algorithm in which every step is shown by a standard symbol, and the symbols are connected by arrows called flow lines. The oval or terminal symbol is used to show the start and stop of the flowchart, while the diamond symbol is used to show a decision.
An algorithm is the step-by-step solution of a problem written in simple statements of ordinary language or pseudocode. A flowchart is the pictorial representation of the same algorithm, drawn with standard symbols joined by arrows. An algorithm is therefore read like text, while a flowchart shows the sequence and decisions of the solution visually.
Pseudocode is an informal way of writing the steps of an algorithm using simple English-like statements mixed with the structure of a programming language. It is independent of any particular language, so it cannot be run on a computer directly. Programmers use pseudocode to plan and understand the logic of a program before writing actual code.
Debugging is the process of finding and removing errors, called bugs, from a computer program so that it works correctly. The common types of programming errors are syntax errors, which break the rules of the language, logical errors, which give wrong results, and run-time errors, which appear during the execution of the program.
The binary number system is a base-two number system that uses only the two digits zero and one. Computers use it because their electronic circuits have two stable states, on and off, or high and low voltage. These two states can represent the digits one and zero easily, quickly and with great reliability.
A bit, short for binary digit, is the smallest unit of data in a computer, and it can store only a zero or a one. A byte is a group of eight bits taken together. One byte can store a single character of data, such as a letter, a digit or a symbol.
ASCII stands for American Standard Code for Information Interchange. It is a coding scheme that represents English letters, digits and common symbols using seven-bit or extended eight-bit codes. Unicode is a much larger universal coding scheme that can represent the characters of almost all languages of the world, including Urdu and Arabic, which ASCII cannot.
RAM, or Random Access Memory, temporarily stores the data and programs that the computer is currently using; it is volatile, so its contents are lost when the power is switched off. ROM, or Read Only Memory, permanently stores the start-up instructions of the computer. It is non-volatile, and its data can normally only be read.
Hardware consists of the physical parts of a computer that can be seen and touched, such as the keyboard, monitor, processor and printer. Software is the set of programs and instructions that run on the hardware and tell it what to do. Windows, word processors and web browsers are familiar examples of software.
An operating system is the system software that manages all the hardware and software of a computer and provides an interface between the user and the machine. Its main functions include the management of memory, files and running programs, and the control of input and output devices. Windows, Linux and Android are common operating systems.
A computer network is a group of two or more computers connected together so that they can share data and resources. Networking allows the sharing of files, printers and a single Internet connection among many users. It also makes communication fast and easy through services such as electronic mail and instant messaging.
A LAN, or Local Area Network, covers a small area such as a home, an office or a school, is usually owned by one organization, and offers high data transfer speed. A WAN, or Wide Area Network, covers a very large area such as a country or the whole world; the Internet is its biggest example.
The Internet is the global network of interconnected computer networks; it is the physical infrastructure that supports many services such as email, file transfer and the web. The World Wide Web is only one service running on the Internet. It consists of millions of interlinked web pages that are accessed through browsers using HTTP.
An IP address, or Internet Protocol address, is a unique numerical address assigned to every device connected to a network. It identifies the device on the network and allows data to be delivered to the correct destination. For example, 192.168.1.10 is a typical IPv4 address consisting of four numbers separated by dots.
Data privacy means protecting a person's personal information, such as name, passwords, photographs and financial details, from being accessed, used or shared without permission. Every user has the right to control who can see his or her data. Strong passwords, careful sharing of information and secure websites all help to protect data privacy.
A computer virus is a harmful program that attaches itself to files, makes copies of itself and damages data or disturbs the normal working of a computer. To protect a computer, we should install good antivirus software and update it regularly. We should also avoid opening unknown email attachments and untrusted USB drives or websites.
Encryption is the process of converting readable data, called plaintext, into an unreadable coded form, called ciphertext, so that only authorized persons having the key can read it. It is important because it keeps information confidential and secure during storage and transmission. Online banking, shopping and messaging all depend on encryption for their safety.
HTML, or HyperText Markup Language, is the standard language used to create web pages for the World Wide Web. Tags are special keywords of HTML enclosed in angle brackets that tell the browser how to display the content. Most tags are used in pairs, with an opening tag and a closing tag around the content.