Computer Science Questions
Explore questions in the Computer Science category that you can ask Spark.E!
If there are 64 pages and the page size is 4096 words, what is the length of logical address? *0/112 bits8 bits 16 bits18 bits
What is one directory containing all files called in the simplest form of directory system? *0/1VolumeUser directoryRoot directoryParent directory
The number on the address lines is used as an index into a table to fetch a new program counter. What is the table's name? *0/1Interrupt vectorAddress lines tableAddress tableInterrupt table
Which method is used to prevent the communication deadlock? *0/1Acknowledge signalTimeouts Handling alarmAll of the others
What is the output of the following program?a = [1, 2, 3, 4, 5]a[0] = 6print(len(a))A. 0B. 1C. 5D. 6
An interrupt that does not meet these requirements is called a(n) ______ *1/1Required interruptDisappointed interruptImprecise interrupt Precise interrupt
The number of swappings needed to sort the numbers 2, 7, 8, 9, 1 in ascending order, using bubble sort is:A. 2B. 3C. 4D. 5
What's different between preemptable and non-preemptable resources? *0/1Effecting on process or system can occur when those resources are taken wayPreemptable resources can be separated None of the othersAll of the others
Assume that the Page Table below is in effect. The number of lines per page is 400. The actual memory location for line 1634 is ____. *1/1Captionless Image443431634None of the others
What will be the output of the following code?S = []S.append(1)S.append(2)S.append(3)S.pop()print(S)A. [1, 2, 3]B. [1, 2]C. 1D. 3
What is an integrated communication diagram?(a) A communication diagram formed by combining objects(b) A synthesis of all the communication diagrams developed to support the use cases(c) A communication diagram depicting the objects that realize a use case(d) A communication diagram that integrates the entity objects from the static model
A memory free in 3 frames. How many times do the page fault occur? Assume that the running as the following page 7, 0 , 1, 2 , 0, 3, 0 , 4, 2 , 3 , 0 , 3 , 2 , 1, 2, 0, 1, 0 , 7 using LRU. *0/17 times13 times 12 times6 times
Which strategy is a simplest design for speeding up Paging? *1/1Page table is loaded into diskPage table is loaded into main memoryPage table is loaded into registers Page table is loaded into TLB
What is the correct approach with requesting the dedicated devices to solve deadlock using Ostrich algorithm? *0/1The device driver decides blocking and returning an error codeThe device driver stops the current jobs and releases the devices The device driver kills those requesting processesAll of the others
How to find all names containing a word?
Which of the following synchronization mechanisms does rely on busy-waiting? *0/1MonitorsAll of the others Message passingPeterson's algorithm
How many ways are to used to keep track of free block in disk space management? *0/1A linked list methodAll of the othersA indexed methodA bitmap method
Consider a swapping system in which the memory consists of the following hole sizes: 10K, 4K, 20K, 15K, 9K. Assume worst fit algorithm is used. Which holes are taken for successive segment requests of 8K, 12K, 10K? *0/110K, 15K, 20K10K, 20K, 15K20K, 15K, 10K9K, 15K, 10K
Which concept is described as "disk sectors are just numbered consecutively starting at 0, without regard to the disk geometry"? *1/1Physical block addressingLogical block addressing Virtual block addressingNone of the others
Which statement about the Producer-Consumer Problem to get trouble is true? *0/1All of the othersThe consumer and producer will sleep foreverThe wake up signal is lost Access to count variable is unconstrained
