Answer:
zero ( 0) times.
Explanation:
In the code;
i = 2
while ( i > 2){
i = floor( i/2 );
z = z + 1;
}
the variable " i " is assigned the integer " 2 ", then the while statement loops with a condition of a greater " i " value and divides the value by two for every loop.
But in this case, the while statement is not executed as the value of " i " which is 2 is not greater than but equal to two.
Networking, also known as computer networking, is the practice of transporting and exchanging data between nodes over a shared medium in an information system.
Answer:
Following are the code to this question:
import array as a#import package array
def silence(typecode, length):#defining method silence that accepts two parameters
Val= a.array(typecode, [0]*length)#defining Val variable that stores zeros of the given type code and length
return Val# use return keyword for return Val variable value
typecode = input('Enter typecode value: ')#use input method for input
length = int(input('Enter length value: '))#defining length variable that input integer value
print(*(silence(typecode, length)))#use print method to call silence method
Output:
Enter typecode value: b
Enter length value: 10
0 0 0 0 0 0 0 0 0 0
Explanation:
description of the code:
- In the above-given Python code, Firstly we import a package that is the array, after that a method "silence" is defined that accepts two variables in its parameter that is "typecode and length".
- Inside the method, the "Val" variable is declared, which is used to calculate and store all zeros of the typecode and length variable.
- Outside the method, "typecode and length variable" is used for input the value from the user end-use the print method to call the function "silence" with an asterisk.
Answer:
.serial port
.VGA port
.Modem port
explain A port is a channel through which a device communicate with the operating system.