idNumber = "123456"
idNo = input("Enter the unique ID number: ")
while idNumber != idNo:
print("This is not your ID number.")
idNo = input("Enter the unique ID number: ")
print("This is your ID number: ", idNo)
Output:
sh-4.3$ python3 main.py
Enter the unique ID number: 2345
This is not your ID number.
Enter the unique ID number: 4563
This is not your ID number.
Enter the unique ID number: 12345
This is not your ID number.
Enter the unique ID number: 123456
This is your ID number: 123456
Answer: Threat
Explanation:
Threat is one of the type of possible danger occur in the computer system security and also also exploit the security system that cause various types of possible harms.
Threat is alter any type of data in an organization without the permission of the owner.
The threat can be classified into the different types are as follows:
- Computer worm
- DOS attack
- Rootkit
- Computer viruses
Answer:
11 cycles.
Explanation:
One interesting thing to observe in this is that, there is no data hazard because here in any of the two consecutive instruction, they do not share any common register and hence no collision.
Also assuming each this program starts with address 0, so that condition checking at the end which is "bne $7, $4, 0x040" will not lead to branching which repeats the loop. Which means this sequence of 7 instructions run only once.
Now if there is no pipeline hazard (which is the case here) and there are n instruction with s stages in pipeline with each stage take 1 cycle, then total cycle required to finish the program will be n+(s-1)=n+s-1
Here number of instruction n=7 and in multicycle datapath usually pipeline stages s=5.
Then number of cycles needed to execute this sequence will be = 7 +5 -1 = 11 cycles