Introduction to Computers

 

 

 

Name:

 

 

SSN:

 

 

Signature:

 

This sample test should have twenty (20) questions. No books, notes or calculators are allowed for this exam. Use your time wisely. Good Luck!!!

 

Place your answers on the Scan Tron sheet. When finished, place your Scan Tron sheet inside of the test booklet and hand both of them in.

 

 

SCORE: Possible: 20 Number Correct:

 

 

1. You are currently in your home directory, which has two subdirectories "jan.info" and "feb.info". In the directory "jan.info", there is a file called "jan.summary". Which command will move the file into the "feb.info" directory with the name "feb.summary"?

 

a. mv jan.summary feb.info/feb.summary

b. mv jan.info/jan.summary feb.summary

c. mv jan.info/jan.summary feb.info

d. mv jan.info/jan.summary feb.info/feb.summary

e. None of the above.

 

 

2. You are in the home directory and you want to remove a directory "temp", which has two files: file1 and file2. The directory "temp" is a subdirectory of your home directory. Which commands and in which order would you use?

 

(1) rm *

(2) rmdir temp

(3) cd temp

(4) cd ..

 

a. (3), (1), (4), (2)

b. (1), (2), (3), (4)

c. (2) only

d. (1) and (2) only

e. none of the above

 

 

3. Assuming the file "somefile" has all of its permissions set "on", which of the following commands will remove write permission to 'other' on the file "somefile":

 

(1) chmod o-w somefile

(2) chmod o+w somefile

(3) chmod 775 somefile

(4) chmod 777 somefile

(5) chmod 577 somefile

 

a. (2)

b. (4)

c. (1)

d. (1) & (3)

e. All of the above

 

 

4. You are in your home directory and have a file there called 'somefile'. You want to move this file to a directory called 'pub' that is a subdirectory of your friend's home directory. Your friend's home directory is 'friend'. Which of the following will do it.

 

(1) mv somefile pub

(2) mv somefile ~friend

(3) mv somefile ~friend/pub

(4) mv somefile friend/pub

(5) mv somefile WWW/friend/pub

 

a. (1)

b. (3)

c. (2) & (3)

d. (2) & (4)

e. None of the above

 

 

5. You do an ls command and get the following:

 

mem memo12 memo9 memoalex newmemo5

memo memo5 memoa memos

Then you do the command: "ls memo?", which files would be listed?

 

a. memo, memo5, memo9, memo12

b. memo5, memo9, memo1, memos

c. mem, memo

d. newmemo5, memoalex, memo9

e. None of the above

 

 

6. You do a cd WWW from your home directory. WWW is a link to your Web directory. Now you want to move to the immediate parent directory of your Web directory. Which will do it:

 

a. cd

b. cd..

c. Either cd or cd ..

d. cd ~/WWW

e. All of the above

 

 

7. You are in your friend's home directory and want to copy a file there called 'fun.txt'. You will copy it to a subdirectory called 'pub' of your own home directory which is called 'me'. But 'pub' does not exist. Which of the following will create it from the directory you are currently in?

 

a. mkdir pub

b. mkdir ~me/pub

c. md ~me/pub

d. mkdir me/pub

e. None of the above

 

 

8. If you want to copy an image from a web site while using netscape, what will you do:

 

a. Cut & Paste

b. Press the right button of the mouse while the pointer is on the image and select option "Save this Image As".

c. Press the right button of the mouse while the pointer is on the image and select option "Load this Image".

d. ftp

e. None of the above.

 

 

9. You store a image file under a subdirectory of your WWW directory; however cannot display it in a browser. Which of the following is NOT a possible problem?

 

a. The image is of the wrong format.

b. The image file is unreadable for the other users.

c. The subdirectory you stored the image in is unexecutable.

d. The image is too large to display.

e. None of the above.

 

10. Assume the image file "somepicture.jpg" is in the WWW directory. Identify ALL of the following that are NOT correct:

 

(1) <IMG ALIGN=CENTER SRC="somepicture.jpg">

(2) <IMG SRC="somepicture.jpg" WIDTH=200 HEIGHT=50>

(3) <IMG SRC="somepicture.jpg" ALIGN=RIGHT WIDTH=120>

(4) <IMG SRC="somepicture.jpg" BORDER=1 ALT="Picture goes here">

(5) <IMG SRC="somepicture" HSPACE=5 BORDER=2>

 

a. (1) & (5)

b. (3)

c. (1) & (2)

d. (4)

e. None of the above

 

 

11. Which answer is TRUE about the following HTML code for a table?

 

<table>

<caption>This is a table</caption>

<tr><th>I</th><th>am</th><th>&nbsp;</th></tr>

<tr><th>enrolled</th><th>in</th><th>EECS 101</th></tr>

</table>

 

a. This table has 2 rows

b. This table has 3 columns

c. This table has 1 blank cell

d. This table has no border

e. All of the above

 

 

12. What is WRONG with the following ANCHOR tag used to link to the Website with a URL called www.somewebsite.edu?

 

<A HREF=http:www.somewebsite.edu>

Click here to go to the UIC homepage

<A>

 

(1) The double quotes around the URL are missing

(2) The double slashes after colon in the URL are missing

(3) The end tag is missing a slash

(4) The text between the tags needs to be underlined

(5) Everything should be in lowercase

 

a. (1)

b. (1), (2), & (4)

c. (1), (3), & (5)

d. (1), (2), & (3)

e. None of the above

 

 

 

13. The table heading tag, <th>info</th>, is the same as which of the following table data tags?

 

a. <td align="center"><b><font size=+2>info</font></b></td>

b. <td align="center"><b>info</b></td>

c. <td align="center" text="bold">info</td>

d. <td valign="top"><br>info<br></td>

e. None of the above.

 

 

14. Which of the following is not a method that text can be displayed with HTML? (Which does not have a HTML tag?)

 

a. Bold

b. Underline

c. Strike-out

d. Reverse Image

e. All of the above can be done with HTML.

 

 

15. The main difference between ordered lists and unordered lists is:

 

a. Items in an ordered list are denoted with numbers or letters, while items in an unordered list are denoted with symbols (i.e. disks, squares, etc.)

b. Items in an ordered list are denoted with symbols (i.e. disks, squares, etc.), while items in an unordered list are denoted with numbers or letters.

c. Ordered lists will sort the items prior to displaying them, while an unordered list does not sort the items.

d. An ordered list has a limit on the number of items that it can contain, while an unordered list does not have a limit.

e. None of the above.

 

 

16. The following HTML is best described by which answer?

 

<UL>

<LI> <A href="http://www.eecs.uic.edu/~i101">My class </A>

<LI> <A href="http://www.eecs.uic.edu/">My Department</A>

</UL>

 

a. frames having links

b. a table having links

c. a list of links

d. images

e. None of the above

 

 

17. Which of the following tags can be used in the creation of tables:

 

a. <TD> </TD>

b. <TR> </TR>

c. <TABLE> </TABLE>

d. <TH> </TH>

e. All of the above

 

 

18. Which of the following does NOT introduce a new line:

 

a. <b>

b. <br>

c. <p>

d. <H1>

e. None of the above

 

 

19. For an HTML page that divides the screen into frames, which of the following tags cannot be included in that page:

 

a. <body></body>

b. <noframes></noframes>

c. <title></title>

d. <frameset></frameset>

e. None of the above (they all can be used)

 

 

20. Assume that you want to underline "My Resume" in your homepage. The tags to be used will be:

 

a. <underline>My Resume</underline>

b. <U>My Resume</U>

c. <I>My Resume</I>

d. <P>My Resume</P>

e. None of the above