Skip to main content

Some questions from OS LAB




SET A
Operating System Lab Quiz

1. Create a DOS batch file student.bat that examines the batch parameter %1 through %3. If a parameter is defined display the parameter’s value. If the parameter is not defined display an appropriate error message. [3]

2. Answer the following questions with respect to DOS: [3]

1. Which commands place entries in the environment?
2. How can you use SET to change your command prompt?
3. What is the function of REN command
4. what is purpose of pause command
5. How does Echo off affect pause?

3. Given the output of following: [4]
1. rm file *
2. wc < file1 3. ls|wc –l > file
4. mkdir abc|data abc|data2 abc




Set B

1. Create a DOS batch file student.bat that examines the batch parameter %1 through %3. If a parameter is defined display the parameter’s value. If the parameter is not defined display an appropriate error message. [2]


2. Answer the following with respect to DOS [3]:

1. How do you change existing environment’s entry value?
2. What is purpose of TEMP environment entry
3. Create a batch file which displays calendar for month of March’10


3. Given the output of following [5]:

1. rmdir abc|data abc|data2 abc
2. who >>file1
3. cat chap*>hello
4. echo $$
5. ps -l



SET C

Operating System Lab Quiz



1. Create a batch file teacher.bat that examines the batch parameter %1 through %4. If a parameter is defined display the parameter’s value. If the parameter is not defined display an appropriate error message. [2]


2. Answer the following [3]:

1. How do you change existing environment’s entry value?
2. What is purpose of TEMP environment entry?
3. Create a batch file which displays calendar for month of March’10


3. Given the output of following [5]:

a. rmdir abc|data abc|data2 abc
b. who >>file1
c. cat chap*>hello
d. echo $$
e. ps -l


SET D
Operating System Lab Quiz



1. Answer the following questions [5]:

1. What will cat fit fit fit display
2. How will you copy a directory structure tree1 tree2 ?Does it make any difference if tree2 exist?
3. What is difference between cat foo and cat > foo?
4. Delete all files and directories of the current directory through a single command?
5. Count number of lines, number of words and characters for 3 files and total count. All through a single command.

2. What is significance of these commands?[3]
a. mv $Home/include
b. cp –r t1 t2
c. mv *../bin

3. Make a menu driven program in dos using choice command [2]


Comments

Popular posts from this blog

Advantages and Disadvantages of EIS Advantages of EIS Easy for upper-level executives to use, extensive computer experience is not required in operations Provides timely delivery of company summary information Information that is provided is better understood Filters data for management Improves to tracking information Offers efficiency to decision makers Disadvantages of EIS System dependent Limited functionality, by design Information overload for some managers Benefits hard to quantify High implementation costs System may become slow, large, and hard to manage Need good internal processes for data management May lead to less reliable and less secure data

Inter-Organizational Value Chain

The value chain of   a company is part of over all value chain. The over all competitive advantage of an organization is not just dependent on the quality and efficiency of the company and quality of products but also upon the that of its suppliers and wholesalers and retailers it may use. The analysis of overall supply chain is called the value system. Different parts of the value chain 1.  Supplier     2.  Firm       3.   Channel 4 .   Buyer

Big-M Method and Two-Phase Method

Big-M Method The Big-M method of handling instances with artificial  variables is the “commonsense approach”. Essentially, the notion is to make the artificial variables, through their coefficients in the objective function, so costly or unprofitable that any feasible solution to the real problem would be preferred, unless the original instance possessed no feasible solutions at all. But this means that we need to assign, in the objective function, coefficients to the artificial variables that are either very small (maximization problem) or very large (minimization problem); whatever this value,let us call it Big M . In fact, this notion is an old trick in optimization in general; we  simply associate a penalty value with variables that we do not want to be part of an ultimate solution(unless such an outcome is unavoidable). Indeed, the penalty is so costly that unless any of the  respective variables' inclusion is warranted algorithmically, such variables will never be p