INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Similar documents
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

UNIT I Linux Utilities

UNIT I Linux Utilities and Working with Bash

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) DUNDIGAL, HYDERABAD

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD QUESTION BANK

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs.

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad COMPUTER SCIENCE AND ENGINEERING QUESTION BANK OPERATING SYSTEMS

ST.MARTIN'S ENGINEERING COLLEGE Dhulapally,Secunderabad-014

CSC209 Review. Yeah! We made it!

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur QUESTION BANK

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.

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK UNIT 1

CL020 - Advanced Linux and UNIX Programming

LINUX INTERNALS & NETWORKING Weekend Workshop

Pipes and FIFOs. Woo-Yeong Jeong Computer Systems Laboratory Sungkyunkwan University

INSTITUTE OF AERONAUTICAL ENGINEERING

Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions

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

Department of Computer Science and Technology

(MCQZ-CS604 Operating Systems)

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC-2017

Community Enterprise Operating System (CentOS 7) Courses

PROGRAMME: COMPUTER SCIENCE & ENGINEERING COURSE: Operating System Lab SEMESTER: VI CREDITS: 2

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (AUTONOMOUS)

Exam Guide COMPSCI 386

Processes COMPSCI 386

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT I OPERATING SYSTEMS

Chapter 1 - Introduction. September 8, 2016

Contents. PA1 review and introduction to PA2. IPC (Inter-Process Communication) Exercise. I/O redirection Pipes FIFOs

Unix Processes. What is a Process?

PROCESS CONCEPTS. Process Concept Relationship to a Program What is a Process? Process Lifecycle Process Management Inter-Process Communication 2.

Contents. IPC (Inter-Process Communication) Representation of open files in kernel I/O redirection Anonymous Pipe Named Pipe (FIFO)

Inter-Process Communication

INSTITUTE OF AERONAUTICAL ENGINEERING Autonomous Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Process Management! Goals of this Lecture!

Creating a Shell or Command Interperter Program CSCI411 Lab

Operating System Labs. Yuanbin Wu

CSE 153 Design of Operating Systems Fall 2018

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

UNIX Shell Programming

INSTITUTE OF AERONAUTICAL ENGINEERING

Linux Driver and Embedded Developer

Interprocess Communication Mechanisms

shared storage These mechanisms have already been covered. examples: shared virtual memory message based signals

Process Management 1

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

TUTORIAL QUESTION BANK

IBM AIX Operating System Courses

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Advanced Programming in the UNIX Environment W. Richard Stevens

Midterm Exam CPS 210: Operating Systems Spring 2013

Design Overview of the FreeBSD Kernel CIS 657

Design Overview of the FreeBSD Kernel. Organization of the Kernel. What Code is Machine Independent?

Memory-Mapped Files. generic interface: vaddr mmap(file descriptor,fileoffset,length) munmap(vaddr,length)

SOFTWARE ARCHITECTURE 3. SHELL

NETWORK PROGRAMMING AND MANAGEMENT 1 KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK

Building blocks for Unix power tools

Operating Systems. Review ENCE 360

CS 333 Introduction to Operating Systems. Class 3 Threads & Concurrency. Jonathan Walpole Computer Science Portland State University

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

R10. IV B.Tech II Semester Regular Examinations, April/May UNIX AND SHELL PROGRAMMING

Overview. Over the next four weeks, we will look at these topics: Building Blocks. Advanced Authentication Issues.

Process. Program Vs. process. During execution, the process may be in one of the following states

1Z Oracle Linux Fundamentals (Oracle Partner Network) Exam Summary Syllabus Questions

Here to take you beyond. ECEP Course syllabus. Emertxe Information Technologies ECEP course syllabus

Kernel Internals. Course Duration: 5 days. Pre-Requisites : Course Objective: Course Outline

Processes. CS3026 Operating Systems Lecture 05

Using bash. Administrative Shell Scripting COMP2101 Fall 2017

The Classical OS Model in Unix

Lecture 3 Process API in UNIX systems

The Unix Shell & Shell Scripts

Processes. CS439: Principles of Computer Systems January 24, 2018

Department of Computer Science and Technology, UTU 2014

PROCESS MANAGEMENT. Operating Systems 2015 Spring by Euiseong Seo

What is a Process? Processes and Process Management Details for running a program

IPC and Unix Special Files

SE350: Operating Systems

Linux Operating System

Module A: The FreeBSD System

Module A: The FreeBSD System

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Reading Assignment 4. n Chapter 4 Threads, due 2/7. 1/31/13 CSE325 - Processes 1

Appendix A: FreeBSD. Operating System Concepts 9 th Edition

OS Structure, Processes & Process Management. Don Porter Portions courtesy Emmett Witchel

Lecture Topics. Announcements. Today: Threads (Stallings, chapter , 4.6) Next: Concurrency (Stallings, chapter , 5.

CHAPTER 3 - PROCESS CONCEPT

* What are the different states for a task in an OS?

Transcription:

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad -500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : LINUX PROGRAMMING Course Code : A70511 Class : IV B. Tech I Semester Branch : Computer Science and Engineering Year : 2016-17 Course Coordinator : Dr. MadhuBala, Professor, CSE Course Faculty : Dr. MadhuBala, Professor, CSE Mr. D Abdulla, Assistant Professor, CSE OBJECTIVES To meet the challenge of ensuring excellence in engineering education, the issue of quality needs to be addressed, debated and taken forward in a systematic manner. Accreditation is the principal means of quality assurance in higher education. The major emphasis of accreditation process is to measure the outcomes of the program that is being accredited. In line with this, Faculty of Institute of Aeronautical Engineering, Hyderabad has taken a lead in incorporating philosophy of outcome based education in the process of problem solving and career development. So, all students of the institute should understand the depth and approach of course to be taught through this question bank, which will enhance learner s learning process. S No QUESTION Blooms taxonomy level UNIT I Part - A (Short Answer Questions) Course Outcomes 1. State kernel role Linux? Understand 2 2. List different types of shells in Linux Knowledge 2 3. Describe compressing of a files in Linux. 4. Find the list of files in a directory along with file attributes. Knowledge 1 5. Give the vi editor text editing commands? Knowledge 2 6. Define hard link and soft link of a file. Knowledge 1 7. Compare CP and MV commands Knowledge 2 8. Illustrate moving of files in Linux environment with examples? Understand 2 9. What is rlogin command purpus? Understand 1 10. Give the use of telnet command with example? Understand 1 11. What is ftp and its importance in Unix? Knowledge 2 12. Differentiate tar and zip/unzip commands? Understand 1 13. How to create a file hierarchy using single command in linux? Understand 1

14. How to create a new directory in a specific disc location in Linux with Knowledge 2 example? 15. List the errors while deleting a directory with suitable examples. Understand 1 16. Give the attributes meaning in grep command Understand 1 17. Describe any four built in variables in Shell and Demonstrate their Knowledge 2 usage by example? 18. Write a shell script to display GOOD MRNG, GOOD AFTERNOON, Understand 1 GOOD NIGHT based on system time whenever user logs on. 19. What is the use of here documents? Understand 1 Part - B (Long Answer Questions) 1 Explain Layered architecture and kernel role in Linux with neat Knowledge 1 diagram? 2 Compare the comm., comp and diff text processing utilities. Knowledge 2 3 Illustrate the file filter commands with examples Understand 2 4 Understand about links of files and describe about kernel role Knowledge 1 while creating links. 5 Describe the issues with creating, copying, moving and deleting Understand 1 the directory file in linux with examples 6 Differentiate stream editor and line editor Knowledge 2 7 Discuss on list of commands in sed. Understand 2 8 How to create background job and foreground jobs in Linux? Explain Understand 1 Moving processes to the background and foreground with an example? 9 Explain about ulimit and, mount commads? Illustrate pg and more Understand 2 command with example? 10 Distinguish between user Defined variables and environment Knowledge 1 variables with example? 11 Describe about I/O Redirection operations, built in variables in Shell. Understand 2 12 Explain by writing a script using system time, toshow GOOD Understand 1 Morning, GOOD AFTERNOON, GOODNIGHT. 13 Explain by writing shell script that receives any number of file names as Evaluate 2 arguments checks if every argument supplied is a file or a directory? 14 Explain how the shell treat a command line passed to it. Understand 2 15 Write an awk script to find the number of characters, words and Understand 2 lines in a file. 16 Write a shell script to find and delete all file with the word Unix". Understand 3 17 Write a shell script to count the specified number of lines in a text file Understand 4 without using wc command? 18 Demonstrate by writing a shell script to find the factorial of a number. Knowledge 5 19 Explain by writing shell script that receives any number of file names as arguments checks if every argument supplied is a file or a directory? 20 Explain Moving processes to the background and foreground with an example? Part - C (Problem Solving and Critical Thinking Questions) 1 Differentiate windows and Linux operating system and analyse important system calls? 2 Illustrate security concepts in both Linux and windows operating systems? Knowledge 4 Knowledge 5 Understand 1 Knowledge 2

3 Illustrate a shell script called sayhi, put this script into your startup Understand 2 file called.bash profile, the script should run as soon as you logon to system, and it print any one of the following message in info box using dialog utility, if installed in your system, If dialog utility is not installed then use echo statement to print message: -Good Morning, GoodAfternoon, Good Evening, according to system time. 4 Illustrate by writing script, that will print, Message "Hello World, in Knowledge 3 Bold and Blink effect, and in different colors like red, brown etc using echo command. 5 Describe the Debugging process in shell Knowledge 4 Part A (Short Answer Questions) UNIT - II 1 Differentiate between afile locking and record locking. Understand 6 2 Diffeentiate symlink ( ) and link() functions with example? Knowledge 7 3 Define a system call? Knowledge 7 4 List the file types supported by linux. Knowledge 6 5 Differentiate systemcall with library function? Understand 6 6 compare dot and dot dot notations in the file system? Understand 7 7 Distinguish relative path and absolute path. Knowledge 7 8 Differentiate hard link and soft link Understand 6 9 List the significance of fcntl aruments Knowledge 6 10 List the fileapi system calls with purpose Understand 6 11 Give the list of directory API functions Part - B (Long Answer Questions) 1 Write a program to create, read and write the contents of Understand 7 ordinary file using file API. 2 Write a program to create, read and write the contents of directory file Understand 6 using directory API. 3 Explain about symlink ( ) function with example? Explain about link( ) Knowledge 7 function with example? 4 Explain about unlink ( ) functions with example? Explain about Understand 7 symlink ( ) functions with example? 5 Define a system call? Differentiate systemcall with library Understand 6 function? 6 Explain about dot and dot dot directories in the file system? Knowledge 7 7 Define symbolic link? Hard link with examples? Knowledge 6 8 Differentiate symbolic link instead of a hard link. Knowledge 6 9 Define fcntl ( ), read (), write () writen () function with examples? Knowledge 6 10 Describe the characteristics of Unix File System. Knowledge 7 11 Describe about Low Level File I/O System Calls. Understand 7 12 Describe usage of dup(), dup2() system calls with example? Understand 6 13 Define stat () and create () function with examples? Knowledge 7 14 Describe open ( ) function in Linux with examples? Knowledge 6 15 Differentiate stat ( ), fstat ( ) and lstat() with example? Knowledge 7 1 Differentiate file API and standard library functions for file operations. Knowledge 6

2 Emulate the ls command using file API 3 Illustrate to read input from the standard input (stdin) and display on the standard output (stdout) using fileapi. 4 Differentiate and analyse different file creation api functions with example UNIT-III Part - A (Short Answer Questions) Knowledge 7 Knowledge 6 1 What is a process? Understand 8 2 State process states Understand 8 3 Understand the kernel role on process management Understand 8 4 List the process attributes Understand 8 5 Give 5 example of reliable signals. Understand 9 6 Describe orphan process with example? Understand 8 7 What is fork() with example? Knowledge 9 8 Differentiate fork() and vfork() with example? Understand 8 9 Describe exec () with example? Understand 7 10 Illustrate exit ( ) function? Knowledge 8 11 List all flavours of excec () function. Knowledge 7 12 Define zombie processes with example? Understand 8 Part B (Long Answer Questions) 1 Illustrate about child process creation using fork(),vfork() and Exec() Understand 8 2 Discuss about orphan process and zombie process with example? Knowledge 9 3 Elaborate different versions of exec () with examples? Knowledge 9 4 Describe SIGKILL and SIGINT with examples? Understand 8 5 Illustrate about redirection of standard output to file abc.txt Knowledge 8 6 Explain about signal () function? Differentiate the reliable and Understand 9 unreliable signals 7 Differentiate wait () and waitpid () with examples? Understand 8 8 Explain the need of wait ( ) and waitpid ( )with example. Knowledge 9 9 Explain the mechanism for handling a signal with example? Understand 8 10 How many ways a procees goes to wait state or termination state forcefully 1 Differentiate and analyse non-blocking IO operations in both windows and Linux operating systems? 2 Write a progrom to create a chiled process and get the processed of child and parent 3 Illustrate to redirect the standard input (stdin) and the standard output (stdout) of a process, so that scanf () reads from the pipe and printf () writes into the pipe? 4 Illustrate by writing c program where process forks to a child, then waits for someone to terminate? UNIT-IV Part A (Short Answer Questions) Understand 9 Knowledge 6 Understand 7 Knowledge 7 Knowledge 7 1 What is IPC. Knowledge 11

2 List the different mechanisems for inter process communication. Understand 10 3 Describe FIFO concept with example? Understand 10 4 What is the use of fifo comparing with pipe? Understand 11 5 Describe mkfifo ( ) system call by example? Understand 10 6 Describe Pipes opening concept with example? Understand 11 7 Describe pipes? Explain their limitations. Understand 10 8 List the message API system calls to create,delete,send and receive Understand 11 9 Describe the structure of a message Understand 10 10 Illustrate about IPC_EXEC? Understand 11 11 Differentiate between kill() and rise()? Understand 10 12 What is named pipe? Knowledge 11 13 Explain about msgtyp with example? Knowledge 8 14 Describe IPC _PRIVATE with example? Understand 8 15 Describe pipe () system call? Understand 10 Part B (Long Answer Questions) 1 Describe message queue API with syntax and example? Understand 11 2 Differentiate pipe and named pipe concepts in IPC process. Knowledge 10 3 Create a pipe to redirect the input of one command to other Understand 11 command. 4 Create a fifo to build the communication channel between Understand 10 two processes and give the advantages and disadvantages of files. 5 Illustrate pipes? Explain their limitations. Explain how named pipes Understand 11 are replaced to overcome the drawback of pipe in IPC with an examples 6 Explain about shared-memory segment to overcome the Knowledge 10 drawback of message queue with example. 7 Illustrate about V IPC semaphore mechanism with example. Understand 10 8 Explain about synchronization and How synchronization is achieved with Semaphores? 9 Explain the structure of a shared memory and kernel data structure with a neat diagram? 10 Explain the system functions associated for creating and destroying a shared memory? Knowledge 11 Understand 11 Understand 11 Demonstrate the priority message queues with example using Knowledge 8 1 Message Queue API 2 Illustrate to displays no of messages in queue, last message send, last Understand 9 message read time in a given message queue. 3 Demonstrate race conditions with shared memory? Knowledge 9 Part - A (Short Answer Questions) UNIT-V 1 List the POSIX APIs of semaphores. Knowledge 10 2 Demonstrate client and server programming using TCP protocol? Understand 12 3 Explain about socket( ) function in Linux? Understand 10 4 Explain about listen( ) function in Linux? Understand 12

5 Explain about accept( ) function in Linux? Knowledge 10 6 Explain about bind( ) function in Linux? Understand 10 7 Explain about read() function in Linux? Knowledge 12 8 Illustrate with a neat diagram about threads, and light weight processes? Understand 10 9 Explain about separate kernel stack and light weight processes? Understand 12 10 Differentiate process and threads? Understand 10 11 Differentiate stream sockets and raw sockets? Understand 10 12 Demonstrate client and server programming using UDP protocol? Understand 12 13 Explain about how TCP connections are established and terminated. Understand 10 Part - B (Long Answer Questions) 1 Knowledge 10 2 Illustrate pthread create ( ) function with examples? Understand 10 3 Explain pthread kill ( ) function with example? Understand 12 4 Illustrate about POSIX APIs of semaphores? Knowledge 12 5 Explain thread synchronization with semaphores with example? Understand 10 6 Explain about Semaphores with examples? Understand 10 7 Explain tcp socket connection establishment with a neat diagram? Understand 11 8 Explain udp data transfer with a neat diagram? Knowledge 10 9 Demonstrate client and server programming using TCP protocol with Knowledge 12 neat diagram? 10 Explain about socket ( ), listen( ), accept( )system calls in Linux? Knowledge 10 11 Explain about bind (), read (), write () functions in Linux? Understand 12 12 Explain about sendto () and recvfrom () functions in Linux? Understand 11 13 Explain about TCP NODELAY syntax with a small program? Knowledge 12 14 Explain all byte ordering and manipulation functions with Understand 10 examples? 15 Explain about how TCP connections are established and terminated. Understand 10 16 Demonstrate echo server and echo client using 6666 port in tcp style? Understand 11 17 Explain how small and big packets handled in transferring client server environment? Knowledge 10 1 Differentiate stream sockets and raw sockets and related system calls? Knowledge 10 2 Demonstrate client and server programming using UDP protocol with Knowledge 10 neat diagram? 3 Illustrate by writing a c program to implement tcp chat client server? Understand 9 4 Illustrate by writing a c program to implement udp chat client server? Understand 9 Prepared By: Dr. MADHUBHALA, Professor Mr. D ABDULLA, Assistant Professor HOD, CSE