M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming

Similar documents
Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r

Getting your department account

Chapter-3. Introduction to Unix: Fundamental Commands

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

ADVANCED LINUX SYSTEM ADMINISTRATION

Linux Shell Script. J. K. Mandal

Introduction: What is Unix?

UNIX ASSIGNMENT 1 TYBCA (Sem:V)

Introduction to the UNIX command line

Lab Working with Linux Command Line

A Brief Introduction to Unix

Unix System Architecture, File System, and Shell Commands

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Computer Systems and Architecture

Operating Systems. Copyleft 2005, Binnur Kurt

Introduction to remote command line Linux. Research Computing Team University of Birmingham

Computer Systems and Architecture

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

Some useful UNIX Commands written down by Razor for newbies to get a start in UNIX

Practical Session 0 Introduction to Linux

Mills HPC Tutorial Series. Linux Basics I

A Brief Introduction to the Linux Shell for Data Science

(MCQZ-CS604 Operating Systems)

5/8/2012. Exploring Utilities Chapter 5

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

Unix/Linux Operating System. Introduction to Computational Statistics STAT 598G, Fall 2011

Introduction to Linux

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

Teaching and Examination Scheme: PAPER HRS TH TU PR TH PR OR TW TOTAL

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

BIOINFORMATICS POST-DIPLOMA PROGRAM SUBJECT OUTLINE Subject Title: OPERATING SYSTEMS AND PROJECT MANAGEMENT Subject Code: BIF713 Subject Description:

Operating Systems Lab 1 (Users, Groups, and Security)

Introduction to Unix: Fundamental Commands

Linux Command Line Primer. By: Scott Marshall

Traditional Access Permissions

Linux & Shell Programming 2014

Perl and R Scripting for Biologists

Unix Filesystem. January 26 th, 2004 Class Meeting 2

Useful Unix Commands Cheat Sheet

Course 144 Supplementary Materials. UNIX Fundamentals

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

CS197U: A Hands on Introduction to Unix

Lecture # 2 Introduction to UNIX (Part 2)

Introduction to Linux

5/20/2007. Touring Essential Programs

UNIX Essentials Featuring Solaris 10 Op System

acmteam/unix.pdf How to manage your account (user ID, password, shell); How to compile C, C++, and Java programs;

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT

2) clear :- It clears the terminal screen. Syntax :- clear

5/8/2012. Creating and Changing Directories Chapter 7

for more :-

Introduction to Linux

Unix as a Platform Exercises + Solutions. Course Code: OS 01 UNXPLAT

Unix Introduction to UNIX

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

Connecting to ICS Server, Shell, Vim CS238P Operating Systems fall 18

First of all, these notes will cover only a small subset of the available commands and utilities, and will cover most of those in a shallow fashion.

Operating Systems. Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) alphapeeler.sf.net/pubkeys/pkey.htm

The Unix Shell & Shell Scripts

Week 2 Lecture 3. Unix

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech

IMPORTANT: Logging Off LOGGING IN

Name of chapter & details

Lab 2: Linux/Unix shell

Basic Linux Command Line Interface Guide

Unix Tools / Command Line

Basic Linux Command Line Interface Guide

National University of Computer and Emerging Sciences Operating System Lab - 02 Lab Manual

Std: XI CHAPTER-3 LINUX

Introduction of Linux

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Files

Exercise Sheet 2. (Classifications of Operating Systems)

Linux Systems Administration Getting Started with Linux

CSCI 2132 Software Development. Lecture 4: Files and Directories

CS Unix Tools. Lecture 2 Fall Hussam Abu-Libdeh based on slides by David Slater. September 10, 2010

CS197U: A Hands on Introduction to Unix

Introduction to UNIX Command Line

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes

CHAPTER NO - 1 : Introduction:

Introduction to Linux. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

Quick Start Guide. by Burak Himmetoglu. Supercomputing Consultant. Enterprise Technology Services & Center for Scientific Computing

EECS2301. Lab 1 Winter 2016

Shell Programming Overview

CSE 390a Lecture 2. Exploring Shell Commands, Streams, and Redirection

Part 1: Basic Commands/U3li3es

commandname flags arguments

Basic Linux Commands. Srihari Kalgi M.Tech, CSE (KReSIT), IIT Bombay. May 5, 2009

Chap2: Operating-System Structures

Introduction To Linux. Rob Thomas - ACRC

Transcription:

IIMII 003-007303 M.C.A. (Sem.-lll) (CBCS) Examination November-20 13 CCA-3003 Operating System and LinuxlUnix programming Faculty Code: 003 Subject Code: 007303 Time: 2'/' Hoursl ITotal Marks: 70 I. Attempt the following. 15 I. directory is used to store the devices that are available to the linux system. (a) mnt (b) bin (c) root (d) dev 2. To change the password of user, command is used. (a) pwd (b) passwd (c) password (d) 3. kemel(s) include not only the CPU, Memory and IPC but they also include things like Device Drivers, File System Management and System Server Calls. (a) Micro (b) Monolithical (c) (a) and (b) both (d) 4. The filt; named digit has following contain: I 2 3 4 5 6 Now Head -n 4 digit I tail -2 What will be the output? (a) 1.,2,3,4 (b) 1,2 (c) 3,4 (d) 003-007303 P.T.O.

5. In login command, option is used to skip a second login authentication. (a) f (b) h (c) p (d) m 6. mv command is used for. (a) rename and copy a file (b) move and copy a file (c) rename or move a tile (d) copy a file 7. cat-b filename will display (a) line number which is not blank (b) line number including blank line (c) do not display line number (d) none of these 8. Initially when user open the file using vi editor, he(she) is in _ mode. (a) Input Mode (b) Execute Mode (c) Command Mode (d) All of these 9. In the batch command, the process is executed in the (a) Background (b) Foreground (c) (a) and (b) both (d) 10. is used to removcldelete the job which is created by at command. (a) at-d (b) atrm (c) Both (a) and (b) (d) J I. command is used to record everything printed on the screen. (a) record (b) store (c) touch (d) script 12. To give read permission to the tile, number is used. (a) 4 (b) 2 (c) (d) 7 13. command is used to copy a file. (a) copy (b) cpy (c) cp (d) All of these 14. is used to compare two file. (a) compare (b) compa (c) a and b both (d) 15. To cancel all changes to the file and exit the vi editor (a) :q! (b) :wq (c) :xq (d) A II ofthese 003-007303 2

2. Attempt any five of the following: 15 I. List and explain changing file permission with suitable example. 2. Explain Is command with its all options and with example. 3. List out and explain any three commands used for communication with suitable example. 4. Explain date command with all its options with suitable example. 5. Explain cron and crontab with suitable example. 6. List out types of operating system and explain anyone in detai I 3. Attempt any three of the following: 15 I. Write a shell script that counts the number of character, number of white spaces and number of Capital letter without command. 2. Write a Shell script to enter any file name and find out its extension. 3. Write a Shell script to print 11111 2222 333 44 5 4. Write a shell script which will reverse the string. 4. Attempt any two of the following: 15 I. Write a note on Process and list out and explain all the process related command with suitable example. 2. Explain Unix/Linux Architecture in detail. 3. Explain concept of piping and Tee command with suitable example. 5. Attempt any one of the following : 10 I. Write a note on File system and explain Regular Expression and list and explain regular expression command in detail with suitable example. 2. Explain Paging and Segmentation in detail with suitable example. 003-007303 3

H-IO 003-007303 MCA (CBCS) (Sem. III) Examination November-20l2 CCA-3003 : Operating System and LinuxlUnix Programming Faculty Code: 003 Subject Code: 007303 Time: 3 Hours] [Total Marks: 70 1. Answer the following multiple choice questions: (15) (1) command gi ves the list of the logged in user (a) who (b) which (c) who am I (d) (2) To view the process --- command is used (a) Is (b) Ip (c) PI (d) (3) Is-X --- (a) recursive list (b) multicolumn output (c) List only dir name (d) (4) directory contains the configuration file of Linux system (a) bin (b) sbin (c) etc (d) (5) directory contains the all the devices files of the Linux/Unix system (a) bin (b) dev (c) etc (d) (6) command is used to copy 8 file (a) copy (b) cpy (c) cp (d) All of the above (7) Which of the following is true Linux command? (a) rm papl (b) rm papl p8p2 (c) rm * (d) All of the above (8) Which of the following is true for mv? (a) (b) (c) (d) It renames a file It moves a group of files to a different directory It never creates copy All of the above (9) rm command asks the user for confirmation before removing each file in the list (a) - f (b) -a (c) -( (d) 003-007303 1 P.T.O.

(l0) we can be used to (a) count the (b) count the lines (c) count the characters Cd) All of the above (II) IS to two files compare (b) compa (c) (a) (d) (I Which is used to assign absolute permission for chmod? (a) + (b) (c) (d) (13) In chmod is used for read (a) 4 (b) 2 (c) 1 (d) None of (14) To save the mvi (a) :w (b) :x (c) (a) or (b) both (d) None of (I 5) To in the vi (a) :q (b) :wq (d) All of the above 2. Attempt any (1 (1) Explain with its all options. (2) What is file/directory permission? Explain (3) What is.? the recording the with example. (4) Write short note on printfwith its all fonnat (5) Explain utility of "bc" with suitable example. (6) What is in LinuxfUnix? List arld explain in Linux/Unix. 3. Attempt any three following: (15) (1) Explain file system tree in detail Is its all options. of tar? Explain its with suitable example. (4) note on grep command. 4. following: that will count characters and (2) Write a shell script that will convert to the capital for file. (3) What is pennission? Explain and directory 5. anyone the following: (10) Linux/Lnix architecture in is vi? Explain the of vi with suitable 003-007303 2

111111 1111111111 111111 1IIIIIJil 1111 1111111111111111 111111111111111111111111111111111111111111 -UR-17]/DDj-007303111 003-007303 M. C. A. (CBCS) (Sem. III) Examination November - 2011 CCA-3003 Operating System & LinuxlUnix Programming (New Course) Faculty Code : 003 Subject Code : 007303 Time : 3 Hours] [Total Marks : 70 Instruction: Write answer of all questions in main answer sheet. 1 Answer the following Multiple Choice Questions : 15 (1) Which of the following is not a page replacement algorithm? Optimal Page Replacement Clock Page Replacement Least Reference used page Replacement Working set Page Replacement (2) Fixed partition is also called Static Partition Dynamic Partition Single Partition UR-173 I 003-007303] 1 [Contd...

(3) In Paging which of the following tables are created 1 Segmented Map Table 2 Page Map Table 3 Memory Map Table 4 Job Table 1, 2, 3 2,3, 4 All of above (4) The page which is in demand is not currently in the memory, but it has to be brought from secondary memory, then is generated. Error Swap out Page Fault (5) pwd command is used to enter password reenter password Display present working directory none of these (6) To save the file and exit from the vi editor which of the following command is used? :wq -:on :q UR-173 I 003-007303] 2 [Contd...

(7) File Descriptor for standard Input is 0 1 2 3 (8) For redirecting the input which special character is used? < > = (9) uniq -d file name Command is used to Display non-duplicate lines Display only duplicate lines count the number of duplicate lines (10) Write command is used to print on the terminal communicate with another login user Display the information about login user UR-173 I 003-007303] 3 [Contd...

(11) chmod command is used to changing the permission change the owner changing the content of the file (0) changing the gl'oup (12) Priority based scheduling is cailed, policy. Preemptive Non ~Preemptive (CO Both 1 and 2 (0) (13) directory is used for mount points. mount directory root directory etc directory (0) mnt directory (14) To give the execute permission, which value is used? 1 2 3 (0) 4 UR-173 / 003-007303] 4 [Contd...

(15) touch command is used to create a new empty file updating date and time of existing file both A and B 2 Attempt any five of the following : 15 (i) (ii) Explain process with its various states Difference between paging and segmentation with example (iii) Difference between fixed partition and dynamic partition. (iv) Explain compaction for memory management with example. (v) Explain real time operating system. (vi) Differentiate sort and uniq Unix command with example. 3 Attempt any three of the following : 15 (i) (ii) What is scheduling? List various types of scheduling technique. Explain priority scheduling.. Explain Foreground and Background process with exaple. (iii) Explain following command: Write Finger Grep Uniq Tee UR-173 / 003-007303] 5 [Contd...

(iv) Explain following command : Kill At Who Diff Comm 4 Attempt any two of the following : 15 (i) (ii) Explain contiguous and non contiguous memory allocation Explain different types of operating systems (iii) Why Page replacement is needed? List various page replacement algorithms. Explain any two in detaill. 5 Attempt anyone of the following : 10 (i) (ii) Count the no. of lines, wol'ds & characters fl'om the file which is given from the command prompt. Write a shell script to check whether the input no. is prime number or not. UR-173 I 003-007303] 6 [100]