instruction:
Given a question and a context passage, generate the answer having the word or phrase from the context passage. Here, the answer should be a shortest continous span from the passage.
question:
Context: Did you ever make a secret code? One way to make a code is to represent each letter of the alphabet by a different number. Then you can send a coded message by writing words as strings of digits. This is similar to how information is encoded using an electric current. The voltage of the current is changed rapidly and repeatedly to encode a message, called an electronic signal. There are two different types of electronic signals: analog signals and digital signals. Both are illustrated in Figure 23.20. A digital signal consists of pulses of voltage, created by repeatedly switching the current off and on. This type of signal encodes information as a string of 0s (current off) and 1s (current on). This is called a binary ("two-digit") code. DVDs, for example, encode sounds and pictures as digital signals. An analog signal consists of continuously changing voltage in a circuit. For example, microphones encode sounds as analog signals. Electronic components are the parts used in electronic devices such as computers. The components transmit and change electric current. They are made of materials called semiconductors. A semiconductor is a solid crystalusually consisting mainly of siliconthat can conduct current better than an electric insulator but not as well as an electric conductor. Very small amounts of other elements, such as boron or phosphorus, are added to the silicon so it can conduct current. A semiconductor is illustrated in Figure 23.21. There are two different types of semiconductors: n-type and p-type. An n-type semiconductor consists of silicon and an element such as phosphorus that gives the silicon crystal extra electrons. An n-type semiconductor is like the negative terminal in a chemical cell. A p-type semiconductor consists of silicon and an element such as boron that gives the silicon positively charged holes where electrons are missing. A p-type semiconductor is like the positive terminal in a chemical cell. Electronic components contain many semiconductors. Types of components include diodes, transistors, and inte- grated circuits. Each type is described in Table 23.2. Electronic Component Diode Transistor Integrated Circuit (Microchip) Description A diode consists of a p-type and an n-type semicon- ductor placed side by side. When a diode is connected by leads to a source of voltage, electrons flow from the n-type to the p-type semiconductor. This is the only direction that electrons can flow in a diode. This makes a diode useful for changing alternating current to direct current. A transistor consists of three semiconductors, either p- n-p or n-p-n. Current cant flow through a transistor unless a small amount of current is applied to the center semiconductor (through the base). Then a much larger current can flow through the transistor from end to end (from collector to emitter). This means that a transmitter can be used as a switch, with pulses of a small current turning a larger current on and off. A transistor can also be used to increase the amount of current flowing through a circuit. You can learn more about transistors and how they work at this URL: http An integrated circuitalso called a microchipis a tiny, flat piece of silicon that consists of layers of elec- tronic components such as transistors. An integrated circuit as small as a fingernail can contain millions of electronic components. Current flows extremely rapidly in an integrated circuit because it doesnt have far to travel. You can learn how microprocessors are made at this URL: Many of the devices you commonly use are electronic. Electronic devices include computers, mobile phones, TV remotes, DVD and CD players, game systems, MP3 players, and digital cameras. All of these devices use electric current to encode, analyze, or transmit information. Consider the computer as an example of an electronic device. A computer contains microchips with millions of tiny electronic components. Information is encoded as 0s and 1s and transmitted as electrical pulses. One digit (either 0 or 1) is called a bit, which stands for "binary digit." Each group of eight digits is called a byte. A gigabyte is a billion bytes that 
 Question: electronic component consisting two semiconductors
answer:
diode


question:
Context: Elements form compounds when they combine chemically. Their atoms join together to form molecules, crystals, or other structures. The atoms are held together by chemical bonds. A chemical bond is a force of attraction between atoms or ions. It occurs when atoms share or transfer valence electrons. Valence electrons are the electrons in the outer energy level of an atom. You can learn more about chemical bonds in this video: MEDIA Click image to the left or use the URL below. URL: Look at the example of water in Figure 7.1. A water molecule consists of two atoms of hydrogen and one atom of oxygen. Each hydrogen atom has just one electron. The oxygen atom has six valence electrons. In a water molecule, two hydrogen atoms share their two electrons with the six valence electrons of one oxygen atom. By sharing electrons, each atom has electrons available to fill its sole or outer energy level. This gives it a more stable arrangement of electrons that takes less energy to maintain. Water (H2 O) is an example of a chemical compound. Water molecules always consist of two atoms of hydrogen and one atom of oxygen. Like water, all other chemical compounds consist of a fixed ratio of elements. It doesnt matter how much or how little of a compound there is. It always has the same composition. Elements are represented by chemical symbols. Examples are H for hydrogen and O for oxygen. Compounds are represented by chemical formulas. Youve already seen the chemical formula for water. Its H2 O. The subscript 2 after the H shows that there are two atoms of hydrogen in a molecule of water. The O for oxygen has no subscript. When there is just one atom of an element in a molecule, no subscript is used. Table 7.1 shows some other examples of compounds and their chemical formulas. Name of Compound Electron Dot Diagram Numbers of Atoms Chemical Formula Name of Compound Hydrogen chloride Electron Dot Diagram Numbers of Atoms H=1 Cl = 1 Chemical Formula HCl Methane C=1 H=4 CH4 Hydrogen peroxide H=2 O=2 H2 O2 Carbon dioxide C=1 O=2 CO2 Problem Solving Problem: A molecule of ammonia consists of one atom of nitrogen (N) and three atoms of hydrogen (H). What is its chemical formula? Solution: The chemical formula is NH3 . You Try It! Problem: A molecule of nitrogen dioxide consists of one atom of nitrogen (N) and two atoms of oxygen (O). What is its chemical formula? The same elements may combine in different ratios. If they do, they form different compounds. Figure 7.2 shows some examples. Both water (H2 O) and hydrogen peroxide (H2 O2 ) consist of hydrogen and oxygen. However, they have different ratios of the two elements. As a result, water and hydrogen peroxide are different compounds with different properties. If youve ever used hydrogen peroxide to disinfect a cut, then you know that it is very different from water! Both carbon dioxide (CO2 ) and carbon monoxide (CO) consist of carbon and oxygen, but in different ratios. How do their properties differ? There are different types of compounds. They differ in the nature of the bonds that hold their atoms together. The type of bonds in a compound determines many of its properties. Three types of bonds are ionic, covalent, and metallic bonds. You will read about these three types in later lessons. You can also learn more about them by watching this video: (7:18). MEDIA Click image to the left or use the URL below. URL: Chocolate: Its been revered for millennia by cultures throughout the world. But while its easy to appreciate all of its delicious forms, creating this confection is a complex culinary feat. Local chocolate makers explain the elaborate engineering and chemistry behind this tasty treat. And learn why its actually good for your health! For more information on the science of chocolate, see [Link] . MEDIA Click image to the left or use the URL below. URL: 
 Question: force of attraction between atoms or ions that share or transfer electrons
answer:
chemical bond


question:
Context: Days of Magic, Nights of War (2004) is the second book in a series of five by author Clive Barker, called The Books of Abarat. 
 Question: The writer of Days of Magic, Nights of War is who?
answer:

clive barker