Instructions: This is an open book pretest. Answer all questions. There are three sections. There are a total of five question pages. The limit is two hours.

Section one: Select only one answer for each multiple- question. Each question is worth 2 marks. Q1. Determine which of the following is true concerning DOS filters a. A DOS filter is used to modify information as it passes from EBCDIC text files to the screen. False because it for ASCII not EBCDIC b. The sort command is replaced using the command ( /w) False because to sort you must use Dir /O:order ex. Dir/O:n c. The command ( /C “supervisor” memo1.txt memo2.txt) is an invalid command. False because it’s a valid command d. The command ( readme.doc | ) produces the same output as (more < readme.doc) True

Q2. Determine which of the following is true concerning the command a. To indicate branching of directories, the tree command only uses the line characters. False because there are lines b. The deltree command is an enhanced version of the tree command. False, deltree erases a directory, tree shows structure. c. We can use the tree command with redirection symbols. True d. The tree command is an internal DOS command. False, it’s external. Internal means it exists in command.com. Tree.exe is external.

Q3. Determine which of the following statement is true concerning variables. a. DOS includes built-in variables and therefore do not allow user defined variables. False – you can define your own variable. b. You can use the path variable in config. to list directories through which you want DOS to search to find program files. False, Path variable only exists in autoexec.bat c. The command (set prompt = $p$g) can be used to set the prompt to include the current path and a greater than sign. True. d. Variables do not require RAM space. False, variables reside in the RAM.

Q4. Which of the following statement about data copying is false? a. msbackup, , and can be used to backup files. True. b. You can use the copy command to combine all the contents of three files into one bigger file. True. Called concatenation. c. The copy command must -least include one parameter, at-most two parameters. True. d. The xcopy command is an enhanced version of the copy command and therefore does not require wildcards in its usage. False because you can use wildcards in XCOPY.

Q5. Which of the following statement is true about preparing a hard drive for usage? a. The command is used to create partitions on the hard drive. False, is for partitions. b. We can still use the hard drive even thou the following files on the C: drive are not installed: MSDOS.SYS, IO.SYS, COMMAND.COM. True, can still use drive- with boot disk for example. c. For every logical partition, we must create an extended partition on the hard drive. False, because you only need one extended partition for many logical partitions. d. The hard drive can have more than one active partition at a time. False, BIOS can only see one active partition at boot up.

Section two: With the given file structure of the hard drive below answer the following questions. Each question is worth two marks. C:\

folder name: folder name: folder name: folder name: download Document DOS Temp files: black.mp3 files: bsa001.tmp fly.mp3

folder name: folder name: PDF MP3

Q6. Write the instruction to change your current directory to the MP3 directory. C:\> document\mp3

Q7. What is wrong with this instruction: C:\>rd c:\Temp It will not remove the directory because there is a file in the directory. RD only works with an empty directory.

Q8. Write the instruction to the contents of the download directory into the MP3 directory. C:\> move download\*.mp3 document\mp3

Q9. Write the instruction to rename the MP3 directory to Music directory. C:\Temp> move c:\document\mp3 c:\document\music

Q10. Assume the contents of the DOS directory contains 125 files. Write the instructions to control the listing of the files in the DOS directory on screen. C:\> dir c:\dos /p /o:d

1

Q11. What is wrong with this instruction: C:\Temp>erase b?001.tm* The ? wildcard is used to only one character. The file name is bsa001.tmp. ? cannot replace the “s” and the “a” characters.

Q12. Write the instruction to create a subdirectory within the Document directory called diary. C:\DOS> md c:\document\diary

Section three: Answer all the following questions.

Q13 (2 marks): What function does an perform in a computer system? Resource management and extended machine. Q14 (2 marks) What are the four main types of resources managed by a typical operating system? IRQ, I/O address, DMA, memory address.

Q15 (2 marks) What is the purpose of using a batch file? The purpose of a batch file is to execute line by line frequently used commands that the user types and saves.

Q16 (6 marks) Write a short batch file according to the pseudo-code below: • Clear the dos screen • Turn off the displaying of the commands • Allow the user to choose two menu items: one to display his name, another to the batch file. Note: The batch file will not end until the user enters the exit option. (hint: create a loop) • The batch file must be able to display any user name (hint: use replaceable parameters) • Remember to be polite and add an exit message when exiting your batch file.

Cls @ off : echo hit n key to display name echo hit x key to exit choice /c: nx If errorlevel 2 goto end Echo %1 Goto start :end echo Goodbye! Q17 (2 marks) How would you make a copy of a diskette onto another diskette without using the hard drive as a temporary storage area? a:\

2

Q18 (4 marks) Describe what the following batch file is doing? :START = SHIFT = move 1 parameter over to the left IF NOT “%0” = = “” GOTO END = = if parameter list is not empty, go to end ECHO %0 = display parameter 0 REM IF NOT EXIST GOTO END = it does nothing, this is remark statement GOTO START = jump statement :END = label ECHO Later gator! = display message

Q19 (3 marks) Assume you created the following files on your hard drive according to the following dates: File1.txt Sept. 5, 2003 File2.txt Sept. 7, 2003 File5.txt Sept. 11, 2003 File4.txt Sept. 19, 2003 File8.txt Sept. 28, 2003 File6.txt Oct. 8, 2003 File9.txt Oct. 22, 2003 File7.txt Nov. 2, 2003

a. What would be modified to what files if you made a full backup on Sept. 16, 2003? Turns off archive attribute for file1.txt, file2.txt and file5.txt.

b. Assume you made a full backup on Sept. 16, 2003 and an incremental backup on Sept. 22, 2003. Which files would be backup if you made another incremental backup on Oct. 12, 2003? File8.txt, and file6.txt c. Assume you made a differential backup on Sept.25, 2003. What files would be backup if you made another differential backup on Oct. 28, 2003? All files but file7.txt

Q20 (3 marks) AUTOEXEC.BAT contains the following C:\DOS\SMARTDRV C+ 4 /N a. Describe what this instruction performs. C+ -> enables read and write caching for drive c 4 -> 4 kilobytes /n -> write cached data to disk when system is idle. b. What instruction can we include in CONFIG.SYS that will basically perform the same function as SMARTDRV mentioned above? Buffer = 1,8

3

Q21 (2 marks) Describe the computer bootup sequence. 1. POST – ROM BIOS start-up program surveys hardware resources and assigns & meets resource needs. 2. ROM BIOS searches and loads ODS 3. OS configures system and continues loading 4. User executes software application.

4