|Description: This test consists of 20 questions about the basics of computer like data structure, database, operating system and computer languages etc.|
|Number of Questions: 20|
|Created by: Amal Dixit|
|Tags: gate database os Computer Basics|
Which of the following necessary and sufficient condition of deadlock shows that the resources are used in the processes must be non-sharable?
This condition determines that there must be at least one unsharable resource so that the processes claim exclusive control of resources they need.
Which of the following services is not provided by the operating system?
All the above services are provided by an OS.
Which of the following CPU scheduling algorithms can be preemptive as well as non-preemptive?
SJF is a non-preemptive as well as preemptive. In preemptive SJF, the process with smallest run time is run next. In non-preemptive SJF, the process with the smallest amount of time remaining until completion is selected to execute. Non-preemptive SJF is also called SRTF( Shortest Remaining Time First).
Which of the following statements is/are false?
A thread is a lightweight process and multiple threads can exit within the same process so there is no need to manage the resources by the operating system as compared to process switching, hence thread switching does not need the operating system interaction.
Which of the following is/are called program threats in operating system?
Yes, only (1) and (2) are examples of program threats.
Which of the following is/are the disadvantage(s) of the time-sharing operating systems?
There is no security and integrity of the data as the operating system can not easily find the appropriate data to allocate the particular resource as the response time is only a few seconds. So it is a disadvantage of it.
Which of the following is the task of spooling in operating system?
This statement shows the property of spooling in the operating system. In this process the operating system can do other tasks with the computational task.
Which of the following is/are non-linear data structures?
In binary search tree, the elements are not in a linear list , they have hierarchical structure so it is a non-linear data structure.
Which of the following is not a reserved word in C++ language?
All of the above are keywords in C++.
Which of the following layers in OSI model provides congestion control in networking?
Yes, this layer is responsible to provide congestion control as the routers receive the packet faster than they forward them so this layer can discard the queued packets to make a room for the arriving packets.
Which of the following is an example of a single user computer system?
It is an example of a single user computer system and has more powerful microprocessor as compared to the personnel computer.
Which of the following database transactions ensures that the effect of the transaction will persist despite of system crashes or power loss, if the transaction is committed?
It ensures that the if the transaction fails due to the power failure or system crash, then its effect will remain in the system.
Which of the following SQL (Structured Query Language) commands is used to remove the table structure form the database?
Yes, by using drop command we can remove an object from the database and if we want to drop a table then all the table structure will be removed form the database and we can not get back it.
Which of the following statements is/are not true?
No, internet is less safe as compared to intranet as intranet is accessible only for the specific users and internet is accessible widely so there may be less safety in using internet as different types of cyber attacks or threats may harm to the system while using the internet.
Which of the following is/are true statement(s)?
Yes, all the three statements are true.
Which of the following SQL clauses is used to place a condition while arranging identical data into a group?
Yes, by using Having clause, we can make a condition on the data, which are retrieved by the Group By clause.
Which of the following commands in transaction control in SQL is used to save the changes in the database by the transaction?
Yes, this transaction command is used to save the work that is performed by the transaction on the database.
Which of the following is not related to stack data structure?
These terms are not related to the stack data structure . Front and rear are the terms related to queue data structure, in which all the insertion are performed only at one end, called rear and all the deletion are performed at one end, called front end.
Which of the following statements is false?
This is the correct choice as all the above statements are true.
Which of the following statements is/are true?
Yes, both the options are true.