Pre-lab 3 questions
Name:
Cnet ID:
Lab start time:
Note: There may be more than one answer. Make sure you leave
all that apply.
1. Label each line with the color it will produce given RGB colors from 0-255.
a) 255, 0, 0
b) 0, 255, 0
c) 0, 0, 255
d) 0, 0, 0
e) 255, 255, 255
2. png compresses the file without losing any information. This is called:
(delete the incorrect one)
a) lossless
b) lossy
3. All strings in C end with:
(delete the incorrect ones)
a) \n
b) \0
c) \t
d) .
e) !
4. When you pass a string, you pass (copy to a local variable):
(delete the incorrect ones)
a) The length of the array
b) The length of the string
c) The address of the beginning of the string
d) The address of the end of the string
e) The contents of the entire string