COS315 Previous Background Assessment: Instructions

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

COS315 Handout 2 20/02/03

COS315 Previous background assessment


Instructions
This test is designed to assess your computing and programming skills. Please answer to the best of your ability. This will not be graded.

Information
Name:

Email address:

Programming
1. Write down the value of i at the specied locations: i=0; i=i+1; i=i*2; i++;

i=? i=? i=?

2. Given the following code: j=0; for(i=0;i<5;i++) j++; What is the value of j? 3. Circle the lines which contain invalid statements: int *a; a = 5;

int a[3]; a[0] = 5; int *a, *b; *a=5; b=a;

COS315 Handout 2 20/02/03

UNIX
In the following table, the left hand column has a unix command, and its denition exists in the list on the right. Write the letter next to the command that most appropriately describes that command. The rst one has been completed as an example.

k nice cat cd which grep mkdir more rm tar ls emacs

(a) (b) (c) (d)

List the contents of the current directory Use to remove a le Show the contents of a le Show the contents of a le, with a return key for each screenfull (e) Use to nd a given string in a le (f) Determine the path of a given command to determine what will run (g) Change the current directory (h) Create a directory (i) Use to edit a le (j) Use to bundle a set of les into a single archive (k) Run at a dierent scheduling priority

Programming experience
Circle the number that corresponds to your experience with each particular programming language (0 - dont know it, 5 - expert!).

C C++ Java Fortran 77/90/95 Unix Shell Other (please describe below)

0 0 0 0 0 0

1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

5 5 5 5 5 5

COS315 Handout 2 20/02/03

Writing sample
In no less than seven sentences, please tell me a bit about yourself. Describe why you are studying computer science and what you would like to do once you obtain your degree.

You might also like