Sie sind auf Seite 1von 5

NAME :

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab ROLL NO : DATE :

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. 2. Write a Shell program to check and display Given year as leap years or not c. Write a C program using dynamic memory allocation to sort n numbers in ascending order. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

NAME :

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab ROLL NO : DATE

2. a. Write and execute the following UNIX commands (i) Create two files with the name of name.txt, which contain only names, and reg.txt withthe content of register number respectively. (ii) Combine the two files in the form of register number followed by name (iii)Count the number of lines in the files . b. Write a Shell program to convert given farenfeit temperature to centigerade c. Write a C program to create a file, which contains two numbers followed by an operator in a line. Read a line of the file, while reading it; with respect to the operator perform the operation against the numbers. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

NAME :

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab ROLL NO : DATE

3. 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. b. Write a Shell program to find the area PI* r2 and circumference of a circle 2*PI*r . c. Write a C program using dynamic memory allocation to sort n names in ascending order. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

NAME :

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab ROLL NO : DATE

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. b. Write a Shell program to check the given number and its reverse are same. Write a C program to read numbers from a file and store odd no and even no into respective files UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

NAME :

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab ROLL NO : DATE

5. a. Write and execute the following UNIX commands (i) To view all the files and directories page by page (ii) Display the working directory. (iii) Display the complete path of the working directory. b. Write a Shell program to check the given string is palindrome or not. c. Write a C program using dynamic memory allocation to add two matrices. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 6. 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) Execute more than one command at a time (using logical-AND&&). b. Write a Shell program to find the sum of odd and even numbers from a set of numbers. c. Write a C program using dynamic memory allocation to subtract two matrices. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 7. a. Write and execute the following UNIX commands (i)Demonstrate pipe command (ii)Demonstrate tee command : read from standard input and write to standard output and files (iii)Move the file create.txt to move.txt b. Write a Shell program to find the roots of a quadratic equation c.Write a C program using dynamic memory allocation to perform linear search operation . UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 8. a. Write and execute the following UNIX commands (i)Create a file (ii)Display the file content with line number (iii)Rename the file b. Write a Shell program to check the given integer is Armstrong number or not c. Write a C program using dynamic memory allocation to copy one matrix to another matrix UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 9. a. Write and execute the following UNIX commands (i)Create a directory (ii)Create a file (v)View the file b. Write a Shell program to check the given integer is prime or not c. Write a C program using dynamic memory allocation to perform multiplication of two matrices UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 10. a. Write and execute the following UNIX commands (i) Create a file (ii) Update the file (iii) Display the file content b. Write a Shell program to generate fibonacci numbers between 1 and 50 fibo series 0 1 1 2 c. Write a C program using dynamic memory allocation to find the sum of elements of a matrix UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 11. 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) Delete the file in the main directory b. Write a Shell program to find the sum of square of individual digits of a number c. Write a C program using dynamic memory allocation to develop a mark sheet of 5 students. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 12. a. Write and execute the following UNIX commands (i)Display the calendar (ii)Display the date and time (iii) Display the present working directory b. Write a Shell program to find the sum of cube of individual digits of a number c. Write a C program using dynamic memory allocation to develop salary details of 5 employees UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 13. a. Write and execute the following UNIX commands (i)Use grep command (ii)Use diff command (iii)Use cmp command b. Write a Shell program to execute various UNIX commands using case statements c. Write a C program using dynamic memory allocation to find the minimum and maximum of aset of numbers. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab NAME : ROLL NO : DATE 14. a. Write and execute the following UNIX commands (i) Create a directory (ii) View all directories from a user (iii) View all the directories starting with a specific character. b. Write a Shell program to count the number of vowels in a line of text array c. Write a C program to find the sum of n numbers using function. UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

NAME :

MODEL PRACTICAL EXAMINATIONS - MAY 2013 GE2155 Computer Practice Lab ROLL NO : DATE

15. a. Write and execute the following UNIX commands (i) Create a file (ii) View only files from a directory (ii) View all the files which has a specific extension b. Write a Shell program to display student grades c. Write a C program using pointers to allocate a memory for the string Kamaraj and reallocatethe memory for the string to Kamaraj College UNIX(10) SHELL(15) C PROGRAM(25) TOTAL (50)

Das könnte Ihnen auch gefallen