Answer:
Constructor in the class is the member function that gets into action when any new object gets created in the class ,it gets invoked. It does not have any return type and no void return.
The constructor is used in the class because there is the requirement for the initializing of the new object and then only object can do the functioning in the program.
Answer:
Its outfile<<number.
However, before this we need to write
outfile.open("xyz.txt", ios;;out)
outfile<<number
And this code will do what is required in the question. This is going to write the number's content to the xyz.txt file which is the file associated with the outfile.
And remember this is in C++. And C++ is a imperative oriented programming language. Undoubtedly, Python and R are fully object oriented programming languages.
Explanation:
The answer is self explanatory.
Answer: hello your question lacks the required option, below are the missing options
A. The transaction data in the tampered block is deleted, and a copy is created with the same hash value.
B. The hash values of transaction data of subsequent blocks are validated, and the chain is broken.
C. The hash value for the entire block is nullified, creating a domino effect on all subsequent blocks.
D. The hash values of subsequent blocks are updated as soon as they are tampered with, and the chain continues.
answer : The hash values of subsequent blocks are updated as soon as they are tampered with, and the chain continues ( D )
Explanation:
What happens if a transaction data is changed in an earlier existing block in a Blockchain is that the Hash values of subsequent blocks will be updated as soon as they are tampered with and the chain will continue.
Blockchain is a specially design system for recording information, hence any change in data inputted in an earlier existing blocks that changes will automatically be updated as well in all preceding blocks.
It is a unit of disk space allocation for files and directories. Hope this helps :)