Answer and Explanation:
To display 10 consecutive lower case letters in Unix, we make use of the commands below. The first command finds the letters in the file and the second command counts them line by line.
$ grep '[a-z]\{10,\}' /unixPasswd/passwd
# this command displays lines with at least 10 consecutive lowercase letters or more than 10 consecutive lowercase letters
$ grep '[a-z]\{10,\}' /unixPasswd/passwd | wc -l
# this command counts the number of lines that has at least 10 consecutive lower case letters or more than 10 consecutive lowercase letters
Note: the unixPasswd is a file in passwd file. The # is used when we want to add comments, is optional here. The $ is a prompt on the terminal that begins a new command.
Answer:
The output of the given program is
Peach Pear Pineapple.
Explanation:
since the value of var is so control will move to the case 3 directly and executed the statement inside the case 3 so it will print "Peach" in window after that their is no break statement in the case 3 the control moves the case 4 and executed the statement inside the case 4 so it will print "Pear" in window again there is no break statement in the case 4 the control moves the case 5 and executed the statement inside the case 5 so it will print "Pineapple".Finally, the break statement is reached the execution of the program is stopped.
Answer:
Physical layer is the first layer of OSI model. The detail about physical layer and its parts is given below in explanation section.
Explanation:
The physical layer is the lowest and first layer of the Open Systems Interconnection Model (OSI). The physical layer is used for the transmission of data in bit forms. For transmission of data between devices, it uses the transmission medium that is either wired or wireless.
In the wired cable the component of the psychical layer include cable and connectors that are implemented for carrying data from one place to another or simply to transmit data between two connected devices. The wireless transmission medium is used to transmit data in the form of electromagnetic signals for carrying data into a stream of bits. Over past advancements in networking technologies, rapid growth has been seen in wireless data transmission and Wi-Fi and Bluetooth communication are few names of it.
Components/Parts of Psychical Layer
In the physical layer, the hardware components used it in are the network interface cards, connectors and interfaces, intermediate devices, modems, and cables to facilitate the transmission of data between devices or from source to destination.
- The network interface card (NIC)
NIC is a component installed in the computer to connect it to any available devices over the network.
- Connectors and Interfaces
Connectors and interfaces are used to connect cables that are being used for transmission of data from one source to another. The decision to choose connectors and interfaces depends on the type of cable. Typical examples are RJ-45, RJ-11, V.35, HDMI, etc.
Cables are the physical components of the physical layer that carry optic or electromagnetic signals for transmission of data from source to destination in the network.
The intermediate devices are hubs and repeaters etc. The functions of these devices are to amplify or generate the signal at the intermediate point in a network.
<span>I guess, this is java. Try that code:
public static String listCountriesOfOrigin (Bowl[] bowls) {
</span>for(int i = 0; i < bowls.length; i++) {<span> String origin = bowls[i].getOrigin();
</span><span>System.out.println(origin)</span><span>;
}
}</span>
The answer is SOPA or Stop Online Piracy Act. This bill was introduced by Lamar Smith a representative in US. Lamar passed this bill in the United states to enforce the law to combat online copyright, online trafficking, and other cyber crimes. There are many provisions on this bill including the court orders to request ISP (Internet Service Provided) to block access to that website.