free web hosting | free hosting | Web Hosting | Free Website Submission | shopping cart | Coaching Institute | php hosting
affordable web hosting Pets web page hosting web hosting website hosting web hosting service web hosting web host
Your Ad Here | PeekPort | TrafficFish | Freebies | Free Websites | Mod Fashion | Hairstyles | Travel | geoglebay | Jokes | MP3s | Auto Glass Repair, Salt Lake City


ADD YOUR LINK
Make Money with Our Turnkey System. You don't even have to do anything, unless you want to! | Sell Domain Names and Hosting - We'll do everything for you!

Anirban's Personal Homepage

System Software and Administration Assignments


Part - A: Unix System Administration

  1. Create a NFS server machine and a NFS client machine over the network. The NFS client should be able to automount a certain directory of the NFS server machine. Write the appropriate commands and appropriate scripts that would serve the purpose.

  2. Show the live status of memory and the current hardware configuration using an appropriate command. Show the live running process table using appropriate command. In which file would you find all the details about the installed hardware (this file is used by kudzu)?

  3. Configure a Linux machine as a FTP server. Write appropriate commands and configuration scripts.

  4. Assume that you want to run a certain executable file ‘numlockx’ each time you login to a particular user account (say “bill”). What change will you make in which startup script so as to satisfy your objective in Linux? Assume that you would use the console based login.

  5. Assume that your root filesystem as become corrupt due to an improper shutdown. You would require to manually repair the filesystem. Elaborate the various steps with commands used that you will need to follow in order to repair your most valuable linux installation.

Part B: Assembly and System Programming

C System programs

  1. Write a lexical analyzer program in C that analyses an inputted C source code file and separates out the lexims as identifiers, string literals, numeric literals, keywords and operators. The lexical analyzer should also check for valid identifiers, string and numeric literals. The output of the program should be another file that contains the symbol table.

  2. Write a C program either in Turbo C (windows) or GCC (linux) that would check the syntax of any C expression. The expression may contain unary operators (unary negation, ++, -- etc), binary operators, “=” and literals of length greater than unity. For example,

test = a+++b--; is a valid C expression where as

counter=++counter++b ; is an invalid C expression.

For any error, it would print a meaningful error message. All variables and literals follow rules of C for naming with maximum length 256.

  1.  Write a C program that would covert any C arithmetic expression to an assembly code. For example abc=pq+d; would be converted as:

load pq

add d

store abc

TASM Assembly Programs

  1. Compute the values of the following expressions:-

    (a)    A=X +Y –Z (unsigned calculation)

    (b)   A= X + 3 * (Y-Z) (unsigned calculation)

    (c)    A= X + (- 3) * (Y-Z) (signed calculation)

    (d)   A= X/(Y-Z) (unsigned calculation)

    (e)    A= 5 * (X+Y) /Z (signed calculation)

    (f)     A = (B+C) /(X+1) (signed calculation)

    (g)    A = 3*C – 14 * B (signed calculation)

    (h)    A= (B/C) * (D+1) (signed calculation)

    (i)      A = (-B) * (D-1)

    (j)     Hours = Minutes /60; Minutes = Minutes %60 (unsigned calculation)

    (k)   Area = 22 * R * R /7 (unsigned calculation)

    (l)      Fact = N * (N-1) * … 2 *1 (unsigned calculation)

     

  2. Translate the following high-level pseudo-code fragments into assembly language program fragments.

    (a)    IF A>=0 THEN X=A ELSE X= - A

    (b)   IF (X>0) THEN SIGNX = 1 ELSE IF (X<0) THEN SIGNX = -1 ELSE SIGNX=0

    (c)    (IF (X>5) AND (Y<0) ) OR (Z<=13) THEN A = 0 ELSE A = 2

     

  3. Write an assembly program to check whether a number is a prime number and print prompt "PRIME" or "NOT PRIME"  accordingly.

  4. Print a BYTE value entered through keyboard on the monitor. For example, if one enters 52, the program prints 52 on monitor (NOT its ASCII equivalent).

  5. Write a program of matrix addition. The two matrices are given as a list of BYTE numbers and the program produces a third matrix as a list of another WORD numbers. Print the final matrix on monitor.

  6. Write an assembly program to reverse a character string which is inputted through keyboard. The program should print the reversed string on monitor.

  7. Write a program to convert all characters of an inputted string to uppercase and print the final string on monitor.

  8. Implement the division through repeated subtraction algorithm to divide a word number by a byte number.

  9. Implement "bubble sort" in assembly program. The program should have a list of unordered unsigned BYTE numbers as input and it should sort the same list and print the sorted list on monitor. DO NOT USE A SEPARATE ARRAY or ANOTHER LIST.

You may study the following assembly programs and learn the concepts that will be useful to implement the above assignments.