Q1. In Java, each thread has its own _____________ in which it runs?
(a) main() method
(c) Call stack
Q2. Which of the following protocol is used for remote terminal connection service?
Q3. Circuit Switching takes place at which layer?
(a) Transport layer
(b) Application layer
(c) Presentation layer
(d) Physical layer
(e) Data link layer
Q4. Which of the following protocol uses both TCP and UDP?
Q5. Page fault occur in which technique in operating system?
(c) Dynamic partition
(d) Virtual Memory
Q6. What is Process Control Block?
(a) It is a Process type variable
(b) It is a data structure
(c) A secondary storage sections
(d) A block in memory
(e) A page management technique
Q7. Which of the following situation occurs when one or more threads in your program are blocked from gaining access to a resource and, as a result, cannot make progress?
Q8. Cortana is a feature of which operating system?
(a) Windows 8
(b) Windows 10
(c) windows 8.1
(d) MacOS 10.13.2
(e) MacOS 10.12
Q9. Which data structure is used in BFS?
(e) Both (c) and (d)
Q10.Which of the following is the time complexity of insertion sort?
Sol. Thread of execution means an individual ‘lightweight’ process that has its own call stack. In java each thread has its own call stack.
Sol. Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers. Through Telnet, an administrator or another user can access someone else’s computer remotely.
Sol. Circuit switching is a switching method in which a dedicated communication path in physical form between two stations within a network is established, maintained and terminated for each communication session. It has basically three phases as circuit establishment, data transfer and circuit disconnect.
Sol. DNS uses both TCP and UDP. DNS uses TCP for Zone transfer and UDP for name queries either regular (primary) or reverse. UDP can be used to exchange small information whereas TCP must be used to exchange information larger than 512 bytes.
Sol. A page fault is a type of interrupt, raised by the hardware when a running program accesses a memory page that is mapped into the virtual address space (virtual memory), but not loaded in physical memory.
Sol. Process Control block is used for storing the collection of information about the Processes and this is also called as the Data Structure which Stores the information about the process. The information of the Process is used by the CPU at the Run time.
Sol. starvation occurs when a particular process needs to wait indefinitely, as it never gets a chance to proceed further. In this situation, the process or transaction either waits indefinitely or gets in restarted mode again and again. Deadlock and starvation differ from each other. Deadlock occurs when none of the processes in the set is able to move ahead due to occupancy of the required resources by some other process. On the other hand, starvation occurs when a process waits for an indefinite period of time to get the resource it requires.
Sol. Cortana is a personalized digital assistant for windows 10. Cortana helps to do something like: Give you remainder based on time, place or people, create and manage list, open any app on your system, find facts, file, places and information etc.
Sol. Breadth First Search (BFS) algorithm traverses a graph in a breadth ward motion and uses a queue to remember to get the next vertex to start a search, when a dead end occurs in any iteration.
Sol. The time complexity of insertion sort is O(n^2)