0% found this document useful (0 votes)
78 views

Unix Modelqp@Azdocuments - in

The document provides a model question paper for a UNIX programming exam with 5 questions from 5 modules. It includes questions on UNIX architecture, features, commands, file types, permissions, special files, processes, pipes, signals, and inter-process communication. Students must answer 5 of the 10 questions, with at least one from each module. Questions can require explaining concepts, illustrating examples, writing programs, or discussing topics in 3 sentences or less. The paper is out of 100 marks and aims to test students' understanding of fundamental UNIX and C programming concepts.

Uploaded by

Catherine Cavya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Unix Modelqp@Azdocuments - in

The document provides a model question paper for a UNIX programming exam with 5 questions from 5 modules. It includes questions on UNIX architecture, features, commands, file types, permissions, special files, processes, pipes, signals, and inter-process communication. Students must answer 5 of the 10 questions, with at least one from each module. Questions can require explaining concepts, illustrating examples, writing programs, or discussing topics in 3 sentences or less. The paper is out of 100 marks and aims to test students' understanding of fundamental UNIX and C programming concepts.

Uploaded by

Catherine Cavya
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

18CS56

Model Question Paper-1 with effect from 2019-20 (CBCS Scheme)


USN

Fifth Semester B.E. Degree Examination


UNIX PROGRAMMING
TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.
02.
03.

Module – 1
(a) Explain with a figure ,the kernel and shell relationship in unix operating system 10
Q.1
(b) List and explain the salient features of Unix operating system 10
OR
Explain the following commands with syntax ,option and example
(a) 7
Echo ,ls,who,passwd,date
Q.2 With suitable example bring out the differences between absolute and relative
(b) 6
pathnames
(c) Explain the basic file categories in Unix operating system? 7
Module – 2
(a) Which command is for is used for listing file attributes ?explain the significance of 7
each field in the attributes?
(b) What are file permissions? Explain the use of chmod to change file permissions using 7
Q.3 both absolute and relative methods?
Explain grep command?List its options with its significance 6
(c)
OR
(a) Explain the concept of escaping and quoting with suitable example? 5

(b) Explain three standard files supported by unix? Explain about special files used for 10
Q.4 output redirection?
What are wild card characters? Explain shell wild card characters with example? 5
(c)
Module – 3
Q.5 (a) Describe how a c program is started and various ways it terminates. 10
18CS56
With neat sketch, explain memory layout of C program. 10
(b)
(c)
OR
(a) With related data structures explain UNIX kernel support for a process. 10
(b) What do you mean by fork and vfork functions. Explain both functions with example 10
Q.6 programs.
(c)

Module – 4
(a) What are Pipes? Explain different ways to view a half-duplex pipe. Write a program to 10
send data from parent process to child process using pipes.
(b) 10
Q.7 What is fifo? With a neat diagram explain the client server communication using fifo?

(c)

OR
(a) 10
Explain briefly with example a) Message queue b) Semaphores.
Q.8 Write a note on (i) Process accounting (ii) Process Times. 10
(b)

(c)

Module – 5
(a) 10
What are signals? Mention different source of signals? Write program to setup signal
handlers for SIGINIT and SIGALRM
Q.9 10
(b)
Explain daemon characteristics and basic coding rules.

(c)

OR
(a) 10
What is signal mask of a process? WAP to check whether the SIGINT signal present in
Q.10 signal mask.
(b) Explain The sigsetjmp and siglongjmp Functions with examples. 10

(c)
18CS56

Table showing the Bloom’s Taxonomy Level, Course Outcome and Programme
Outcome

Question Bloom’s Taxonomy Level Course Programme Outcome


attached Outcome
Q.1 (a) L2 CO1 PO1,PO2,PSO2

(b) L1 CO1 PO1,PO2,PSO2


L2
Q.2 (a) L2 CO1 PO1,PO2,PSO2
(b) L2 CO1 PO1,PO2,PSO2
(c) L2 CO1 PO2,PSO1,PSO2
Q.3 (a) L1 CO2 2PO2, PSO1,PSO2
L2
(b) L1 CO2 PO2,PSO1,PSO2
L2
(c) L2 CO2 PO1,PO2, PSO1,PSO2
Q.4 (a) L2 CO2 PO1PO2,PSO1,PSO2
(b) L2 CO2 PO2, PSO1,PSO2
(c) L1 CO2 PO2,PSO1,PSO2
L2
Q.5 (a) L2 Co3 PO2,PSO1,PSO2
(b) L2 Co3 PO2, PSO1,PSO2
(c)
Q.6 (a) L1 Co3 PO2
(b) L2 Co3 PO2
(c)
Q.7 (a) L1 Co3 PO1,PO2,PSO1,PSO2
(b) L1 Co3 PO2, PSO1,PSO2
(c)
Q.8 (a) L1 Co3 PO2, PSO1,PSO2
(b) L1 Co3 PO1, PO2
(c)
Q.9 (a) L2 Co4 PO2, PSO1,PSO2
(b) L1 Co4 PO1, PO2
(c)
Q.10 (a) L2 Co4 PO2, PSO1,PSO2
(b) L2 Co4 PO1, PO2
(c)

Lower order thinking skills


Bloom’s Remembering( Understanding Applying (Application):
Taxonomy knowledge):𝐿1 Comprehension): 𝐿2 𝐿3
Levels Higher order thinking skills
Analyzing (Analysis): 𝐿4 Valuating (Evaluation): 𝐿5 Creating (Synthesis): 𝐿6
18CS56
Model Question Paper-1 with effect from 2019-20 (CBCS Scheme)
USN

Fifth Semester B.E. Degree Examination


UNIX PROGRAMMING

TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.

Module – 1 Marks
(a) Illustrate unix architecture with neat diagram. 08
(b) Discuss the silent features of UNIX operating system. 08
Q.1
What are internal and external commands in UNIX? Explain them with suitable
(c) example. 04

OR
Illustrate command structure usage and behavior with respect to absolute and relative
(a) pathnames of following commands with suitable examples. 10
i). mkdir ii). rmdir
Q.2
(b) Discuss different file types available in UNIX operating system with neat diagram. 8

(c) Explain parent-child relationship in UNIX file system. 2


Module – 2 Marks
(a) Which command is used for listing file attributes? Briefly describe the significance of 08
each field of the output
(b) Current file permission of a regular file “unix” are rw--w---x. 08
Q.3 Illustrate both relative and absolute methods required to change permission to the
following:
i). –wxrwxr-x ii). r-------x iii). –w-r-x-w- iv). --xrw-r--
Explain wild cards with examples and its various types. 04
(c)
OR
(a) Define is shell programming? Write a shell program to create a simple calculator 10
which can perform basic arithmetic operations?
(b) Explain grep command with all options. 06
Q.4
Write the output for following command. 04
(c)
i) grep ^[^3] abcd
ii) grep -v “please delete” filename.txt | wc
iii)ls | wc-l >fcount
iv)cat *.c | wc –c
Module – 3 Marks
Q.5 (a) Describe general unix file API’s with syntax and explain the each field in detail 10
Explain file and record locking in detail. 06
(b)
(c) List the number of ways a process can terminate? 04
OR
(a) Describe the mechanism of process creation with a neat diagram 08
18CS56
(b) Explain the following commands 06
Q.6 i)fork
ii)vfork
iii)exit
(c) Define race condition and polling? How to overcome these conditions 06
Module – 4 Marks
(a) Illustrate IPC with all its methods. 08
Q.7 (b) Explain pipes with all its advantages and limitations? 06
(c) Briefly explain the rules who can change group ID’s 06
OR
(a) Demonstrate the Client and Server interaction with neat diagram. 10

Q.8 (b) What are Interpreter Files? Give the difference between Interpreter Files and 06
Interpreter.
(c) What are semaphores? Mention its two types. 04
Module – 5 Marks
(a) What are daemon processes? Enlist their characteristics. Also write a program to 10
transform a normal user process into a daemon process. Explain every step in the
Q.9 program.
Explain the kill() API and alarm() API? 10
(b)
OR
(a) What is error logging? With a neat block schematic discuss the error login facility in 10
Q.10 BSD.
(b) Explain the terms i)signal ii)signal mask 10
18CS56

Table showing the Bloom’s Taxonomy Level, Course Outcome and Programme
Outcome

Question Bloom’s Taxonomy Level Course Programme Outcome


attached Outcome
Q.1 (a) L3 CO1 PO4
(b) L2 CO1 PO4
(c) L1 CO1 PO4
Q.2 (a) L3 CO1 PO4
(b) L2 CO1 PO4
(c) L1 CO1 PO4
Q.3 (a) L2 CO1 PO4
(b) L3 CO1 PO2
(c) L2 CO1 PO4
Q.4 (a) L4 CO2 PO3
(b) L2 CO2 PO4
(c) L2 CO2 PO2
Q.5 (a) L2 CO3 PO4
(b) L2 CO2 PO5
(c) L1 CO3 PO4
Q.6 (a) L2 CO3 PO2
(b) L2 CO3 PO2
(c) L1 CO3 PO4
Q.7 (a) L3 CO3 PO2
(b) L2 CO3 PO2
(c) L1 CO3 PO4
Q.8 (a) L3 CO3 PO2
(b) L2 CO3 PO4
(c) L1 CO3 PO2
Q.9 (a) L3 CO4 PO3
(b) L2 CO3 PO2
Q.10 (a) L2 CO4 PO2
(b) L2 CO3 PO2

Lower order thinking skills


Bloom’s Remembering( Understanding Applying (Application):
Taxonomy knowledge):𝐿1 Comprehension): 𝐿2 𝐿3
Levels Higher order thinking skills
Analyzing (Analysis): 𝐿4 Valuating (Evaluation): 𝐿5 Creating (Synthesis): 𝐿6
18CS56
Model Question Paper-1 with effect from 2020-21 (CBCS Scheme)
USN

Fifth Semester B.E. Degree Examination


Unix Programming
TIME: 03 Hours Max. Marks: 100

Note: 01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.

Module – 1
With a neat diagram, explain the kernel and shell relationship in UNIX operating
(a) 8
System.
Explain the following commands with example:
Q.1 (b) 6
i)cat ii)printf iii)who
Differentiate between Internal and External commands in UNIX operating system
(c) 6
with example.
OR
(a) Explain the salient features of Unix Operating System. 8
(b) Explain different types of files supported in UNIX. 6
Q.2
With the example, explain the following commands.
(c) 6
i)man ii)pwd iii)od
Module – 2
(a) Explain the use of chmod command to change file permission using both absolute and 8
relative methods
(b) Explain ls Command with all the options. 6
Q.3
Define Wild Cards? Explain various shell wild cards with suitable example. 6
(c)
OR
(a) Explain grep command with all its options. 8

(b) Explain the three standard files in UNIX. 6


Q.4
Explain if and While control statements in shell scripts with suitable program 6
(c)
Module – 3
Q.5 (a) Explain how mknod and mkfifo APIs are used to create device and FIFO file 8
18CS56
Explain with a neat diagram how process can be initiated and how process can be 8
(b)
terminated.
OR
(a) Explain setjmp and longjmp APIs with an example 8
(b) Explain wait and waitpid APIs with their prototype. Mention the differences between 8
Q.6 wait and waitpid
Module – 4
(a) Explain setuid and setgid functions with example and explain various ways to change 8
user IDs
(b) What are pipes? What are its limitations? Write a program to send data from parent to 8
Q.7 child over a pipe.
OR
(a) Explain popen and pclose functions with example. 8

Q.8 What is a FIFO? With a neat diagram explain client server communication using FIFO. 8
(b)

Module – 5
(a) Define Signal? Explain sigaction API with demonstrating program. 8
Explain Daemon characteristics and coding rules 8
(b)
Q.9

OR
(a) Explain Sigsetjmp and siglongjmp APIs with example. 8
(b) What are daemon processes? Explain with a neat diagram the error logging facility for 8
Q.10 a daemon process.
18CS56

Table showing the Bloom’s Taxonomy Level, Course Outcome and Programme
Outcome

Question Bloom’s Taxonomy Level Course Programme Outcome


attached Outcome
Q.1 (a) L2 CO1 PO1,PO3,PO4,PO5,PO12
(b) L3 CO1 PO1,PO3,PO4,PO5,PO12
(c) L1 CO1 PO1,PO3,PO4,PO5,PO12
Q.2 (a) L2 CO1 PO1,PO3,PO4,PO5,PO12
(b) L2 CO1 PO1,PO3,PO4,PO5,PO12
(c) L3 CO1 PO1,PO3,PO4,PO5,PO12
Q.3 (a) L3 CO1 PO1,PO3,PO4,PO5,PO12
(b) L2 CO1 PO1,PO3,PO4,PO5,PO12
(c) L2 CO2 PO2,PO3,PO4,PO12
Q.4 (a) L2 CO1 PO1,PO3,PO4,PO5,PO12
(b) L2 CO1 PO1,PO3,PO4,PO5,PO12
(c) L3 CO2 PO2,PO3,PO4,PO12
Q.5 (a) L2 CO3 PO3,PO4,PO5,PO12
(b) L2 CO3 PO3,PO4,PO5,PO12
Q.6 (a) L2 CO3 PO3,PO4,PO5,PO12
(b) L2 CO3 PO3,PO4,PO5,PO12
Q.7 (a) L2 CO3 PO3,PO4,PO5,PO12
(b) L3 CO4 PO1,PO3,PO4,PO5,PO12
Q.8 (a) L2 CO3 PO3,PO4,PO5,PO12
(b) L2 CO4 PO1,PO3,PO4,PO5,PO12
Q.9 (a) L3 CO3 PO3,PO4,PO5,PO12
(b) L2 CO4 PO1,PO3,PO4,PO5,PO12
Q.10 (a) L2 CO4 PO1,PO3,PO4,PO5,PO12
(b) L2 CO4 PO1,PO3,PO4,PO5,PO12

Lower order thinking skills


Bloom’s Remembering( Understanding Applying (Application):
Taxonomy knowledge):𝐿1 Comprehension): 𝐿2 𝐿3
Levels Higher order thinking skills
Analyzing (Analysis): 𝐿4 Valuating (Evaluation): 𝐿5 Creating (Synthesis): 𝐿6

You might also like