Assignment 1
Assignment 1
MODULE-1
1 Write a pseudocode for a program to find if the input integer is even or odd and L1
describe its flow using a flowchart.
2 Compare the advantages of using flowcharts versus pseudocode in program L2
design.
3 Enumerate the hierarchical structure of the Linux file system and explain the L1
purpose of key directories like /bin, /home, /var, /proc, /tmp and /sbin
4 Interpret the differences between absolute and relative paths with examples for L2
navigating a Linux directory structure.
5 Use cd, mkdir, and touch commands to set up the following structure: L3
6 Below is the sequence of commands using cd, mkdir, and touch. Build the tree L3
structure for the same.
cd /home/cse_user
mkdir project
cd project
mkdir dir1
mkdir dir2
mkdir dir3
cd dir1
touch file1
touch file2
cd ..
cd dir2
touch file3
cd..
cd dir3
touch file4
7 Consider a file secret.txt with the permissions rw-r--r--: L3
The owner should be able to read and write the file.
The group and others should have no permissions on the file.
Explain how to change the file permissions by applying both symbolic and octal
notation.
8 Define the key stages of the C program compilation process and summarize their L1
functions briefly.
9 Write a simple C program to print "Hello, World!" and describe the purpose of L1
each line in the code.
MODULE-2
b) Convert the signed magnitude binary 10011001 into its decimal equivalent.
4 a) Convert the binary fractional number 0.101 into its decimal equivalent. L1
b) Write the binary representation for the fractional decimal number 0.3125.
6 Represent the decimal number 9.75 in IEEE 754 single-precision format. L3
(Represent both in binary and hexadecimal format)
MODULE-3