Answer:
secrets.randbelow(31)
Explanation:
This is Python Language, and secrets is an external module. So, to use it you need to install it using pip, just type pip install secrets in any terminal. And secrets module will be installed. If you will use the 1st or last code it will give give you error, because secrets module does not have any attribute named random. If you will use the 3rd code it will print random number from 0 to 29 only. If you also want to print 30, you need to you need to write the code given below:
import secrets
secrets.randbelow(31)
Answer:
int widthOfBox; //declaration
int widthOfBook; // declaration
if (widthOfBox%widthOfBook!=0){
}
Explanation:
This expression will evaluate to true if the value of widthOfBox is not divisible by widthOfBook.
The modulo operator (%) is used for this evaluation since widthOfBox %widthOfBook will evaluate to zero if the widthOfBox is divisible by widthOfBook
Answer: star topology.
Explanation:
The layout of the way how the computers in a netword are interconnected is called network tipology.
Some types of network topologies are:
1) Point-to-point tipology: all the computers are connected to each other directly (computer-to-computer, in pairs, this is a direct link between each two computers).
2) Bus topology: all the nodes (computers or server) are connectect to a maing cable.
3) Star topology: all the computers are connected to a central computer or server which is called central hub. This is the layout described in the question.
4) Ring topology: the computers are connectec in a circular path; each computer is connected to the next computer.
5) Mesh: every computer is connected to every other computer.
You have an object declared in the function which has a undeclared value.
Explanation:
if you will make a variable of class or object in JAVA or other reference typed languages and will not assign the value to it this error occurs.
For example :
obj object; // this line declares a object named variable of type obj class
Here it will cause same error iff i will do it like :
obj = object = new obj();
Explanation:
These are the advantages of breaking up a single logical message into a number of fixed sized packets.
- When messages are broken into packets it increases the performance and also the reliability of the internet
- if there is an error in a single packet, this error is not going to affect the entire message.
- the efficiency of the communication line in the internet is improved.
- there is a reduction of traffic. Each packet in a single message can be transmitted through different routes.
- It reduces idleness as each packet can send from different program so each program has a service.