Commands into software documents tools
The allocation methods define how the files are stored in the disk blocks.
There are three main disk space or file allocation methods:
1.Contiguous Allocation-in this scheme,each file occupies a set of blocks on the disk. For example if a file requires x blocks and is given a block y as the starting location,then the blocks assigned to the file be :x,y+1,y+2,......y+x-1.
This means that given the starting block address and the length of the file(in terms of blocks required) we can determine the blocks occupied by the file.
Advantages
-both the sequential and direct accesses are supported
-this is extremely fast since the number of seeks are minimal because of contiguous allocation of file blocks.
2.linked allocation-in this scheme,each file linked list of disk blocks which need not be contiguous disk blocks can be scattered anywhere on the disk.
Advantages
it is very flexible in terms of file size.file size can be increased easily since the system does not have to look for a contiguous chunk
of memory.
this method does not suffer from external fragmentation and it makes it relatively better in terms of memory utilization.
3.Indexed Allocation-in this scheme,a special block known as the index block contains the pointers to all the blocks occupied by a file.Each file has its own index block.the entry in the index block contains the disk address of the block
Advantages
it supports direct access to the blocks occupied by the file and therefore provides fast access to the file blocks
it overcomes the problem of external fragmentation.
It depends on the <span>mapping techniques. Do you have a particular one in mind. The options are associative mapping, direct mapping and set associative mapping.</span>
Explanation:
C++ Program to display month name according to the month number using Switch Statement
that's why called checkmonth
/* C Program to display month name according to the month number using Switch Statement */ #include<stdio.h> int main() { int n; printf("Month No : "); scanf("%d",&n); switch(n) { case 1: printf("January"); break; case 2: printf("February"); break; case 3: printf("March"); break; case 4: printf("April"); break; case 5: printf("May"); break; case 6: printf("June"); break; case 7: printf("July"); break; case 8: printf("August"); break; case 9: printf("September"); break; case 10: printf("October"); break; case 11: printf("November"); break; case 12: printf("December"); break; default: printf("Invalid Month number\nPlease try again ....\n"); break; } return 0; }
Answer:
False is the correct answer for the above question.
Explanation:
- The CIA triangle is a concept of cybersecurity which tells the rules and fact for the Confidentiality, integrity, and availability to secure the information from the access of a wrong user.
- The confidentiality rules said that the information is accessed by the right user only. This is also said by the above question statement which is correct.
- But the above question statement also wants to say that confidentiality means that the networks and computers are operated by any person which is not correct. Hence false is the correct answer to the above question.