model test paper linux

4
Stream-CSE Semester- B.Tech 7 th Subject- Unix Linux Programming Paper-CSE-471 Model Test Paper Unit 1 Ques 1. Explain Unix operating system with its architecture in detail. Ques 2. Differentiate between absolute path name and relative path name by giving suitable example Ques 3. What are control structures in shell programming? Ques 4. Explain i-node structure and the commands related tp the file system. Ques 5. Explain the Unix file system and various categories of files. Ques 6. Hw DOS and Unix text files differ? Name the utilities that convert files between these two formats. Ques 7. Describe the shell function. Ques 8. Write a shell script to display the number of words and number of lines present in a given file. Ques 9. Explain file permissions in Unix in detail with the help of example. Ques 10 Explain the process of logging in and logging out from unix in detail. Unit 2

Upload: rajat-saini

Post on 27-Nov-2014

225 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Model Test Paper Linux

Stream-CSE Semester- B.Tech 7th

Subject- Unix Linux Programming Paper-CSE-471

Model Test Paper

Unit 1

Ques 1. Explain Unix operating system with its architecture in detail.

Ques 2. Differentiate between absolute path name and relative path name by giving suitable example

Ques 3. What are control structures in shell programming?

Ques 4. Explain i-node structure and the commands related tp the file system.

Ques 5. Explain the Unix file system and various categories of files.

Ques 6. Hw DOS and Unix text files differ? Name the utilities that convert files between these two formats.

Ques 7. Describe the shell function.

Ques 8. Write a shell script to display the number of words and number of lines present in a given file.

Ques 9. Explain file permissions in Unix in detail with the help of example.

Ques 10 Explain the process of logging in and logging out from unix in detail.

Unit 2

Ques 1. Explain various grep options to display a count, line number and file names.

Ques 2. How do you double space a file with perl?

Ques 3. Explain different loop and functions available in awk by giving suitable example.

Ques 4. Explain conditions and structures used in shell programming with example. Write a program to calculate the factorial of given number.

Ques 5. Use awk to locate lines longer than 100 and smaller than 150 characters.

Ques 6. How do these expressions differ?

Page 2: Model Test Paper Linux

a) [0-9]* and [0-9][0-9]*

b) ^[^^] and ^^^

Ques 7. Explain the text editing features of sed using suitable example.

Ques 8. Print only the odd-numbered lines of a file.

Ques 9. Use perl to show all lines containing the string director and the next line.

Ques 10. Write short note on following.

a) Shell as command processor

b) Regular expressions

c) External and internal commands in unix.

d) File permissions.

e) Functions in shell programming

f) Filters in shell programming

g) Fgrep and egrep

Ques 11. Find out the occurances of three consective and identical word characters(like aaa and bbb) using grep and sed.

Ques 12. Expalin the main strength of Perl language. How is it better than awk language?

Unit 3

Ques1. Explain compiler options in C environment in detail.

Ques 2. Name three modes of vi-editor. How you can switch from one mode to another mode.

Ques 3. Define dynamic libraries. Differentiate between dynamic and static libraries

Ques 4. Explain memory management in detail.

Ques 5. Write five commands of vi editor.

Ques 6. Explain the features of GCC compiler along with options.

Ques 7. Write down the various steps in tracing a program using gbd.

Ques 8. Explain the concept of statically linked and dynamically linked programs.

Page 3: Model Test Paper Linux

Unit 4

Ques1. What is process? Write the procedure to execute process with diagram.

Ques2. What differences between a job and a process? How do you

a) Suspend the foreground job.

b) Move a suspended job to background.

c) Bring back a suspended job to the foreground.

Ques 3. Explain various job control facilities to manipulate jobs.

Ques 4. Explain the purpose of fg, bg, at, batch, time command.

Ques 5. Write short note on following

a) Security and privileges in linux

b) Dynamic Loaders

c) Rc and init files.

Ques 6. Explain signal and signal handler.

Ques 7. What is the importance of ‘start’ and ‘kill’ scripts? How are they organised in Linux.

Ques 8. Explain shutting down process for linux system with its options.

Ques 9. Explain the password file and various fields in each of its entry. Write short note on password administration.

Ques 10. What is init? What is its use?

PREPARED BY:- KAMINI KHANNA