Linux Programming Question Bank
Linux Programming Question Bank
or
ld
www.alljntuworld.in
Questions
TU
Q. No
Blooms
Course
Taxonomy
Outcome
Level
UNIT I
Remember
Understand
3
4
5
6
7
8
9
10
11
Knowledge
Knowledge
Remember
Understand
Remember
Remember
Remember
Remember
Understand
1
3
3
3
3
3
3
3
3
12
13
14
15
16
17
18
Apply
Apply
Understand
Knowledge
Remember
Understand
Remember
5
4
5
5
5
5
5
JN
1
2
Apply
Remember
www.alljntuworld.in
JNTU World
Apply
Apply
Apply
Apply
6
6
6
8
7
8
9
10
11
12
Understand
Understand
Remember
Understand
Remember
Apply
7
7
7
7
7
7
13
Remember
14
Remember
15
Remember
1
2
What is a process.
Remember
13
13
or
ld
3
4
5
6
UNIT III
4
5
6
7
8
Remember
13
Apply
Apply
Remember
Explain threads.
Understand
Apply
Apply
13
13
13
13
13
Remember
13
Apply
13
Apply
13
Apply
13
Remember
13
TU
What is a signal.
10
11
12
13
UNIT IV
Knowledge
2
3
Knowledge
Remember
11
12
4
5
6
7
8
Remember
Knowledge
Apply
Remember
Apply
12
12
12
11
11
Apply
Apply
Apply
Remember
Apply
12
5
9
9
9
Remember
Apply
Apply
14
10
14
JN
9
10
11
12
13
1
2
3
11
www.alljntuworld.in
JNTU World
5
6
7
8
9
10
Understand
14
Apply
Apply
Apply
Apply
Apply
14
14
14
14
14
Understand
10
JN
TU
or
ld
www.alljntuworld.in
JNTU World
Q. No
Questions
Blooms
Taxonomy
Level
Course
Outcome
Understand
Remember
Remember
1
2
2
2
3
4
3
2
Knowledge
Understand
Understand
6
4
12
Explain with example the Process of Creation and Execution of a Shell Script.
Understand
13
write shell scripts on prime number and Fibonacci series by using control
structures?
UNIT II
Explain the following System Calls with an Example.
a) creat( )
b)write( )
c) stat( )
d) fcntl( )
4
5
6
7
8
or
ld
Understand
Knowledge
Understand
Understand
Understand
9
10
11
UNIT I
Explain how Unix operating system provides more security than any other
operating
system.
what at are
file handling utilities and processing utilities?
What are the file permissions for providing security to the files?
Explain how Unix operating system provides more security than any other
operating system.
Describe the file access permissions in Unix.
[12]
ExplainShell
howand
Unix
system provides more security than any other
Define
itsoperating
Responsibilities.
operating
system.
Explain how
Unix
operating
providesof
more
than any other
Describe
thesystem
characteristics
Unixsecurity
File System.
Explain
how
Unix
operating
system
security than any other
operating
system.
Explain text
processing
utilities
and provides
Networkmore
commands?
operating
system.
Explain the
control structures of shell programming with suitable examples?
Explain how Unix operating system provides more security than any other
operating system.
Write about here documents ?
Describe pipe, input redirection and output redirection?
Explain various meta characters in shell with an example script.
1
2
3
Apply
3
2
Understand
Write about File and Directory maintenance system calls? (Give syntax &
examples).
Discuss clearly
the Low Level File I/O System Calls.
Explain dup() and its importance.
Apply
Understand
Understand
8
6
6
5
6
7
Define file descriptor and explain different system calls used in file?
explain the file structure related system calls?
Explain the following System Calls with an Example.
a) read() b) close()
c) open()
Explain link, unlink, remove and rename functions with syntaxes.
Knowledge
Understand
6
6
6
TU
2
3
4
10
Understand
Understand
Understand
Understand
Give the syntaxes for chmod and fchmod functions and state their importance.
1.
Write the syntax of following system calls. *unlink
JN
Understand
11
1
2
c
)
Understand
12
Remember
12
o
p
e
n
(
)
www.alljntuworld.in
JNTU World
5
6
7
8
9
10
11
12
13
12
Remember
Knowledge
Understand
Understand
Understand
12
12
12
12
12
3
Remember
Apply
Apply
*
*
*
*
kill
raise
alarm
exit
Compare the IPC functionality provided by message queues and fifos. What
are the advantages and drawbacks of each? Explain briefly.
1
Co
Remember
or
ld
Understand
11
Apply
11
Write a program to simulate sleep and wakeup behaviors among two processes
using any IPC mechanisms.
3
4
5
What are the security problems associated with system V IPC mechanisms?
Write a program to illustrate client/server application using named pipes.
Write a program and explain how to transfer a large amount of data between two
processes using:
(a) Pipes
(b) Message queues.
Remember
Apply
Apply
11
12
12
Explain the concept of IPC between two processes on a single system. Give
Example.
Define
Inter Process Communication? Explain IPC between two processes on
different
What
is asystems.
pipe? Using pipe, how IPC can be implemented.
Describe the functionality provided by system V IPC semaphore mechanism. Explain
it is implemented.
Writehow
a program
to illustrate client/server application using named pipes.
UNIT V
What is socket? Explain various socket system calls used for UDP protocol.
Understand
Knowledge
Remember
Apply
11
11
12
11
12
Remember
14
Apply
14
Remember
Understand
Understand
14
14
14
Understand
Remember
10
10
10
10
10
10
TU
JN
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
11
Understand
Understand
Understand
www.alljntuworld.in
JNTU World
UNIT-I
2
3
4
5
6
7
8
9
10
Write a shell script to print the details of the user login information.
How do you clean the screen and place the cursor at row 15 and
column 20?
Apply
Remember
12
1
4
5
10
Remember
Write a shell script Which gets executed the moment the user logs in. It should displayApply
the
message "good morning/good aft rnoon/good evening" depending upon the time at
Which the user logs in.
Determine whether the Linux system to have multiple desktop environments
Understand
installed?
Understand
Determine whether the Ctrl+Alt+Del key combination work on Linux?
Remember
How do you change permissions under Linux?
Remember
Which is the command used for ordering a file? Discuss all the options available for
this command. For every option Explain with an example.
Understand
6
6
6
11
"Operating systems like UNIX provide services both for programs and users". Justify Knowledge
this statement with suitable example.
Explain how debugging can be done in a shell script.
Understand
or
ld
Write a shell script Which receives two filenames as arguments. It should check whether theApply
two files contents are same or not. If they are same then second file should be deleted. Use
cmp command to compare files.
UNIT-II
Apply
Apply
Knowledge
Knowledge
5
5
8
5
5
6
List out the few differences between softlink and hard link.
What is the difference between home directory and working directory?
Knowledge
Knowledge
5
8
Knowledge
8
9
Remember
Apply
6
5
Apply
Remember
2
3
what are the different properties that are inherited by the child from its parent. Explain. Knowledge
Remember
How do you terminate an ongoing process?
13
13
Apply
13
Write a program to simulate sleep and wakeup behaviors among two processes using
any IPC mechanisms.
What is an orphan process? Write a program to illustrate orphan process.
Remember
13
Understand
13
TU
1
2
3
4
JN
Write a C program to print the type of specified file (Regular, device, directory)
10
Write a shell script to check whether a Given file is a directory. If so, empty the
contents of the directory and remove the directory.
UNIT-III
www.alljntuworld.in
JNTU World
What are the signals that are not ignored or blocked? Explain the reason behind it with Remember
an example.
13
What is a zombie process? Write a sample program to explain about zombie process.. Remember
13
What are reliable signals? Explain about the primary features of reliable functions.
Illustrate an example program for handling reliable signals.
Remember
13
10
Understand
13
or
ld
UNIT-IV
Remember
14
The syntax of msgget system call is int msgget(key t key, int flag)
* Explain type of key
* Explain What value it returns
* What is the use of flag
Understand
11
Compare the IPC functionality provided by pipes and message queues. What are
the advantages and drawbacks of each? When is one more suitable than the other.
Understand
11
Apply
11
Compare the IPC functionality provided by pipes and message queues. What are the
advantages and drawbacks of each? Explain briey.
Understand
11
What are the security problems associated with system V IPC mechanisms?
Remember
11
Apply
12
TU
Write a C program to create a message queue with read and write permissions and
write 3 messages to it with different priority numbers.
Apply
12
Write a C program that receives the messages from the above message queue and
display them.
Apply
12
10
Remember
12
State whether the FIFO, pipe & Unix domain socket the same thing in Linux kernel?
Knowledge
12
Understand
10
Apply
12
JN
1
2
UNIT-V
Write a C Socket Program for Linux with a Server and Client Example Code.
Write a C program to create a shared memory and store username and mobile number
details
Apply
12
Write a C program to use the shared memory created by the above program and print
the mobile number of a given username by searching the shared memory
Apply
12
www.alljntuworld.in
JNTU World
Understand
12
Understand
12
Write and explain a program to transfer large amount of data between two
unrelated processes using shared memory.
Apply
12
Understand
12
10
Understand
12
JN
TU
or
ld