1. Which of the following is true of the Transmission Con- Answer: E all of the above.
trol Protocol (TCP):
A it operates over the Internet Protocol (IP),
B it add reliability,
C it manages data ordering,
D it performs error checking, E all of the above.
E all of the above.
2. Which compiler options is used to create a .so file: Answer: E -shared.
A -c.
B -E.
C -o.
D -std=c99.
E -shared.
3. In A1, why was a union used: Answer: B to allow differ-
A to speed execution on multi-core processors. ent kinds of phylib objects
B to allow different kinds of phylib objects to be de- to be declared
clared interchangably.
C to allow the balls to be accessed in a different order.
D to prevent the exploitation of the working class.
E none of the above.
4. The sniffer.py program used in class showed: Answer: E all of the above.
A information flowing from a web-browser to a server,
B the use of non-privileged ports (higher than 1024),
C information flowing from a server to a web-browser,
D that it is easy to spy on network traffic if it is not
encrypted,
E all of the above.
5.
1/8
, CIS 2750 FINAL EXAM STUDY MIDTERM QUESTIONS
A foreign key in a SQL database is used to: Answer: A ensure consis-
A ensure consistency of data across multiple tables. tency of data across multi-
B maintain the correct ordering of the rows of the ple tables.
table.
C allow rapid access to rows of the based on the key.
D all of the above.
E none of the above.
6. In A1, how many integer numbers (of any size) did the Answer: B 1.
phylib still ball structure contain:
A 0.
B 1.
C 2.
D 3.
E 4.
7. What can happen if you forget to add a WHERE clase Answer: A all rows in
to an SQL operation: the table are changed or
A all rows in the table are changed or deleted. deleted.
B the Helvetica scenario is initiated.
C you may cause a breach in the warp-core contain-
ment field.
D a segmentation fault occurs.
E none of the above.
8. git is useful for: Answer: D all of the above.
(a) moving software between computers.
(b) backing up software.
(c) maintaining different versions of software.
(d) all of the above.
(e) none of the above.
9. Answer: A -c.
2/8