TYBCA US05EBCA01- BASICS OF UNIX OPERATING SYSTEM QUESTION BANK MULTIPLE CHOICE QUESTIONS

Similar documents
Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

HP-UX Essentials and Shell Programming Course Summary

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

Thirty Useful Unix Commands

Tutorial 0A Programming on the command line

Command Line - Part 1

Linux command line. An introduction to the Linux command line for genomics. Susan Fairley

Introduction to the UNIX Operating System and Open Windows Desktop Environment

Command Line Crash Course For Unix

A Crash Course on UNIX

An Introduction to the Linux Command Shell For Beginners

Unix Scripts and Job Scheduling

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

Unix Sampler. PEOPLE whoami id who

1 Basic commands. 2 Terminology. CS61B, Fall 2009 Simple UNIX Commands P. N. Hilfinger

Syntax: cd <Path> Or cd $<Custom/Standard Top Name>_TOP (In CAPS)

Basic C Shell. helpdesk@stat.rice.edu. 11th August 2003

Hands-On UNIX Exercise:

Introduction to Shell Programming

Command-Line Operations : The Shell. Don't fear the command line...

CPSC2800: Linux Hands-on Lab #3 Explore Linux file system and file security. Project 3-1

Introduction to Mac OS X

ICS 351: Today's plan

Lab 1: Introduction to C, ASCII ART and the Linux Command Line Environment

CS 103 Lab Linux and Virtual Machines

University of Toronto

Agenda. Using HPC Wales 2

Tutorial Guide to the IS Unix Service

USEFUL UNIX COMMANDS

A UNIX/Linux in a nutshell

Introduction to Linux and Cluster Basics for the CCR General Computing Cluster

Linux Overview. Local facilities. Linux commands. The vi (gvim) editor

L01 Introduction to the Unix OS

grep, awk and sed three VERY useful command-line utilities Matt Probert, Uni of York grep = global regular expression print

Shell Scripts (1) For example: #!/bin/sh If they do not, the user's current shell will be used. Any Unix command can go in a shell script

Open Source Computational Fluid Dynamics

Unix Shell Scripts. Contents. 1 Introduction. Norman Matloff. July 30, Introduction 1. 2 Invoking Shell Scripts 2

Answers to Even- Numbered Exercises

AN INTRODUCTION TO UNIX

Linux System Administration on Red Hat

UNIX - FILE SYSTEM BASICS

Unix Tools. Overview. Editors. Editors nedit vi Browsers/HTML Editors Mail Tools Utilities xv xman ftp

Unix Guide. Logo Reproduction. School of Computing & Information Systems. Colours red and black on white backgroun

CLC Server Command Line Tools USER MANUAL

Programming for GCSE Topic H: Operating Systems

Introduction to the new mainframe Chapter 4: Interactive facilities of z/os: TSO/E, ISPF, and UNIX

List of FTP commands for the Microsoft command-line FTP client

Birmingham Environment for Academic Research. Introduction to Linux Quick Reference Guide. Research Computing Team V1.0

Basic Linux & Package Management. Original slides from GTFO Security

An Introduction to Using the Command Line Interface (CLI) to Work with Files and Directories

Introduction to. UNIX Bob Booth December 2004 AP-UNIX2. University of Sheffield

Running your first Linux Program

How To Use The Librepo Software On A Linux Computer (For Free)

Higher National Unit Specification. General information for centres. Multi User Operating Systems. Unit code: DH3A 34

Computer Engineering

RECOVER ( 8 ) Maintenance Procedures RECOVER ( 8 )

CMSC 216 UNIX tutorial Fall 2010

Introduction to the UNIX Operating System on IT Systems

Introduction to Running Hadoop on the High Performance Clusters at the Center for Computational Research

PHP Debugging. Draft: March 19, Christopher Vickery

UNIX / Linux commands Basic level. Magali COTTEVIEILLE - September 2009

LSN 10 Linux Overview

OPERATING SYSTEM SERVICES

Unix the Bare Minimum

Training Day : Linux

Introduction to Unix Tutorial

DOS Command Reference

Vim, Emacs, and JUnit Testing. Audience: Students in CS 331 Written by: Kathleen Lockhart, CS Tutor

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

TNM093 Practical Data Visualization and Virtual Reality Laboratory Platform

Cygwin command line windows. Get that Linux feeling - on Windows

OLH: Oracle Loader for Hadoop OSCH: Oracle SQL Connector for Hadoop Distributed File System (HDFS)

Advanced Bash Scripting. Joshua Malone

UNIX Tutorial for Beginners

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

New Lab Intro to KDE Terminal Konsole

Appendix K Introduction to Microsoft Visual C++ 6.0

HOW TO USE THIS DOCUMENT READ OBEY

Android Environment Emulator

Chapter 2 Text Processing with the Command Line Interface

Hadoop Hands-On Exercises

The Linux Operating System and Linux-Related Issues

INASP: Effective Network Management Workshops

Beyond Windows: Using the Linux Servers and the Grid

Introduction to Shell Scripting

Setting Up the Site Licenses

Introduction to Operating Systems

VIP Quick Reference Card

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Higher National Unit Specification. General information for centres. Unit title: Multi User Operating Systems. Unit code: D76G 34

SNMP Upgrade Procedure for NV Transmitters

This presentation explains how to monitor memory consumption of DataStage processes during run time.

Editing Files on Remote File Systems

Computational Mathematics with Python

Answers to Even-numbered Exercises

Operating Systems. Study this screen display and answer these questions.

Lab 1: Introduction to the network lab

QUICK START BASIC LINUX AND G++ COMMANDS. Prepared By: Pn. Azura Bt Ishak

How to test and debug an ASP.NET application

An A-Z Index of the Apple OS X command line (TERMINAL) The tcsh command shell of Darwin (the open source core of OSX)

Transcription:

TYBCA US05EBCA01- BASICS OF UNIX OPERATING SYSTEM QUESTION BANK MULTIPLE CHOICE QUESTIONS UNIT 1 1. In UNIX resources are shared by all the users, so UNIX is System. A. multiuser C. portable B. featureless D. multitasking 2. Root directory in UNIX is denoted by A. -- C. / B. () D. \ 3. directory contain executable file for most of the UNIX commands. A. lib C. dev B. bin D. tmp 4. dev directory contain files for controlling. A. input/output C. Both A and B B. OS D. None 5. When scheduler submits process to the queue, process is said to be in state. A. hold C. run B. submit D. ready-to-run 6. Process whose execution comes to an end will be in state. A. hold C. complete B. submit D. run 7. PWD stands for. A. present working directory C. present working diary B. past working directory D. past working diary 8. Unix Operating System is an. A. Time Sharing Operating System C. Multi-tasking Operating System B. Multi-User Operating System D. All the Above 9. How do you get help about the command "cp"? A. help cp C. cp? B. man cp D. cat cp 10. How do you rename file "new" in file "old"? A. mv new old C. rm new old B. cp new old D. rn new old 11. Which command is used with vi editor to move the cursor one row up? A. i C. h B. j D. k 12. Which command is used with the vi editor to save file and remain in the editing mode? A. :q C. :w B. :q! D. :x Page 1 of 6

13. How do you delete a file? A. rm filename C. touch filename B. cut filename D. less filename 14. works as a command interpreter. A. Hardware C. Kernel B. Shell D. CPU 15. vi always starts in mode. A. command C. last line B. insert D. ex 16. To get out of insert mode, press the key, which will put you back into command mode. A. Shift C. Esc B. Ctrl D. Alt 17. Which command is used to copy all files having the string chap and any two characters after that to the progs directory? A. cp chap* progs C. cp chap[12] /progs/*.* B. cp chap?? progs D. None of these UNIT 2 1. Which command can be used to display the contents of a file on the screen? A. ls C. cat B. grep D. cut 2. How can you append the output of a command to a file? A. command < file C. command > file B. command << file D. command >> file 3. When the shell is used from a terminal it will issue a prompt before reading a command. By default this prompt is. A. > C. & B. $ D. # 4. The shell prompt when further input is needed, by default it is. A. > C. & B. $ D. # 5. The cat command is used to A. capture a file C. copy a file B. print a file D. display a file 6. When you execute a script called test at $ prompt as $test hi hello then test will be stored in positional parameter. A. $# C. $0 B. $* D. $1 7. Use of \ in removing meaning of any meta character placed after it is known as. A. Escaping C. Editing these B. Treating D. None o Page 2 of 6

8. Any command surrounded by backquote is executed by shell and its output is inserted in the place it was found. This is known as. A. Command replacement C. Command substitution B. Parsing D. Command execution 9. pathname uses the current directory as point of reference for the file. A. Relative C. Both A and B B. Absolute D. None of these 10. commands are executed directly by the shell. These commands will not have a separate process running for each. A. External C. Internal B. Background D. None of these UNIT 3 1. if statement ends with. A. end C. end if B. fi D. none 2. case statement ends with. A. end C. end case B. esac D. None of these 3. for logical AND operator option is used A. a C. o B. c D. -d 4. For Logical OR operator option is used. A. a C. o B. c D. -d 5. Which of the following are used as loops? A. for C. Both A and B B. while D. None of these 6. For taking input from the user in shell script command is used A. echo C. Both A and B B. read D. None of these 7. To display the content as it is command is used. A. echo C. Both A and B B. read D. None of these 8. To turn debugging on option is used with set command. A. vx C. -dx B. +vx D. None of these 9. Choose incorrect statement. A. Shell scripts can accept arguments. B. Shell scripts are compiled. C. Shell scripts are interpreted. D. Shell supports programming. Page 3 of 6

UNIT 4 1. Which command is used to extract specific columns from the file? A. cat C. cut B. grep D. paste 2. In delimited file format, designated keyboard characters known as are used to maintain the data's tabular organization. A. delimiters C. partition B. separator D. divider 3. format eliminate the need for delimiters. A. Fixed length file C. Both A and B B. Delimited file D. None of above 4. Which of the following is not a filter program? A. date C. cat B. sort D. grep 5. Which of the following results in error? A. expr 4 + 5 C. expr 4 * 5 B. expr 4-5 D. expr 4 / 5 6. command copies to output those lines in the input that match a specified pattern. A. cut C. echo B. paste D. grep 7. Full form of grep is. A. Globally search with Regular Expressions and Print B. Global Read Expression and Print C. Goto Regular Expression and Print D. None of above 8. Full form of sed is A. Sequential Data C. Sequence Editor B. Stream Editor D. None of these 9. option of grep doesn t display lines matching expression. A. -c C. -v B. -i D. -x 10. Which symbol will be used with grep command to match the pattern pat at the beginning of a line? A. ^pat C. pat$ B. $pat D. pat^ 11. command display the status of a process. A. ls C. grep B. ps D. cat Page 4 of 6

SHORT QUESTIONS (Each of 2 ) UNIT 1 1. List Strength of UNIX like Operating system. 2. List Weaknesses of UNIX like Operating system. 3. Define term Kernel in context of UNIX. 4. Define Remote Access and Remote Login. 5. Explain Command Line in brief. 6. List Modes of Operation of vi Editor. 7. Explain Pattern Searching and Replacement facility of vi editor. 8. Discuss the following commands in short taking an example. pwd, cd, mkdir, rmdir, cp, mv, rm (2 mark each) 9. List all saving and quitting commands of vi editor. 10. List out any four environment variable with their usage. UNIT 2 1. Define: prompt, external command 2. Explain in brief: Building block approach 3. Explain quoting in brief. 4. Explain escaping in brief. 5. Define: internal command. Give 2 examples of internal commands. 6. What is relative path? Explain with example. 7. Differentiate: > and >> 8. Explain cat command in brief. 9. Explain echo command in brief. UNIT 3 1. Explain if statement in LINUX. 2. Explain Test command for integer comparison. 3. Differentiate: if and case 4. Explain while loop with example 5. Explain echo command 6. Explain read command 7. Explain for loop with example. 8. Explain set command in brief. UNIT 4 1. Define: filter. Give 2 examples of filter. 2. Explain use of expr for performing arithmetic operations. 3. What is the difference between text files having fixed width format and delimited format? 4. Explain v and c option of grep command. 5. Explain n option of sed filter. 6. Explain use of ^ and $ in grep command. 7. Diffrentiate: expr and bc command 8. State any 4 attributes displayed by l option of ls command. Page 5 of 6

LONG QUESTIONS (>=3 ) UNIT 1 1. Write a note on Brief history of UNIX operating system. [4] 2. List and explain Strength and Weaknesses of UNIX like Operating System. [5-6] 3. Describe in detail: Kernel & shells Multiuser & multitasking 3 mark each File system Processes Environment & environment variables Command line Online manual 4. Write a detail note on Modes of Operation of vi editor and also explain Context [4-5] Switching between them. 5. Explain Editing and Navigation of Text taking an appropriate example. [4-5] 6. Explain concept of CUT-COPY-PASTE in vi editor. [4-5] 7. Explain pattern searching and replacement utility of vi editor. [4-5] UNIT 2 1. Write note on: Input / Output redirection 2. Write note on: Quoting and Escaping [4-5] 3. What is path? Explain Absolute and Relative path with example. [4-5] 4. Write note on: Command substitution [4-5] 5. Write note on: Command line argument [4-5] 6. Explain Command line processing. [4-5] 7. [4-6] UNIT 3 1. Explain case statement with example. [3-4] 2. Explain if and case statement in LINUX. [6-7] 3. Explain for loop in Linux with example. [4-5] 4. What is Shell script? Explain uses of Shell script and execution of shell script. [4-5] 5. Explain all control structures in details. [10] 6. Explain turning debugging on and off procedure in detail. [4] 7. Explain while loop in detail with example. [4] UNIT 4 1. Explain method of processing data in text files for fixed-width format and [10] delimited format in detail. 2. Explain method of processing data in text files for fixed-width format in detail. [4-5] 3. Explain method of processing data in text files for delimited format in detail. [4-5] 4. Explain substitution facility of sed filter. [3-4] 5. Explain grep command with example. [5-6] 6. Write note on sed filter. [5-6] 7. Explain all attributes displayed by l option of ls command. [4] 8. How to process the output of who command? [3] Page 6 of 6