Question

In: Computer Science

What runs in user mode             A.        Email reader             B.      

What runs in user mode

            A.        Email reader

            B.        Web browser

            C.        User Interface Program

            D.        Music Player

            E.            Operating system

            F.         Device drivers

Choose one the following

            a.         a and e

            b.         a b,c,d

            c.         a,f

            d.         e,d

            e.         f,b

2)         Choose which are parameters of a process table entry

            A.        Process ID

            B.            Program Counter

            C.        Stack Pointer

            D.        User ID

            E.         Signals

Choose one of the following

            a.         a, b,

            b.         d, e

            c.         a, d

            d.         a, b,c,d

            e.         a, b, c, e

3)         What are the peripheral components which are directly connected to the computer bus.

            A.            Monitor

            B.            Keyboard

            C.        CPU

            D.            Memory

            E.         Hard-Disk

Choose one of the following

            a.         a, b, c

            b.         a, b, e

            c.         c, d

            d.         a, b, c, d

4) What is operating system?

            A.            collection of programs that manages hardware resources

            B.        system service provider to the application programs

            C.        link to interface the hardware and application programs

            D.        all of the mentioned

5) If a process fails, most operating system write the error information to a

            a.         A log file

            b.            Another running process

            c.         A new file

            d.         None of the mentioned

6) To access the services of operating system, the interface is provided by the

            a.         System calls

            b.          API(Application Programmers Interface)

            c.         Library

            d.            Assembly Instructions

7) Which one of the following error will be handle by the operating system?

            a.         Power failure

            b.         Lack of paper in printer

            c.            Connection failure in the network

            d.         All of the mentioned

Solutions

Expert Solution

Question 1:

Correct Answer: b

Explanation:

The system call provides the service to the user and it is a way by which the computer program requests service from the kernel. The kernel manages the key component of the operating system like device management, file management, CPU scheduling, memory management, etc.

The operating system run in dual mode as given below:

1. User mode

2. Kernel-mode/ Monitor mode/ Privilege mode/ System mode

In user mode, a program was written by the user run and in this mode, simple arithmetic instruction or which requires some ALU operations are executed.

In kernel mode, the privilege instruction like reading from the disk, writing into the disk, etc is executed and this type of instruction deals with Input/Output. This instruction must never run in user mode.

The main purpose of the system call is to open a file, to read a file, to write a file, to create a new process, wait for another process, close a file, or exit a process, etc.

The system call works as an intermediate between the user program and the kernel. The user-level process can request the operating system or kernel through the system call.

The system calls are executed in kernel mode only.

The email reader, web browser, user interface program, and music player runs in user mode and the operating system and device drivers run in kernel mode.

So, only option b is correct.

Question 2:

Correct Answer: d

Explanation:

The process table or process control block is a data structure used by the operating system which contains the information which stores the scheduling information of a process. It stores the entire information about a process.

Content of the Process Control Block:

  • Program Counter
  • Process state
  • Memory management information
  • CPU scheduling information
  • General Purpose Register
  • Process ID
  • Parent Process ID
  • Stack Pointer
  • User ID

So, only option d is correct.

Question 3:

Correct Answer: No option available

Explanation:

In the given options, only the monitor and keyboard are peripheral devices but all others are not peripheral devices. But in the given options the non-pheripheral devices also included.

So, non of the option is correct.

Question 4:

Correct Answer: D

Explanation:

The operating system is the system software that handles the computer's basic functionality like scheduling, input/output operation resource allocation, file system manipulation, etc.

It is an interface between the computer hardware and the user.

Services offered by the operating system:

  • Input/Output operation
  • Resource allocation
  • File system manipulation
  • User interface
  • Program execution
  • Communication
  • Security

The two main roles of the operating system are:

  1. Resource Management
  2. Security

So, option D is correct.


Related Solutions

MTAs are unauthenticated. What effect would requiring user authentication to send email have on the email...
MTAs are unauthenticated. What effect would requiring user authentication to send email have on the email system?
A start-up firm as developed a new email app that allows the user to decide what...
A start-up firm as developed a new email app that allows the user to decide what mail gets into their mail box. This company doesn't have a lot of start-up capital and they are funded by a Venture Capital firm that wants an expected 18% return. They are going to use the Agile model and release various versions of their app overtime as they see what works. There 3- year start up plan includes: Initial Development Expenses of $100,000 per...
You will create a program that runs in one of two modes, interactive mode and test...
You will create a program that runs in one of two modes, interactive mode and test mode. The mode will determined by the command line, passing in a "-i" flag for interactive or "-t" for test mode. Require the user to pass in a flag. $> ./lab02 -i Make a selection: 1) Insert value at position 2) Remove at position 3) Replace value at position 4) Print length 5) Print list 6) Exit Choice: $> ./lab02 -t <output from your...
Write a program that runs on SPIM that allows the user to enter the number of...
Write a program that runs on SPIM that allows the user to enter the number of hours, minutes and seconds and then prints out the total time in seconds. Name the source code file “seconds.asm
Write a program that runs on SPIM that allows the user to enter the number of...
Write a program that runs on SPIM that allows the user to enter the number of hours, minutes and seconds and then prints out the total time in seconds. Name the source code file “seconds.asm Explain step by step
a) Find the mode of the beta distribution b) Find the mode of the gamma distribution
a) Find the mode of the beta distribution b) Find the mode of the gamma distribution
Using the given file, ask the user for a name, phone number, and email. Display the...
Using the given file, ask the user for a name, phone number, and email. Display the required information. These are the Files that I made: import java.util.Scanner; public class Demo5 { public static void main(String args[]) { Scanner keyboard = new Scanner(System.in); System.out.println("New number creation tool"); System.out.println("Enter name"); String name = keyboard.nextLine(); System.out.println("Enter phone number"); String phoneNumber = keyboard.nextLine(); System.out.println("Enter email"); String email = keyboard.nextLine(); Phone test1 = new SmartPhone(name, phoneNumber, email); System.out.print(test1); System.out.println("Telephone neighbor: " + ((SmartPhone) test1).getTeleponeNeighbor()); }...
6. A) What is the need for data intensive grid service mode ls? B) What is...
6. A) What is the need for data intensive grid service mode ls? B) What is grid portal and explain its benefits.
A 12-month email study looked at the click-through responses triggered by two versions of email, Version A and Version B.
The situation… • A 12-month email study looked at the click-through responses triggered by two versions of email, Version A and Version B. • In all 24 distributions (12 for Version A; 12, Version B) emails were drawn randomly. • People receiving A or B versions were unrelated (randomly selected every time for both version of the email). • The researchers had no idea which version would trigger more clicks. • Alpha was set at p
user A sends two messages to user B using ElGamal. user C listens on the line...
user A sends two messages to user B using ElGamal. user C listens on the line and intercepts both messages, and got the decryption of the first message. explain well if user C can decrypt the second message as well: 1)user A sends two messages E(m) and E(m'). to encrypt the first message user A used the variable k and to encrypt the second k+5. User C knows that there's a difference of 5 between the k values chosen. can...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT