0% found this document useful (0 votes)
88 views22 pages

GE6263 May 14

This document contains instructions for a Computer Programming Laboratory course. It lists commands to be executed and programs to be written in both shell scripting and C programming. The commands cover tasks like navigating directories, manipulating files, permissions, and system information. The programming problems involve tasks like finding maximum/minimum values, sorting arrays, matrix operations, and file handling using dynamic memory allocation. Students are expected to demonstrate proficiency in both shell scripting and C programming concepts through completing these commands and programs.

Uploaded by

hariprasathk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views22 pages

GE6263 May 14

This document contains instructions for a Computer Programming Laboratory course. It lists commands to be executed and programs to be written in both shell scripting and C programming. The commands cover tasks like navigating directories, manipulating files, permissions, and system information. The programming problems involve tasks like finding maximum/minimum values, sorting arrays, matrix operations, and file handling using dynamic memory allocation. Students are expected to demonstrate proficiency in both shell scripting and C programming concepts through completing these commands and programs.

Uploaded by

hariprasathk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

ANNA UNIVERSITY, CHENNAI -25

APRIL/MAY-2014
Common to: B.E. EEE./B.E E&I /B.E ICE./B.E Marine Engineering
R-2013
02 SEMESTER
GE6263 : Computer Programming Laboratory

Duration: 3 Hours Maximum Marks: 100

1. Write and execute the following commands


a) to display the full path name of the current working directory
b) to create a new directory
c) to display all files and directory lists in the current directory in column wise
d) to list the files in sorted order
e) to list the files in reverse order

2. Write a shell program to find the largest among three values

3. Write a C program to find the row minimum and maximum of a matrix with dynamic memory
allocation

1. Write and execute the following commands


a) to list the files by modification time
b) to display the number of blocks used by a file
c) count the number of lines, words and characters in a file
d) to combine two files
e) to move the content of one file to another file

2. Write a shell program to find the minimum value among three values

3. Write a C program to find the column minimum and maximum of a matrix with dynamic
memory allocation

1. Write and execute the following commands


a) to list out the hidden files from a directory
b) to store the output of ls command to disk file
c) to list out the files whose names not begin with a to g
d) to remove write and execute permission for a specific category of a file
e) to assigns absolute permission for groups of all read, write and execute permissions for a
specific file

2. Write a shell program to find the largest digit from a value

3. Write a C program to find the sum of two matrices using dynamic memory allocation

1
1. Write and execute the following commands
a) to display the last two digits of the year
b) to display month name
c) to display all the users who have logged into the system with column header
d) to execute more than one command at a single execution
e) to display the first two lines of content in a file

2. Write a shell program to find the smallest digit from a value

3. Write a C program to combine two arrays in ascending order using dynamic memory allocation

1. Write and execute the following commands


a) to display last three lines of content in a file
b) to display the content of more than one file in a single command
c) to displays patterns in a line in the file that starts with letters from a to e
d) to displays the line of the file that contain a specific pattern
e) to add line numbers to a file and display it

2. Write a shell program to count the number of digits in a value

3. Write a C program to combine two arrays without duplicates using dynamic memory allocation

1. Write and execute the following commands


a) to display the first character of each line from a file
b) to copy one file to another file
c) to create an empty file
d) to displays the 10 newest files in the current directory
e) to displays a list of directories and how much space they consume, sorted from the largest
to the smallest

2. Write a shell program to find the sum of digits of a value

3. Write a C program to add the content of two equal size array and store it into another array
using dynamic memory allocation

1. Write and execute the following commands


a) to displays the total number of files in the current working directory and all of its
subdirectories
b) to list out the process running in the background
c) to kill the background process
d) to print recently used commands
e) to display all text files

2. Write a shell program to generate Fibonacci series

3. Write a C program to print the common values of two arrays with dynamic memory allocation

2
1. Write and execute the following commands
a) to display a line of text
b) to change the owner of a file
c) to display the first character of each line from a file
d) to copy one file to another file
e) to create an empty file

2. Write a shell program to check whether a value is prime or not?

3. Write a C program to find the difference between two matrices with dynamic memory
allocation

1. Write and execute the following commands


a) to display the first character of each line from a file
b) to copy one file to another file
c) to create an empty file
d) to print recently used commands
e) to display all text files

2. Write a shell program to check whether a given value is Armstrong or not?

3. Write a C program to multiply two rectangular matrices of any order with dynamic memory
allocation

1. Write and execute the following commands


a) to displays the 10 newest files in the current directory
b) to displays a list of directories and how much space they consume, sorted from the largest
to the smallest
c) to display the full path name of the current working directory
d) to create a new directory
e) to display all files and directory lists in the current directory in column wise

2. Write a shell program to reverse a value

3. Write a C program to copy the content of one array to the other in reverse order with dynamic
memory allocation

1. Write and execute the following commands


a) to list the files in sorted order
b) to list the files in reverse order
c) to list the files by modification time
d) to display the number of blocks used by a file
e) count the number of lines, words and characters in a file

2. Write a shell program to check whether a given string is palindrome or not?

3. Write a C program to search an element from a list of values with dynamic memory allocation

3
1. Write and execute the following commands
a) to combine two files
b) to move the content of one file to another file
c) to list out the hidden files from a directory
d) to store the output of ls command to disk file
e) to list out the files whose names not begin with a to g

2. Write a shell program to count the number of even digit values from a value

3. Write a C program to print the distinct (non-duplicate) values from two arrays

1. Write and execute the following commands


a) to remove write and execute permission for a specific category of a file
b) to assigns absolute permission for groups of all read, write and execute permissions for a
specific file
c) to display the last two digits of the year
d) to display month name
e) to display all the users who have logged into the system with column header

2. Write a shell program to print number of positive, negative and zero values using case
statement

3. Write a C program to create a file with integer values. Open the file and read the content to
find the sum of all values in the file

1. Write and execute the following commands


a) to execute more than one command at a single execution
b) to display the first two lines of content in a file
c) to display last three lines of content in a file
d) to display the content of more than one file in a single command
e) to displays patterns in a line in the file that starts with letters from a to e

2. Write a shell program to find the sum of n different values

3. Write a C program to create a file with integer values and open the file to read the content to
find the number of values in a file

1. Write and execute the following commands


a) to displays the line of the file that contain a specific pattern
b) to add line numbers to a file and display it
c) to display the first character of each line from a file
d) to copy one file to another file
e) to create an empty file

2. Write a shell program to perform arithmetic operations such as addition, subtraction,


multiplication and division of two values using case statement

3. Write a C program to transpose of a matrix with dynamic memory allocation

4
1. Write and execute the following commands
a) to displays the 10 newest files in the current directory
b) to displays a list of directories and how much space they consume, sorted from the largest
to the smallest
c) to displays the total number of files in the current working directory and all of its
subdirectories
d) to list out the process running in the background
e) to kill the background process

2. Write a shell program to find the largest value from a set of values

3. Write a C program to sort an array of element in ascending order

1. Write and execute the following commands


a) to print recently used commands
b) to display all text files
c) to display a line of text
d) to change the owner of a file
e) to display the first character of each line from a file

2. Write a Shell program to find the Greeting based on system time using nested if statement

3. Write a C program to copy two files

1. Write and execute the following commands


a) to display the full path name of the current working directory
b) to create a new directory
c) count the number of lines, words and characters in a file
d) to combine two files
e) to move the content of one file to another file

2. Write a shell program to count the number of words in a line of text

3. Write a C program to create a file with integer values and open the file in read mode to read the
content of the file then sort the content of the file in ascending order

1. Write and execute the following commands


a) to display the number of blocks used by a file
b) count the number of lines, words and characters in a file
c) to combine two files
d) to move the content of one file to another file
e) to list out the hidden files from a directory

2. Write a shell program to count the number of vowels in a string

3. Write a C program to create a file with integer values and open the file in read mode to read the
content of the file then sort the content of the file in descending order

5
1. Write and execute the following commands
a) to create a directory.
b) to display all the files and directories in the current directory
c) to display the time in HH:MM:SS format
d) to sorts contents of the file in the alphabetical order
e) to count the number of words, characters and lines in a file.

2. Write a shell program to count the number of characters in a line of text

3. Write a C program to store a set of integer values. Open the file in read mode and count the
number of single, two and three digit values in a file

1. Write and execute the following commands


a) to display the seconds from the current time.
b) to create a directory.
c) to display current user.
d) to display files in the reverse alphabetical order
e) to create an empty file

2. Write a shell program to find the number of blank spaces in a line of text

3. Write a C program to store a set of integer values. Open the file in read mode and count the
number of even values in the file

1. Write and execute the following commands


a) to display current working directory.
b) to display date in mm/dd/yy form
c) to display files with capital letters in the beginning.
d) to count the number of words, characters and lines in a file
e) to change the directory.
2. Write a shell program to find the number of two character words in a line of text

3. Write a C program to create two files with a set of values. Merge the two file content to form a
single file

1. Write and execute the following commands


a) to display last ten characters in a file.
b) to remove the directory
c) to display the month in an abbreviated form.
d) to search and display a line for a given word or pattern in a given file.
e) to display the weekday in an abbreviated form.

2. Write a shell program to generate prime numbers between 10 and 100

3. Write a C program to count the number of prime numbers in an array with dynamic memory
allocation

6
1. Write and execute the following commands
a) to create a file
b) to display the weekday in an abbreviated form.
c) to search and display a line for a given word or pattern in a given file.
d) to display the current working directory.
e) to sort the contents of file in alphabetical order

2. Write a shell program to generate Armstrong numbers between 100 and 5000

3. Write a C program print the numbers which are divisible by 3 and not divisible by 2 from
an array of values with dynamic memory allocation

1. Write the UNIX commands for the following


a) to sort the contents of file in alphabetical order.
b) to display files in the reverse alphabetical order.
c) to search and display a line for a given word or pattern in a given file.
d) to display current user
e) to display date in mm/dd/yy form.

2. Write a shell program to find the sum of 13+23+33+..+N3

3. Write a C program to find row sum and column sum of a square matrix with dynamic memory
allocation

Mark Allocation
Question -
Question - 2 Question - 3 Viva Total
1
Algo. Prog. Exec. Algo. Prog. Exec.
10 100
20 marks 5 15 10 5 25 10 marks marks
marks marks marks marks marks marks

7
ANNA UNIVERSITY: CHENNAI 600 025
B.E./B.Tech. DEGREE EXAMINATIONS, APRIL /MAY- 2014
Regulations - 2013
Second Semester
(Common to EEE, E&I, I&C, Marine Engg.)
GE6263 COMPUTER PROGRAMMING LABORATORY
1. a. Write and execute the following UNIX commands 20
i.To display the pathname with your terminal
ii.Lists all entries, including the hidden files.
iii.View the contents of the file named text1.txt
iv.Count the number of lines, words and characters in a file.
b. Write a Shell program to accept the input as r and find the area and circumference of a
scircle. 40
c. Write a C program to accept the 15 natural numbers and find its mean, 40
median,mode, standard deviation and variance.

2. a. Write and execute the following UNIX commands 20


i.Create a file test1.txt and enter the values from 1 to 10
ii.Sort the content of file in ascending order
iii.Split the file in to 3 number of files
iv.View the content of file
b. Write a shell program to perform arithmetic operations using case construct. 40
c. Write a C program to print the given number is prime or not. 40

3. a. Write and execute the following UNIX commands 20


i.Create a directory with the name of Exam
ii.Create a file called exam.txt in theExam directory
iii.View the content of the exam.txt file
iv.Rename the file exam.txt to test.txt
b.Write a Shell program to find the largest digit of a number 40
c. Write a C program using dynamic memory allocation to sort n numbers in ascending
order. 40
4. a. Write and execute the following UNIX commands 20
(i) Count the specific number of lines in a file from the beginning of the
file
(ii) To destroy a specific file from a user directory
(iii) Send a greeting message to other user
(iv) Execute a shell program
b. Write a Shell program to find the factorial of a number using for loop. 40
c. Write a C program using dynamic memory allocation to perform addition of two
matrices. 40

5. a. Write and execute the following UNIX commands 20


(i) Create a directory
(ii) Create a file
(iii) Rename the directory
(iv) Rename the file
b. . Write a Shell program to check the given number is Armstrong or not . 40
c. Write a C program to find the sum of n numbers using function. 40

6. a. Write and execute the following UNIX commands 20


(i) Create a file
(ii) Update the file
(iii) Display the file contents
(iv) Display the file with line number
b. Write a Shell program to count the number of vowels in a line of text 40
c. Write a C program to create a file, which contains employee id, name, age etc and
display thecontents. 40

7. a. Write and execute the following UNIX commands 20


(i) Combine the two files in the form of register number followed by name
(ii) Sort the two files in ascending order
(iii) Count the number of lines in the files
(iv) Rename the two files.
b. Write a Shell program to find the second largest digit from a number 40
c. Using function, write a C program to check whether the given number and its reverse
are same. 40
8. a.Write and execute the following UNIX commands 20

i.Display the characteristics of the process.


ii.To list the file with detailed information
iii.Display the present working directory
iv.Demonstrate the pipe & fork command
b. Write a Shell program to find the Fibonacci series of n natural numbers. 40
c. Write a C program to swap the numbers with and without using third variable. 40

9. a.Write and execute the following UNIX commands 20


i.Extract the last ten lines and display them
ii.Display the file content size
iii.Display the file with the line number
iv.Count the number of words and lines in the file
b. Write a shell program to compute simple interest and compound interest. 40
c. Write a C program to perform matrix multiplication. 40

10. a.Write and execute the following using UNIX Commands: 20


i.To view one page of the file
ii.To view first 10 lines of the file
iii.To view last 10 lines of the file
iv.To view the commands which was executed
b. Write a shell program to compute the power of x. 40
c. Write a C program to find the greatest of N numbers using arrays. 40

11. a. Write and execute the following using UNIX Commands: 20


i.To create a directory
ii.To change the directory
iiiTo change the permission of the file
iv.To clear the screen
b. Write a shell program to check whether a given year is leap year or not. 40
c. Write a C program to sort N numbers. Use pointers. 40
12. a.Write and execute the following using UNIX Commands: 20
i.To print the calendar
ii.To print the date and time
iii.To change the password
iv.To print presently who is using the system
b. Write a shell program to check whether the given number is positive or negative.40
c. Write a C program using pointers to read in an array of integers and print its elements
in reverse order 40

13. a.Write and execute the following using UNIX Commands: 20


i.To list files and directories, recursively on a single line
ii.To view the files page by page
iii.To move the files
iv.To change the permission of the file
b. Write a shell program to find the GCD of numbers. 40
c. Write a C program to sort N numbers. Use functions 40

14. a.Write and execute the following using UNIX Commands: 20


i.Show manual for a command
ii.Change the file to read only mode
iii.Sort the files in alphabetical order
iv.To concatenate two files
b. Write a shell program to find the greatest among three numbers 40
c. Develop a C program to compute the roots of a quadratic equation. 40

15. a.Write and execute the following using UNIX Commands: 20


i.List all filenames which has dot at the end
ii.List all filenames which has an extension
iii.Store the output of date command in a file called date. out
iv.Sort the files in alphabetical order
b. Write a shell program to print the first N numbers divisible by 4. 40
c. Write a C program to perform matrix addition. Use functions. 40

16. a.Write and execute the following UNIX commands: 20


i. To check the working directory
ii. Change the password
iii. To display todays date
iv. To display the calendar of this month
b. Write a Shell program to find the sum of n different numbers. 40
c. Write a C program using dynamic memory allocation to sort n numbers in
descending order. 40
17. a.Write and execute the following UNIX commands: 20
i. Display the calendar
ii. Execute more than one command at a time (using semi-colon ;)
iii. Display the users full details
iv. Display the user-id / Group-id
b. Write a Shell program to check the given string is palindrome or not. 40
c. Write a C program using dynamic memory allocation to develop a mark sheet of 5
students. 40

18. a.Write and execute the following UNIX commands 20

i. Create a directory
ii. Create a file
iii. Rename the directory
iv. Rename the file
b. Write a Shell program to check the given number is Armstrong or not. 40
c. Write a C program to find the sum of n numbers using function. 40

19. a.Write and execute the following UNIX commands 20

i. Display the calendar of the current month


ii. Display todays date and time
iii. Display the present working directory
iv. Display your login username and access privilege
b.Write a Shell program to check the given number is even or odd. 40
c.Write a C program to implement the queue data structure using malloc() and do the
insert operation. 40

20. a.Write and execute the following UNIX commands: 20

i.Merge and sort the contents of the file1,file2


ii.Delete the file
iii.Print specified text from the file
iv.To display the current date in the form of dd/mm/yyyy.
b. Write a shell program to convert the lower case letters to upper case. 40
c. Write a C program to find the square and cube of a given number. 40

*****************
ANNA UNIVERSITY: CHENNAI 600 025
B.E. / B.Tech. DEGREE EXAMIATIONS, APR / MAY 2014
Regulation 2013
Second Semester
(Common to: B.E-Electrical and Electronics Engg. / B.E-Electronics and Instrumentation Engg. /
B.E-Instrumentation and Control Engg. / B.E-Marine Engg.)
GE6263 Computer Programming Laboratory
Duration: 3 Hours Maximum Marks: 100

1. a) Write and execute the following UNIX commands

(i) Create a file.


(ii) Display only the first two characters of all the lines from a file.
(iii) Convert the lower case to uppercase.
(iv) Combine two strings.
(v) Display the file contents in descending order.

b) Write shell script to perform the following arithmetic operations Addition,


Subtraction Multiplication and Division"

c) Write a shell program to find whether the given year is leap year or not.

2. a) Write and execute the following UNIX commands

(i) Create a file


(ii) View only files from a directory
(iii) Rename a file
(iv) View all files starting with a specific character
(v) View all the files which has a specific extension

b) Write a shell script to find the factorial of a given number

c) Write a c program to find the sum of all the digits of a given multi-digit number using
function with arguments and no return values
3. a) Write and execute the following UNIX commands
(i) To view only the files in a directory
(ii) Display the working directory
(iii)Execute more than one command at a time.
(iv) Demonstrate the pipe command
(v) Count the number of words in the file

b) Write a shell program to find the biggest & smallest among the three given
numbers.

c) Write a c program to swap two numbers using function call by value method

4. a) Write and execute the following UNIX commands


(i) Create two files.
(ii) Display the contents of both the files.
(iii) Count the number of characters
in both the files.
(iv) Rename the two files.
(v) Combine the two files without duplicate.

b) Write a shell script to generate Fibonacci series.

c) Write a c program to find the factorial of a number using recursion.

5. a) Write and execute the following UNIX commands


(i) Display the calendar.
(ii) Execute more than one command at a time (using
semi-colon ;) (iii) Display the users full details.
(iv) Display the user-id / Group-id.

b) Write shell scripts to find the sum of 0 to n even numbers.

c) C program to check if a number is palindrome using recursion


6. a) Write and execute the following UNIX commands
(i) Display the calendar
(ii) Display the date and time
(iii) Display the present working directory
(iv) Display your user name
(v) Create a file using cat command

b) Write a shell program to reverse the given number. (Ex. 35246 to 64253)

c) Write a c program to find the sum of all the digits of a given multi-digit number
using function with arguments and return values.

a) Write and execute the following UNIX commands


(i) Create a file
(ii) View only files from a directory
(iii) Rename a file
(iv) View all files starting with a specific character
(v) View all the files which has a specific extension

b) Write a shell script to find whether a given number is Armstrong or not. (NOTE: A
number is Armstrong if the sum of cubes of individual digits of a number is equal to t
the number itself)

c) Write a C program to find the product of two matrices of order (n X m) and (m Xp)
using dynamic memory allocation. Furnish output for two different input datasets
7. a) Write and execute the following UNIX commands
(i) Create a file
(ii) Print the specified number of lines of a file from start to end of the file.
(iii) Display the file content with line number
(iv) Update the file content with I/O redirection
(v) Rename the file

b) Write a shell script to print n natural numbers using while loop

c) Write a C program to perform the following file operations.

(i) Create a file named sample.txt.


(ii) Read characters from keyboard and write to the file sample.txt.
(iii) Read the contents of a file and display it in the screen

8. a) Execute the following using UNIX Commands:


(i) To append the contents of one file into another
(ii)To link files
(iii) To change the password
(iv) To display the file attributes

b) Write a shell program to find whether the given number is odd or even.

c) Write a c program to arrange a numbers in ascending and descending order using


dynamic memory allocation.
9. a) Write and execute the following UNIX commands
(i) Create a Directory called main
(ii) Create a sub-directory called sub in the main directory
(iii) Create a file in the main directory
(iv) Copy the file to the sub directory
(v) Delete the file in the main directory

b) Write a shell script to find the sum of given n numbers.

c) Write a c program to copy the contents of one text file into another text file.

10. a) Write and execute the following UNIX commands


(i) Create two files
(ii) Combine the two files
(iii) Search a specific word from any one of the file
(iv) Search a specific file from a directory
(v) Display the common and distinct line of content from a file

b) Write a shell script to convert the temperature in Celsius to Fahrenheit and


temperature in Fahrenheit to Celsius

c) Write a c program to find the smallest and greatest among the given n number using
dynamic memory allocation.

11. a) Write and execute the following UNIX commands


(i) Create two files
(ii) Display the content of both the file
(iii) Count the number of characters of both the files
(iv) Rename the two files
(v) Combine the two file without duplicate

b) Write a shell program to find whether the given number is prime number or not.

c) Write a C program to print Pascal triangle using for loop


12. a) Write and execute the following UNIX commands
(i) Count the specific number of lines from a file start from the beginning of
the file
(ii) To destroy a specific file from a user directory
(iii) Send a greeting message to other user
(iv) Execute a shell program
(v) To display current time

b) Write a shell program to convert decimal number to binary number.

c) Write a C program to find the greatest common divisor (GCD) and least common
multiple (LCM) of two integers.

13. a) Write and execute the following UNIX commands

(i) Extract the last ten lines and display them


(ii) Display the file content size
(iii) Display the file with the line number
(iv) Count the number of words and lines in the file

b) Write a shell program to find whether the given year is leap year or not.

c) Write a C program to add given two numbers using pointers


14. a ) Write and execute the following UNIX commands

(i) Print today date and the calendar of the current month using single
command
(ii)Create a sub-directory with your name in the Home directory
(iii) Create a file in the Home directory
(iv) Copy the file to the sub directory
(v) Using pipe command sort the files in alphabetical order and store it in
file1.dat

b) Write a shell program to execute any five UNIX command using case statements

c) Write a c program to print the following pattern

*
***
*****
*******
*********
*******
*****
***
*

15. a) Write and execute the following UNIX commands


i. Display the calendar of the current month
ii. Display todays date and time
iii. Display the present working directory
iv. Display your login username and access privilege
v. Try to login as root

b) Write a shell program to display student grades

c) Write a c program to swap two numbers using pointers.


16. a) Write and execute the following UNIX commands
(i) To view all the files and directories page by page
(ii) To view only the directories page by page
(iii) To view only the files from a directory
(iv) Display the working directory
(v) Display the complete path of the working directory

b) Write a shell program to find the smallest and largest number from a set of
numbers

c) Write a c program to check whether a given number is Armstrong or not. (NOTE:


A number is Armstrong if the sum of cubes of individual digits of a number is equal
to the number itself)

17. a) Write and execute the following UNIX commands


(i) Demonstrate pipe command
(ii) Demonstrate tee command
(iii) Use more than one command at a time (who and date)
(iv) Create a file called create.txt
(v) Move the file create.txt to move.txt

b) Write a shell program to find second largest number from a set of numbers.

c) Write a c Program to convert the decimal number to hexa-decimal number


18. a) Write and execute the following UNIX commands
(i) Create a file
(ii) Print the specified number of lines of a file start from end of file
(iii) Display the file content with line number
(iv) Update the file content with I/O redirection
(v) Rename the file

b) Write a Shell program to find the largest digit of a number

c) Write a C program to create a file, which contains employee id, name, age etc
and display the content

19. a) Write and execute the following UNIX commands


(i) Count the specific number of lines from a file start from the
beginning of the file
(ii) To destroy a specific file from a user directory
(iii) Send a greeting message to other user
(iv) Execute a shell program
(v) To display currents time

b) Write a Shell program to generate Fibonacci series

c) Write a C program to create a file, which contains register number, name, age
etc. and display the content of the file.
20. a) Write and execute the following UNIX commands
(i) Count the specific number of lines from a file start from the
beginning of the file
(ii) To destroy a specific file from a user directory
(iii) Send a greeting message to other user
(iv) Execute a shell program
(v) To display currents time
b) Write a Shell program to generate Fibonacci series
c) Write a C program to create a file, which contains register number, name,
age etc. and display the content of the file.

MARK ALLOTMENT

a) UNIX Commands - 20 marks

b) Shell Programming* - 30 marks

c) C Programming** - 40 marks

Viva-voce - 10 marks

TOTAL - 100 MARKS

* SHELL PROGRAMMING MARK ALLOCATION (30 MARKS)

Algorithm - 5 marks

Program -15 marks

Execution -10 marks

TOTAL - 30 MARKS

** C PROGRAMMING MARK ALLOCATION (40 MARKS)

Algorithm - 10 marks

Program - 20 marks

Execution - 10 marks

TOTAL - 40 MARKS

You might also like