Final Score ID Extra Credit. 10% of course grade

Similar documents
Final Score Name SOLUTION ID Extra Credit. 10% of course grade

CSCI 201L Written Exam #2. 10% of course grade

CSCI 201L Final Written SOLUTION. 13% of course grade

Spring % of course grade

Final Score ID Extra Credit. 15% of course grade

CSCI 201L Final Written Spring % of course grade

Final Score Name SOLUTION ID Extra Credit. 15% of course grade

Final Score ID Extra Credit. 15% of course grade

15% of course grade. Final Score ID Extra Credit. Name SOLUTION. Section (circle one): TTh 8:00-9:20 TTh 9:30-10:50 TTh 11:00-12:20

Lab #8 1/8 CSCI 201. Title Networking Worksheet. Lecture Topics Emphasized Networking Theory

CSCI 201L Written Exam #1 Fall % of course grade

12% of course grade. CSCI 201L Final - Written Fall /7

CSCI 201L Written Exam #1 Fall % of course grade

INTRODUCTION TO SOFTWARE SYSTEMS (COMP1110/COMP1140/COMP1510/COMP6710)

CSCI 201L Written Exam #1 Fall % of course grade

Midterm Exam 2 CS 455, Spring 2015

CSCI 201L Written Exam #1 - SOLUTION Fall % of course grade

CSCI 201L Syllabus Principles of Software Development Spring 2018

York University AK/ITEC OBJECT-BASED PROGRAMMING. Midterm Test Sample. Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes

IP Addressing - Subnetting

CS 455 Midterm 2 Spring 2018 [Bono] Apr. 3, 2018

Lesson 26: ArrayList (W08D1)

Ryerson University Vers HAL6891A-05 School of Computer Science CPS109 Midterm Test Fall 05 page 1 of 6

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

References and objects

CMSC330 Spring 2014 Midterm #2. Score 1 OCaml types & type

Functional Programming in Java. CSE 219 Department of Computer Science, Stony Brook University

Final Exam. COMP Summer I June 26, points

CS 455 Final Exam Spring 2018 [Bono] May 8, 2018

Computer Science II Fall 2009

CS 113 MIDTERM EXAM 2 SPRING 2013

Concurrent Computing CSCI 201 Principles of Software Development

CMPSCI 377: Operating Systems Exam 1: Processes, Threads, CPU Scheduling and Synchronization. October 9, 2002

CSCI 201L Midterm Written Fall % of course grade

CIS 1068 Design and Abstraction Spring 2017 Midterm 1a

CSE 1223: Introduction to Computer Programming in Java Chapter 6 ArrayLists

CSE 131 Introduction to Computer Science Fall Exam II

Object Oriented Concepts and Programming (CSC244) By Dr. Tabbasum Naz

Midterm Exam 2 CS 455, Spring 2014

BSc ( Hons) Computer Science with Network Security. Examinations for / Semester 2

IP Addressing and Subnetting

CS 455 Midterm Exam 1 Fall 2015 [Bono] Thursday, Oct. 1, 2015

CS 455 Midterm Exam 1 Spring 2013 [Bono] Feb. 21, 2013

Classes and Objects 3/28/2017. How can multiple methods within a Java class read and write the same variable?

CS 455 Midterm 2 Fall 2017 [Bono] Nov. 7, 2017

Lesson 3: Triangle Congruence: SSS, SAS, and ASA, Part 1

CSE 373 Spring 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

CCENT Study Guide. Chapter 4 Easy Subnetting

Remote Procedure Call

Final Java Experiment List(For Internal and External)

CSCI 201L Midterm Written SOLUTION Fall % of course grade

CMSC 331 Second Midterm Exam

CS 455 Final Exam Fall 2012 [Bono] Dec. 17, 2012

CS4411 Intro. to Operating Systems Exam 1 Fall points 10 pages

Exam 2. Programming I (CPCS 202) Instructor: M. G. Abbas Malik. Total Marks: 40 Obtained Marks:

Faculty of Computers & Information Computer Science Department

Section 003 Fall CS 170 Exam 1. Name (print): Instructions:

CS 455 Midterm Exam 1 Spring 2015 [Bono] Thursday, Feb. 19, 2015

Every language has its own scoping rules. For example, what is the scope of variable j in this Java program?

Lesson 10: Quiz #1 and Getting User Input (W03D2)

CSCI 136 Written Exam #1 Fundamentals of Computer Science II Spring 2012

Graphical User Interfaces (GUIs)

SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay. Lecture #10 Process Modelling DFD, Function Decomp (Part 2)

CSC 111, Test 1 (Fall 2009)

Question: Total Points: Score:

CSE 70 Final Exam Fall 2009

Lecture 02, Fall 2018 Friday September 7

Principles of Concurrent Programming TDA384/DIT391

Model Solutions. COMP 102: Test May, 2015

CMPS 134: Computer Science I Fall 2011 Test #1 October 5 Name Dr. McCloskey

Assignment 1 due Monday at 11:59pm

Exam Duration: 2hrs and 30min Software Design

CSE 212 : JAVA PROGRAMMING LAB. IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL. Prepared By : Approved by :

BCA (Part II) EXAMINATION 2008 C++ PROGRAMMING Max Time : 3 Hours Max. Marks : 50

G51PGP Programming Paradigms. Lecture 009 Concurrency, exceptions

by Pearson Education, Inc. All Rights Reserved. 2

CSE 142, Autumn 2008 Midterm Exam, Friday, October 31, 2008

Object Oriented Programming with JAVA

EEC-484/584 Computer Networks

Question: Total Points: Score:

Addressing the Network IPv4

CSCI 136 Written Exam #1 Fundamentals of Computer Science II Spring 2012

THE UNIVERSITY OF WESTERN AUSTRALIA SAMPLE EXAM QUESTIONS 2007 WITH SOLUTIONS SCHOOL OF COMPUTER SCIENCE CITS3213 CONCURRENT PROGRAMMING (PART II)

Chapter 6 Addressing the Network- IPv4

Chapter 3 Selection Statements

Concurrent, Real-Time and Distributed Programming in Java

CS2102, D15 Exam 1. Name:

CS 3430/5430 Homework 3 Solution Due: Saturday, Feb. 25 (11:59 PM)

Lab Activity Plan. John Dalbey CPE /30/2013

CS3516 B10 Computer Networks Final Exam December 14, 2010

11 Data Structures Foundations of Computer Science Cengage Learning

Building Java Programs

Networking and IP Addressing TELECOMMUNICATIONS AND NETWORKING

Threads Assistant Professor DCS Operating System Concepts

COURSE OUTLINE. School of Engineering Technology and Applied Science PRE-REQUISITES/CO-REQUISITES: CNET201

5.7 K E Y TE R M S 5.8 SUM M A R Y

Give one example where you might wish to use a three dimensional array

Administration. Conditional Statements. Agenda. Syntax. Flow of control. Lab 2 due now on floppy Lab 3 due tomorrow via FTP

Computer Science Foundation Exam

San Jose State University - Department of Computer Science

Transcription:

Name Final Score ID Extra Credit Section (circle one): MW 8:30-9:50 TTh 9:30-10:50 TTh 11:00-12:20 10% of course grade 1. Inner Classes Anonymous inner classes are very commonly used with event-driven programming in Java. There is no requirement to use them though. a. Give two reasons why using anonymous inner classes are beneficial. (0.5% + 0.5%) Reason #1 Reason #2 b. Give one situation when using anonymous inner classes is not recommended. (0.5%) 2. Software Engineering Many project managers may oppose the idea of pair programming as costing more than individual programming for producing the same number of features. Give two reasons why pair programming would not cost the company more than individual programming. (0.5% + 0.5%) Reason #1 Reason #2 1/6

3. Networking Theory For some odd reason, you decide to have Bruce Bruin, a UCLA student, as a roommate. Bruce tells you that you need to call the ISP to get another public IP address because there is only one public IP address right now, which is on his computer. As you start to explain how DHCP works, he asks you the following questions. IP 143.208.14.212 IP 1000 1111 1101 0000 0000 1110 1101 0100 a. My IP address is 143.208.14.212. Could that be the external IP address on the router? (0.5%) b. What is the network address? Provide this in the dotted IP notation, not in binary. (0.5%) c. What will the subnet mask be for our internal network? Assume that you are given one public IP address from your ISP, and you are using DHCP with private IP addresses internally for the two computers. Provide this in the dotted IP notation AND slash notation, not in binary. (0.5% + 0.5%) 2/6

4. Databases and SQL Answer the following questions concerning the database below. Here is the Book table. Here is the User table. Here is the CheckedOut table. a. Write the SQL code to insert 4 copies of Moby Dick by Herman Melville with an ISBN of 978-8-124-80048-5 into the Book table. (0.5%) b. Draw the table that is returned from the following query after the insert statement from part a has executed. (0.5%) SELECT b.title, co.numcheckedout FROM Book b, CheckedOut co WHERE b.bookid=co.bookid; 3/6

5. JDBC Give two advantages to using prepared statements with JDBC instead of just using statements. (0.5% + 0.5%) Advantage #1 Advantage #2 6. Concurrent Computing What is the major difference between parallel computing and distributed computing with respect to memory? (0.5%) 7. Multi-Threading and Parallel Programming In class we talked about the primary purpose of multi-threading and parallel programming. What are they? (0.5% + 0.5%) Primary purpose of multi-threaded programming Primary purpose of parallel programming 4/6

8. Multithreading Give two rules that will always be true about the output of the following program. (0.5% + 0.5%) import java.util.arraylist; import java.util.concurrent.semaphore; public class Problem8 extends Thread { public static ArrayList<Integer> al = new ArrayList<Integer>(); public static Semaphore sem = new Semaphore(4); private int num; public Problem8(int num) { this.num = num; public void run() { try { sem.acquire(); System.out.println(num + " starting "); for (int i=0; i < al.size(); i++) { System.out.println(al.get(i)); catch(interruptedexception ie) { Rule #1 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++) { Problem8 p8 = new Problem8(i); p8.start(); Rule #2 5/6

9. Distributed Programming RMI requires a security policy to be set on both server and client RMI programs. Explain why client RMI programs need to have a security policy set. (1.0%) Extra Credit Questions Extra credit is applied after the curve so does not affect other students. 10. Extra Credit This is the first semester that we assigned students in the group project in an attempt to more accurately mimic the real world. Do you think that was a good decision or do you think it would have been better for students to be able to select their own groups? Explain your answer. (0.5%) 6/6