Details of this Paper

cis355a final timed 3 hours to complete




1. (TCO 1) All of the following are conceptual constructs of object-oriented programming except _____. (Points: 3) encapsulation;inheritance;iteration;polymorphism;Question 2. 2. (TCO 1) A(n) _____ language is a language that has a compact set of commands without numerous versions or adaptations of the same command. (Points: 3) portable;parsimonious;robust;secure;Question 3. 3. (TCO 1) When a method refers to an instance of an object with a variable, the variable is called a(n) _____. (Points: 3) data variable;instance variable;object variable;reference variable;Question 4. 4. (TCO 1) The drawString () method accepts all of the following arguments except a _____. (Points: 3) Graphics object;horizontal coordinate;String;vertical coordinate;Question 5. 5. (TCO 1) The Java Software Development Kit includes all of the following tools except _____. (Points: 3) class libraries;a compiler;other tool;a debugger;Question 6. 6. (TCO 1) A listener interface becomes _____ with its event source at compile time. (Points: 3) buffered;defined;instantiated;registered;Question 7. 7. (TCO 3) The actionPerformed() method is part of the _____. (Points: 3) ActionEvent class;ActionListener interface;Applet class;Button class;Question 8. 8. (TCO 3) Which of the following is a valid condition for an if statement? Assume the variable "done" is a boolean. (Points: 3) (done=true);((done == false) || (done == true));(done == "false");(done == false && done);Question 9. 9. (TCO 1) _____ is a package that provides a set of Java-based GUI components. (Points: 3) java.lang;;java.util;javax.swing;Question 10. 10. (TCO 1) Which of the following is an equality operator? (Points: 3) !=;=;=;+=;Question 11. 11. (TCO 1) _____ is a class used to display standard dialog boxes. (Points: 3) Box;JFrame;JOptionPane;JWindow;Question 12. 12. (TCO 1) The _____ class serves as an intermediary between the input buffer and the Java program. (Points: 3) BufferedInputStream;BufferedReader;InputStreamReader;;Question 13. 13. (TCO 4) In the code below, what will be the result of sum?;int sum = 0;int i;for (i = 0, i <= 10, i++);sum = sum + i;System.out.println(?Sum = ? + sum), (Points: 4) Sum = 55;Sum = 10;Sum = 11;Sum = 0;Question 14. 14. (TCO 4) Which of the following statements about arrays are true? (Points: 4) Arrays are a group of variables containing values that all have the same type.;Elements are located by index or subscript.;The length of an array c is determined by the expression c.length(),.;The zeroth element of array c is specified by c[ 0 ].;Question 15. 15. (TCO 4) How many times will the following for loop be executed?;for (int counter=1, counter method;method(class);Question 3. 3. (TCO 6) A(n) _____ is the term used to specify a class that instantiates other classes and calls appropriate methods. (Points: 4) driver class;external class;instance class;superclass;Question 4. 4. (TCO 6) All of the following are AWT components except _____. (Points: 4) Choice;JOptionPane;Panel;TextArea;Question 5. 5. (TCO 2) The mechanism(s) for handling an event, involve _____. (Points: 4) event source;event object;event listener;All of the above;Question 6. 6. (TCO 2) A loop that executes a specific number of times is called a _____ loop. (Points: 4) counter-controlled;bottom test;top test;sentinel-controlled;Question 7. 7. (TCO 2) The _____ of an object refers to the various properties of the object, whose values might change. (Points: 4) behavior;identity;instance;state;Question 8. 8. (TCO 2) The _____ manager is used primarily to house other containers, each of which can use its own layout manager. (Points: 4) BorderLayout;CardLayout;GridLayout;GridBagLayout;Question 9. 9. (TCO 5) The following are types of SQL statements, except (Points: 4) drop.;create.;build.;select.;Question 10. 10. (TCO 5) Creating a foreign key requires creating a reference in the current table to the table and primary key field name(s) in the related table. This is done with the _____ keyword. (Points: 4) RELATES;ASSOCIATE;REFERENCES;FOREIGN;Question 11. 11. (TCO 5) A(n) _____ is a rule that restricts the data value that can be entered in a column. (Points: 4) constraint;index;relation;integrity;Question 12. 12. (TCO 5) Results of a query are returned as a _____ object, which is a table of data representing the database result set. (Points: 4) ResultSet;Results;Set;List;Question 13. 13. (TCO 5) The _____ is a type of a JDBC driver. (Points: 4) JDBC-ODBC bridge;native-API;net-protocol;native protocol;All of the above;Question 14. 14. (TCO 5) A major benefit of using JDBC is _____. (Points: 4) flexibility;interoperability;functionality;applicability;Question 15. 15. (TCO 5) In order to return only a specific set of records in a ResultSet object, one must _____. (Points: 4) include the columns to be returned;include a search condition in the SQL statement;include the number of rows to be returned;do nothing;Question 16. 16. (TCO 6) The _____ class contains a pool of styles, such as font and color. (Points: 4) StyleContext;Style;Styles;AttributeSte;Question 17. 17. (TCO 6) The argument type(s) of the addStyle() method is / are _____. (Points: 4) String;Style;Style, String;String, Style;Question 18. 18. (TCO 6) A constructor for a Dimension object takes _____ argument(s). (Points: 4) one integer;one integer array;two integer;two float;Question 19. 19. (TCO 6) The setBold() and setFontSize() methods belong to the _____ class. (Points: 4) Attribute;AttributeSet;Style;StyleConstants;Question 20. 20. (TCO 7) Which of the following is not a button option of the showConfirmDialog box? (Points: 4) DEFAULT_OPTION;OK_CLOSE_OPTION;YES_NO_OPTION;YES_NO_CANCEL_OPTION;Question 21. 21. (TCO 7) The seek() method takes an argument that specifies a(n) _____ position. (Points: 4) byte;integer;char;String;Question 22. 22. (TCO 7) What argument does the System.exit() use if a program terminates abnormally? (Points: 4) null;-1;0;1;Question 23. 23. (TCO 7) The letter descriptor for specifying an hour in am/pm (0-11) format is _____. (Points: 4) aa;KK;kk;hh;Question 24. 24. (TCO 6) Instance variables are often defined as _____ to limit their access to within the class. (Points: 4) final;private;public;static;Question 25. 25. (TCO 6) Which one of the following statements is not true about ArrayList compared to LinkedList? (Points: 4) ArrayList typically yields faster access than LinkedList.;ArrayList allows programmers to resize the length of the list.;ArrayList does not allow inserting and deleting list members.;The time to position an element in an ArrayList is the same for any element, but varies linearly for a LinkedList.;Question 26. 26. (TCO 6) The _____ method of the String class removes any leading or trailing white space. (Points: 4) delete();remove();trim();trimToSize();Question 27. 27. (TCO 6) If a method does not handle a potential exception, it claims the exception by _____. (Points: 4) using the keyword, throws, as a method modifier;placing the Exception type in the method header parameter list;placing the keyword, throws, followed by the Exception type, in the method header;placing the Exception type in the method header return type;Question 28. 28. (TCO 6) Which of the following is true of an object s public interface? (Points: 4) Changing an object s public interface will not affect existing programs.;The implementation of a public method can be changed without changing the public interface.;The public interface of an object consists of the method header and body.;Object methods should be placed in an object s public interface, if possible.;Question 29. 29. (TCO 6) The _____ is a routine provided by the JVM that frees previously allocated memory for objects which are no longer in use. (Points: 4) free memory;garbage collector;memory heap;object collector;Question 30. 30. (TCO 6) The _____ method is not a member of the String class. (Points: 4) append();charAt();length();substring() 1.


Paper#70856 | Written in 18-Jul-2015

Price : $47