CSCI 201L Written Exam #2 Summer 2016 10% of Course Grade
CSCI 201L Written Exam #2 Summer 2016 10% of Course Grade
CSCI 201L Written Exam #2 Summer 2016 10% of Course Grade
Reason #1
Reason #2
Reason #1
Reason #2
b. Even though Java tried to create its JDBC framework so that no code has to be
changed when you change from one database to another, the implementation
unfortunately does not allow this. Explain why. (0.5%)
3. Networking Theory – You have started a small web hosting company and you need
to get the network set up with many Internet-facing computers. Since you have taken
CSCI 201, you know that the best way to do this is to have a static IP address on each
of those servers. Assume that you need 27 IP addresses. When you call your ISP,
there is a UCLA alumnus working there. You tell him what you want, and he says,
“One of your IP addresses is 215.76.194.57,” but he doesn’t tell you anything else.
Because you went to USC, you can hopefully answer the following questions though.
a. What is the network address? Provide this in the dotted IP notation, not in
binary. (0.5%)
b. So that you are given the fewest number of IP addresses for your desired
purpose, what is the subnet mask? Provide this in the dotted IP notation AND
slash notation, not in binary. (0.5% + 0.5%)
a. Write the SQL query that returns the following table. (1.0%)
} finally {
System.out.println(num + " ending ");
sem.release();
}
}
public static void main(String[] args) {
for (int i=0; i < 5; i++) {
al.add(i);
}
for (int i=0; i < 100; i++) {
Problem6 p6 = new Problem6(i);
P6.start();
}
}
}
8. Extra Credit – We covered six major topics in this class. Rank these six topics in
order of what you thought was most useful to least useful. Provide one sentence
explaining why you thought the most useful topic was the most useful and one
sentence explaining why you thought the least useful topic was the least useful. The
topics were: Java porting from C++, GUIs, Software Engineering, Networking,
Databases, and Concurrent Programming. (0.25% + 0.25%)
#1 (Most Useful) –
Explanation –
#2 –
#3 –
#4 –
#5 –
#6 (Least Useful) –
Explanation –
CSCI 201L Final – Written
Summer 2016
6/6