Questions
Which of the following methods is used to pre-allocate a space for a certain number of characters, after a StringBuffer has been constructed?
- setLength()
- length()
- capacity()
- startWith()
- ensureCapacity()
Which of the following package methods returns the name of the invoking package?
- String getName()
- String getImplementationTitle()
- String getImplementationVersion()
- String getImplementationVendor()
- String getSpecificationTitle()
In general case, page fault decreases with increase in the number of frames. But in some page replacement algorithm, the page fault rate may increase with the increasing number of frames. This unexpected phenomenon is called __________.
- thrashing
- swapping
- caching
- belady's anomaly
- none of the above
Which of the following statements is/are true about Optimal page replacement algorithm?
(i) It has the lowest page fault rate in all page replacement algorithm.
(ii) Replacement of page is done in contrast of future perception.
(iii) This algorithm requires complete reference string at the starting of algorithm.
(iv) It is the most feasible algorithm.
- Only i and ii
- Only i, ii and iii
- Only ii and iii
- Only ii, iii and iv
- All of the above
Which of the following fields of processes refers to the total number of pages in the process?
- PID field
- TTY field
- P flag
- SZ field
- None of the above
Which of the following options gives the correct combinations of the following statements about LRU (Least recently Used) page replacement algorithm?
(i) LRU chooses the page for replacement, which has not been used for a long time period.
(ii) It encounters minimum page fault.
(iii) LRU suffers from Belady's Anomaly.
(iv) It doesn't require complete page reference string at the starting of algorithm.
- i, ii and iv
- i and iv
- i and ii
- i, ii and iii
- all of the above
In a particular system, page size is 1KB. A process P wants to execute in that system, which requires 244658 bytes of memory for complete execution. Find out the number of frames (F) required for the execution of P and internal fragmentation (if any).
- 239 frames and there exists 70 bytes of internal fragmentation
- 239 frames required and no internal fragmentation
- 239 frames and paging doesn't suffer from external as well as internal fragmentation
- 238 frames and paging doesn't suffer from any type of fragmentation
- 239 frames and there exists 78 bytes of internal fragmentation
Ensurecapacity() method in Java is used
- to pre allocate space for a certain number of characters after a string buffer is constructed
- to determine whether a given string begins with a specified string
- to find the total allocated capacity of the stringbuffer
- to find the correct length of the stringbuffer
- to set the length of the stringbuffer
___________ are the organisational parts of the UML model, which are the boxes into which a model can be decomposed.
- Structural things
- Behavioural things
- Annotational things
- Grouping things
- None of the above
________________ view of the system encompasses the threads and processes that form the system's concurrency and synchronisation mechanisms.
- Deployment
- Process
- Design
- Implementation
- None of the above
What is the name given to the use of computing resources that are delivered as a service over a network?
- Facebook
- Artificial intelligence
- Cloud computing
- Virtualisation
- Networking
If the base address and limit value address for a particular process P holds 200050 and 300050, then what is the valid address range which is accessible by process P?
- The valid address range is : From 200050 (basic address) to 300050 (allowed limit value address).
- The valid address range is : From 200050 to 400050.
- Incorrect data, limit address can’t be more than base address.
- Complete address space including OS space.
- The valid address range is : From 200050 to Upper limit, which is 500100.
What kind of service is SMDS (Switched Multimegabit Data Service)?
- Simple connectionless packet delivery service
- Simple connection-oriented bit delivery service
- Simple connection-oriented packet delivery service
- Simple connectionless bit delivery service
- Simple connectionless byte delivery service
What is the simultaneous transmission of data to a number of stations called?
- Broadcasting
- Propagation
- Unicasting
- Aloha
- Bandwidth
Which of the following best describes a digital signature?
- A scanned signature
- Handwritten signature in machine language
- Signature in binary form
- Encrypting information
- Electronic signature