Phone:+91-88823 09876

amity MCA online solve assignment for Unix and Shell Programming

Body: 

Assignment A                                                                                                                                                                                                                                                                                                                   

  1. Discuss the features of UNIX operating system that have made them such phenomenally successful Operating systems

2.What is shell programming? Write a shell program to print all the contents of an existing text file in upper case

3.Describe what the grep command does? Illustrate its use with an original example.

4.Write a shell program to generate the first “n” terms of the following sequence without using multiplication.

1 2 4 8 16 32………

5.What are filters? Give some examples of commands that can be used as filters

6.What are the different kinds of file systems available to UNIX operating system.

7.Write shell programs for the following:

i )  To find second largest number among the 5 numbers given.                                                                                                                                                                                                                                         ii)To find sum of all the alternate digits in a given 7 digit number.

iii). To count number of vowels in a given string.

  1. To take 2 strings as input, concatenate them and display the length of the resultant string.
  2. To display the reverse of a given number.

 

  1. 1. Write the UNIX commands for the following
  2. i) To display the sizes and names of the six largest files in /bin, listed in descending order of their size.
  3. ii) To display the number of words in the last 250 lines of any file.

iii) To display the name of the oldest file (and only the oldest file) in the current working directory                                                                                                                                                                          iv) To show the number of all files and directories (including hidden ones, but not. or.) in the directory /bin.                                                                                                                                                       v) Use the ps command, and the grep command, in a pipeline to find all the processes owned by you.

Assignment B                                                                                                                                                                                                                                                                                                                   1.What is an i-node and what information is contained in it? Describe how named files are mapped to i-nodes.

2.How is the information associating disc blocks with i-nodes represented?

3.What restrictions are placed on name to i-node links to simplify file system recovery?

 

Assignment C                                                                                                                                                                                                                                                                                                                   

1.UNIX uses ls to list files in a directory. The corresponding command in MS environment is–

Options

  1. lf
  2. list
  3. c dir
  4. None of above

 

2.A file with extension .txt–

Options

  1. Is a text file created using vi editor
  2. Is a text file created using a notepad
  3. Is a text file created using word
  4. & b) above

 

3.What is POSIX?

Options

  1. A standard operating system interface and environment
  2. A version of the UNIX operating system.
  3. A portable platform for Java programming
  4. A subsystem of Windows NT, 2000 and XP that isolates the Executive from

 

4.Which of the following files in the current directory are identified by the regular expression a?b*.

Options

  1. afile
  2. aab
  3. abb
  4. abc

 

5.For some file the access permissions are modified to 764. Which of the following interpretation are valid?

Options

  1. Every one can read, group can execute only and the owner can read and write.
  2. Every one can read and write, but owner alone can execute.
  3. Every one can read, group including owner can write, owner alone can execute
  4. None of above

 

 

6.The file’s properties in Windows environment include which amongst the following?

Options

  1. File owners’ name
  2. File size
  3. The date of last modification
  4. Date of file creation

 

7.Which of the following information is contained in inode structure?

Options

  1. The file size
  2. The name of the owner of the file
  3. The access permissions for the file
  4. All the dates of modification since the file’s creation

 

8.What are utilities?

Options

  1. Peripherals that are connected to a computer.
  2. Operating system routines that execute in supervisor mode.
  3. Data structures that are part of the kernel of an operating system
  4. Shells, compilers and other useful system programs.

 

9.Which directory under the root contains the information on devices?

Options

  1. /usr/bin
  2. /usr/sbin
  3. /usr/peripherals/dev
  4. /etc/dev

 

10.What is the command ‘mv’ used for in Unix?

Options

  1. To display the files in current directory
  2. To rename a file
  3. To move to a different directory
  4. To open a file in the Main Viewer

 

11.What is the result of typing the command pwd?

Options

  1. It allows you to change the password
  2. allows you to enter your password to log in
  3. It will display the name of your computer
  4. It will show your current location in the file system

 

12.Which unix command will display all files starting with an a?

Options

  1. mv a*
  2. cd
  3. ls
  4. ls a*

 

13.Unix Operating System is–

Options

  1. Time Sharing Operating System
  2. Multi-User Operating System
  3. Multi-tasking Operating System
  4. All the Above

 

14.The program is known as _________ that interacts with the inner part of called kernel.

Options

  1. Compiler
  2. Device Driver
  3. Protocol
  4. Shell

 

 

15.Identify the odd thing in the services of operating system–

Options

  1. Accounting
  2. Protection
  3. Error detection and correction
  4. None of above

 

16.Dead lock handling in ______ OS, the response time is very critical.

Options

  1. Multitasking
  2. Batch
  3. Online
  4. Real-time

 

17.Software is a program that directs the overall operation of the computer facilitates its use and interacts with the user. What are the different types of such software?

Options

  1. Operating system
  2. Language Compiler
  3. Utilities
  4. All of the above

 

18.PCB stands for–

Options

  1. Program Control Block
  2. Process Control Block
  3. Process Communication Block
  4. None of the above

 

19.The primary job of the operating system of a computer is to–

Options

  1. Command Resources
  2. Manage Resources
  3. Provide Utilities
  4. Be user friendly

 

20.Super computers typically employ–

Options

  1. Real time Operating system
  2. Multiprocessors OS
  3. Desktop OS
  4. None of the above

21.Which one of the following statements correctly describes the relationship between the processes and programs in a computer system at any given moment?

Options

  1. Every program stored in secondary memory must be associated with a process.
  2. A different program must be associated with every process.
  3. Several programs may be associated with the same process.
  4. Several processes may be associated with the same program.

 

22.Multiprogramming systems —

Options

  1. Are easier to develop than single programming systems
  2. Execute each job faster
  3. Execute more jobs in the same time
  4. Are used only on large main frame computers

 

23.Multiprocessing–

Options

  1. Make the operating system simpler
  2. Allows multiple processes to run simultaneously
  3. Is completely understood by all major computer vendors
  4. Allows the same computer to have the multiple processors

 

24.Which is not the state of the process?

Options

  1. Blocked
  2. Running
  3. Ready
  4. Privileged

 

25.The operating system of a computer serves as a software interface between the user and the-

Options

  1. Hardware
  2. Peripheral
  3. Memory
  4. Screen

 

26.A process is–

Options

  1. Program in execution
  2. A concurrent program
  3. Any sequential program
  4. Something Which Prevents Deadlock

 

27.The kernel of the operating system remains in the primary memory because–

Options

  1. It is mostly called (used)
  2. It manages all interrupt calls
  3. It controls all operations in process
  4. It is low level

 

28.Which of the following statement is not true?

Options

  1. Multiprogramming implies multitasking
  2. Multi-user does not imply multiprocessing
  3. Multitasking does not imply multiprocessing
  4. Multithreading implies multi-user

 

29.The term “Operating System ” means–

Options

  1. A set of programs which controls computer working
  2. The way a computer operator works
  3. Conversion of high-level language in to machine level language
  4. The way a floppy disk drive operates

 

30.What is a shell?

Options

  1. It is a hardware component
  2. It is a command interpreter
  3. It is a part in compiler
  4. It is a tool in CPU scheduling

 

31.The operating system manages–

Options

  1. Memory
  2. Processor
  3. Disk and I/O devices
  4. All of the above

 

32.chown means–

Options

  1. Changes the mode of operation to kernel mode
  2. Creates a thread
  3. Changes the users and/or group ownership of each given file
  4. Creates a child process

 

33.The process which terminates before the parent process exits, is called as–

Options

  1. Zombie
  2. Orphan
  3. Child
  4. None of above

 

34.Identify the point(s) that is not true w.r.t. signals–

Options

  1. Signals are software generated interrupts that are sent to a process when an event happens
  2. Signal delivery is analogous to hardware interrupts in that a signal can be blocked from being delivered in the future.
  3. Most signals are synchronous by nature.
  4. Most signal cause termination of the receiving process if no action is taken by the process in response to the signal

 

35.———Works as a command interpretor.

Options

  1. Hardware
  2. Kernal
  3. Shell
  4. CPU

 

36.An important task that the operating system performs is____, which keeps track of the files stored on a PC so that they can be retrieved when needed

Options

  1. File management
  2. File listing
  3. File recovery
  4. Disk management

 

37.The means by which an operating system or any other program interacts with the user is called–

Options

  1. user login
  2. program front-end
  3. user interface
  4. programming interface

 

38.———- was originally developed at AT&T Bell Labs as an operating system

Options

  1. Linux                                                                                                                                                                                                                                                                                                                           2.Solaris                                                                                                                                                                                                                                                                                                                                     3.Mac OS X                                                                                                                                                                                                                                                                                                                          4.UNIX

 

39.For multiprogramming systems, most UNIX operating systems use–

Options

  1. Swapping
  2. Demand paging
  3. Either (a) or (b)
  4. Neither (a) nor (b)

 

40.What are the tasks of an Operating System?

Options

  1. To manage all hardware and software resources
  2. To Allow creation of documents, images and music
  3. To provide a user interface
  4. All of the above                    
Title:
amity MCA online solve assignment for Unix and Shell Programming (General)
Short Name or Subject Code:  .
University:  Amity
Select Type: 
Service Type:  Assignments
Select Semester:  Semester- II Select Cource:  MCA
commerce line item type: 
Price: 
₹300.00
Product: