Answer:
The right answer will be "Sniffing through a hub".
Explanation:
- Packet sniffer seems to be a device that listens for transmitted data on what seems like a channel. Sniffing enables the detection of data by individual people as it has been transferred throughout a cable.
- Appropriate nodes are using this methodology to make a diagnosis of connection issues, or even just harmful programs to obtain confidential information, like authentication and encryption.
Answer:
Add this statement at the end of your steps() function
return ""
This statement will not print None at the end of steps.
Explanation:
Here is the complete function with return statement added at the end:
def steps(number): # function steps that takes number (number of steps to print) as parameter and prints the steps specified by number
i = 1 #assigns 1 to i
while i < number + 1:
string = str(i) * 3 #multiplies value of i by 3 after converting i to string
string1 = str(string) # stores the step pattern to string1
if i != 0: # if the value of i is not equal to 0
string1 = (i * 4*' ' + "\b" + "\b" + "\b" + "\b") + string #set the spaces between steps
elif i == 1: # if value of i is equal to 1
string1 = string #set the string to string1
print(string1) # print string1
i = i + 1 # increments i at each iteration
return "" #this will not print None at the end of the steps and just add a an empty line instead of None.
Screenshot of the corrected program along with its output is attached.
Answer:
the first constructor invocation will work.
pet temp("mouse", 5.99);
Explanation:
This will create a pet object on the stack, using the constructor.
If you want to create an object on the heap, you would use the new operator:
pet* pTemp = new pet("mouse", 5.99);
Answer:
The answer is a VOID method.
Explanation:
A void method is one that simply performs a task and then terminates.
Answer:
In cell A3 we type
=Right(A2,5)
Explanation:
The Right function in the Microsoft excel is placing the character or the string into the right position .Following are the syntax to using the right function in the excel sheet
=Right(cell name,num _of_character )
- cell name-In this we have to specify the cell name
- num_of_character -In this we have to specify the number of character we want the right of the cell name .
From the given question We have putting the string in the cell A2 and we have used the function in the cell A3 i.e
=Right(A2,5)