Skip to main content

Software Development Exam Bank - 758 Verified Questions

Page 1


Software Development Exam Bank

Course Introduction

Software Development is a comprehensive course that introduces students to the principles, methodologies, and tools essential for designing, implementing, and maintaining software applications. The course covers the software development life cycle, including requirements analysis, system design, coding, testing, debugging, and deployment. Students will gain hands-on experience by working on collaborative projects, utilizing version control systems, and applying best practices in software engineering. Emphasis is placed on problem-solving, algorithm development, and the use of modern programming languages, preparing students for real-world software development challenges and teamwork in professional environments.

Recommended Textbook

Absolute Java 5th Edition by Walter Savitch

Available Study Resources on Quizplus

20 Chapters

758 Verified Questions

758 Flashcards

Source URL: https://quizplus.com/study-set/3975 Page 2

Chapter 1: Getting Started

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

Source URL: https://quizplus.com/quiz/79864

Sample Questions

Q1) The escape sequence the represents the new-line character is:

A)\r

B)\t

C)\n

D)\\

Answer: C

Q2) Define high-level languages,machine language and low-level language.Explain how the languages correspond to one another.

Answer: High-level programming languages were designed to be easy for humans to read and use.High-level languages consist of English like statements.Machine language or low-level language is the language that the computer understands directly. The source code created with Java,a high-level language,is compiled or translated into the machine language,or object code.The object code is the program that executes on the computer.

Q3) The Java programming language allows you to concatenate two strings using the plus sign.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Console Input and Output

Available Study Resources on Quizplus for this Chatper

29 Verified Questions

29 Flashcards

Source URL: https://quizplus.com/quiz/79862

Sample Questions

Q1) What does the following code output? DecimalFormat dfQuestion = new DecimalFormat("#0.##E0"); System.out.println(dfQuestion.format(12.7896987));

A)12.79E0

B)12.8E0

C)1.28E1

D).13E2

Answer: A

Q2) What do the format specifiers d,f,e,g,s and c represent?

Answer: The format specifiers d,f,e,and g are all used for numeric representation.Specifier d represents a decimal integer,specifier f represents a fixed-point floating-point number,specifier e represents E-notation floating-point,and specifier g represents general floating-point in which Java secedes whether to use E-notation. The format specifiers s and c are used for string and character representation,respectively.

Q3) Write Java statements to apply currency formatting to the number 100.Indicate the package you need to import.

Answer: import java.text.NumberFormat; NumberFormat nfMoney = NumberFormat.getCurrencyInstance(); System.out.println(nfMoney.format(100));

To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Flow of Control

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/79861

Sample Questions

Q1) When using a compound Boolean expression joined by an && (AND)in an if statement:

A)Both expressions must evaluate to true for the statement to execute.

B)The first expression must evaluate to true and the second expression must evaluate to false for the statement to execute.

C)The first expression must evaluate to false and the second expression must evaluate to true for the statement to execute.

D)Both expressions must evaluate to false for the statement to execute.

Answer: A

Q2) Evaluate the Boolean equation: !( ( 6 < 5)&& (4 < 3))

A)True

B)False

Answer: True

Q3) Boolean expressions are used to control branch and loop statements.

A)True

B)False

Answer: True

To view all questions and flashcards with answers, click on the resource link above.

5

Chapter 4: Defining Classes I

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

Source URL: https://quizplus.com/quiz/79860

Sample Questions

Q1) A variable whose meaning is confined to a method definition is called an/a

A)instance variable

B)local variable

C)global variable

D)none of the above

Q2) Add two constructors to the Appointment class created in question #9.Include a default constructor and a constructor to initialize an Appointment to suitable arguments.

Q3) Write a driver program to test your Student class created in question #14.

Q4) A _________ states what is assumed to be true when the method is called.

A)prescript

B)postscript

C)precondition

D)postcondition

Q5) Java supports operator overloading.

A)True

B)False

Q6) Boolean expressions may be used to control if-else or while statements.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 6

Chapter 5: Defining Classes Ii

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

Source URL: https://quizplus.com/quiz/79859

Sample Questions

Q1) Javadoc requires a comment to be delimited by _________ to be included in the extracted class interface.

A)// //

B)/* */

C)/** */

D)" "

Q2) A copy constructor has _________ parameters.

A)zero

B)one

C)two

D)three

Q3) Write ONE Java statement that computes and displays the value of 2<sup>5</sup>.

Q4) A condition that allows a programmer to circumvent the private modifier and change the private instance variable is called:

A)a copy constructor

B)a privacy leak

C)a class invariant

D)an anonymous object

Q5) What is the purpose of Java's wrapper classes?

Q6) Explain in detail how main memory works.

To view all questions and flashcards with answers, click on the resource link above. Page 7

Chapter 6: Arrays

Available Study Resources on Quizplus for this Chatper

47 Verified Questions

47 Flashcards

Source URL: https://quizplus.com/quiz/79858

Sample Questions

Q1) What is the correct expression for accessing the 5<sup>th</sup> element in an array named colors?

A)colors[3]

B)colors[4]

C)colors[5]

D)colors[6]

Q2) Java provides a looping mechanism for objects of a collection.This looping mechanism is called a __________ loop.

A)While

B)For

C)For each

D)All of the above

Q3) Which of the following initializer lists correctly initializes the indexed variables of an array named myDoubles?

A)double myDoubles[double] = {0.0,1.0,1.5,2.0,2.5};

B)double myDoubles[5] = new double(0.0,1.0,1.5,2.0,2.5);

C)double[] myDoubles = {0.0,1.0,1.5,2.0,2.5};

D)array myDoubles[double] = {0.0,1.0,1.5,2.0,2.5};

Q4) How are arrays tested to see if they contain the same contents?

To view all questions and flashcards with answers, click on the resource link above. Page 8

Chapter 7: Inheritance

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/79857

Sample Questions

Q1) Private methods of the base class are not available for use by derived classes.

A)True B)False

Q2) Create a test driver to test the functionality of your AlarmClock class created in number 3 above.

Q3) Define a base class to represent a Clock.Your class should have instance variables for hours,minutes and seconds.

Q4) Overriding is when a derived class redefines a method from the base class.

A)True

B)False

Q5) Explain the modifiers public,protected and private.

Q6) Define a derived class to represent an alarm clock.Use the Clock class,created in number 2 above,as your base class.

Q7) What are the different ways in which you can check the class of an Object?

Q8) When you define a derived class,you give only the added instance variables and the added methods as well as all the methods from the base class.

A)True

B)False

Q9) What is package access?

To view all questions and flashcards with answers, click on the resource link above. Page 9

Chapter 8: Console Input and Output

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/79856

Sample Questions

Q1) Describe the limitations of the copy constructor.

Q2) The clone method return type is:

A)the same as the cloned object

B)Object

C)String

D)none of the above

Q3) If you choose to use the method clone in your code,you must ___________ the clone method.

A)overload

B)encapsulate

C)override

D)protect

Q4) Write a decision statement to determine if an object should be downcast.

Q5) Java allows an instance of an abstract class to be instantiated.

A)True

B)False

Q6) The method clone has one parameter and should return a copy of the calling object.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 9: Exception Handling

Available Study Resources on Quizplus for this Chatper

45 Verified Questions

45 Flashcards

Source URL: https://quizplus.com/quiz/79855

Sample Questions

Q1) Should an application catch objects of type Error?

Q2) Define an exception class called NegativeNumberException.The class should have a constructor with no parameters.If an exception is thrown with this zero-argument constructor,getMessage should return "Negative Number Not Allowed!" The class should also have a constructor with a single parameter of type String.If an exception is thrown with this constructor,then getMessage returns the value that was used as an argument to the constructor.

Q3) A runtime exception is a/an:

A)checked exception

B)unchecked exception

C)offending exception

D)none of the above

Q4) If a method throws an exception,and the exception is not caught inside the method,then the method invocation:

A)terminates

B)transfers control to the catch block

C)transfers control to the exception handler

D)none of the above

Q5) What is the purpose of the method getMessage()when used with exception handling?

Q6) List five common examples of exceptions that occur.

To view all questions and flashcards with answers, click on the resource link above. Page 11

Chapter 10: File IO

Available Study Resources on Quizplus for this Chatper

46 Verified Questions

46 Flashcards

Source URL: https://quizplus.com/quiz/79874

Sample Questions

Q1) When your program is finished writing to a file,it should close the stream connected to that file.

A)True

B)False

Q2) The output stream connected to the computer screen is:

A)System.exit

B)System.quit

C)System.in

D)System.out

Q3) In Java,when you open a text file you should account for a possible:

A)FileNotFoundException

B)FileFullException

C)FileNotReadyException

D)all of the above

Q4) Explain what happens when an output file is opened in Java.

Q5) All of the following are methods of the File class except:

A)exists()

B)delete()

C)getDirectory()

D)getName()

12

To view all questions and flashcards with answers, click on the resource link above.

Chapter 12: Uml and Patterns

Available Study Resources on Quizplus for this Chatper

22 Verified Questions

22 Flashcards

Source URL: https://quizplus.com/quiz/79872

Sample Questions

Q1) UML is a graphical language that is used for designing and documenting software created within the _____________ framework.

A)top-down programming

B)bottom-up programming

C)structured programming

D)object oriented programming

Q2) Define pseudocode.

Q3) The third section of a UML class diagram specifies the:

A)class members

B)class name

C)class methods

D)class modifiers

Q4) Class diagrams must contain all class members.

A)True

B)False

Q5) The first section of a UML class diagram specifies the:

A)class members

B)class name

C)class methods

D)class modifiers

Page 13

To view all questions and flashcards with answers, click on the resource link above.

Chapter 13: Interfaces and Inner Classes

Available Study Resources on Quizplus for this Chatper

32 Verified Questions

32 Flashcards

Source URL: https://quizplus.com/quiz/79871

Sample Questions

Q1) Any constant variables defined in an interface must be defined as:

A)public

B)private

C)protected

D)package access

Q2) Java interfaces are a way of simulating multiple inheritance.

A)True

B)False

Q3) An interface and all of its method headings are normally declared to be:

A)public

B)private

C)protected

D)package access

Q4) Why does Java only allow the inheritance of only one base class?

Q5) What are the rules of total ordering?

Q6) Inner and outer classes do not have access to each other's private members.

A)True B)False

Q7) What is an anonymous class?

Q8) What are the obligations of a class that implements a specific interface?

To view all questions and flashcards with answers, click on the resource link above. Page 14

Chapter 14: Generics and the Arraylist Class

Available Study Resources on Quizplus for this Chatper

31 Verified Questions

31 Flashcards

Source URL: https://quizplus.com/quiz/79870

Sample Questions

Q1) You can plug in a primitive type for a type parameter.

A)True

B)False

Q2) The compiler option -Xlint is good for debugging.

A)True

B)False

Q3) All of the following are methods of the ArrayList class except:

A)clear()

B)resize()

C)contains()

D)trimToSize()

Q4) What are the three main disadvantages of an ArrayList?

Q5) When using ArrayLists the method _______ can be used to save memory:

A)trimToSize()

B)trimDown()

C)trimOff()

D)None of the above

Q6) You can use any primitive type as the base type of an ArrayList class.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 15: Linked Data Structures

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/79869

Sample Questions

Q1) A ____________ linked list has nodes that contain two references to Nodes.

A)circular

B)sequential

C)doubly

D)one-way

Q2) Java does not come with a LinkedList library class.

A)True

B)False

Q3) What is the result of an inorder traversal of the binary search tree created in question 12 above?

Q4) In Java,you indicate the end of a linked list be setting the link instance variable of the last node in the linked list to __________.

A)0

B)-1

C)1

D)null

Q5) If you define a clone method,the class should implement the Cloneable interface. A)True

B)False

Q6) Discuss the differences between a queue and a stack.

Page 16

To view all questions and flashcards with answers, click on the resource link above.

Chapter 16: Collections and Iterators

Available Study Resources on Quizplus for this Chatper

44 Verified Questions

44 Flashcards

Source URL: https://quizplus.com/quiz/79868

Sample Questions

Q1) The primary interface/interfaces for a collection class is/are:

A)Collection< T >

B)Set< T >

C)List< T >

D)All of the above

Q2) The number of entries that may be added to a HashMap&lt;K,V&gt; object is limited to what is specified as the initial capacity in the constructor for the HashMap&lt;K,V&gt; object.

A)True

B)False

Q3) A ____________ is a data structure for holding elements.

A)Collection

B)Iterator

C)Vector

D)Wildcard

Q4) Write a Java statement to recover the unused memory in the resulting vector in number 4 above.

Q5) A vector can potentially encounter an ArrayIndexOutOfBoundsException.

A)True

B)False

To view all questions and flashcards with answers, click on the resource link above.

Chapter 17: Swing I

Available Study Resources on Quizplus for this Chatper

37 Verified Questions

37 Flashcards

Source URL: https://quizplus.com/quiz/79867

Sample Questions

Q1) Explain the model-view-controller pattern when applied to a typical GUI.

Q2) Write a Java statement to create a menu with the title "Drawing Template".

Q3) GUIs are windowing interfaces that handle user input and output.

A)True

B)False

Q4) Create a Java GUI that allows the user to enter a desired user name and password.Provide a button,when clicked,informs the user that their account was successfully created.Include labels as appropriate.

Q5) In a Swing program,throwing an uncaught exception may leave the program in an unpredictable state.

A)True

B)False

Q6) The event-driven paradigm requires implementing methods that will never be invoked.

A)True

B)False

Q7) When using the BorderLayout manager you must specify all five regions.

A)True

B)False

Q8) What is an action listener? What is an action event?

To view all questions and flashcards with answers, click on the resource link above. Page 18

Chapter 18: Swing II

Available Study Resources on Quizplus for this Chatper

31 Verified Questions

31 Flashcards

Source URL: https://quizplus.com/quiz/79866

Sample Questions

Q1) Write a Java statement to create an image icon for the image heart.gif.

Q2) When using scroll bars,the text is viewed through a ______________ that shows only part of the text at a time.

A)view port

B)text area

C)all of the above

D)none of the above

Q3) The Insets class is in the package ______________.

A)java.awt

B)javax.swing

C)java.util

D)java.lang

Q4) All of the following are methods of the class Color except:

A)getRed

B)brighter

C)darker

D)dimmer

Q5) Explain the Java coordinate system for graphic objects.

Q6) Write a Java statement that draws a filled oval at position (150,100)with a height of 100 and a width of 50.

To view all questions and flashcards with answers, click on the resource link above. Page 19

Chapter 19: Java Never Ends

Available Study Resources on Quizplus for this Chatper

18 Verified Questions

18 Flashcards

Source URL: https://quizplus.com/quiz/79865

Sample Questions

Q1) What method in the Thread class is responsible for pausing a thread for a specific amount of milliseconds?

A)pause()

B)sleep()

C)hang()

D)kill()

Q2) A thread's start method invokes the thread's run method.

A)True

B)False

Q3) Discuss the components of the JavaBean model.

Q4) ____________ refers to a framework that facilitates software building by connecting software components from diverse sources.

A)JavaBeans

B)Threads

C)SQL

D)all of the above

Q5) An InterruptedException is a checked exception.

A)True

B)False

Q6) What is a JavaBean?

Page 20

To view all questions and flashcards with answers, click on the resource link above.

Chapter 11: Recursion

Available Study Resources on Quizplus for this Chatper

43 Verified Questions

43 Flashcards

Source URL: https://quizplus.com/quiz/79873

Sample Questions

Q1) A recursive method is one that:

A)Returns a value

B)Initializes a set of variables

C)Returns no value

D)Invokes itself

Q2) The portion of memory in which a recursive computation is stored is called a/an:

A)stack frame

B)activation record

C)all of the above

D)none of the above

Q3) Infinite recursion:

A)will happen when there is no base case

B)will not happen when there is a base case

C)will not happen if we use subproblems

D)none of the above

Q4) Write a recursive method to print a string backwards.

Q5) What are the two base cases for a recursive binary search algorithm?

Q6) Explain how a sequential search works.

Q7) Explain the concept of divide and conquer.

Q8) Explain how the binary search works.

To view all questions and flashcards with answers, click on the resource link above. Page 21

Chapter 20: Applets

Available Study Resources on Quizplus for this Chatper

25 Verified Questions

25 Flashcards

Source URL: https://quizplus.com/quiz/79863

Sample Questions

Q1) The HTML tag used to insert a horizontal line on a page is:

A)< h1 >

B)< href >

C)< hr >

D)< br >

Q2) The purpose of the address tag is to contain the e-mail address for contacting the document's maintainer as well as the date that the document was last modified.

A)True

B)False

Q3) Create an HTML block that will display "Absolute Java" in the largest standard heading.

Q4) URL stands for:

A)Unified Resource Locator

B)Uniform Reader Locator

C)Uniform Resource Locator

D)Uniform Resource Language

Q5) An applet class is normally defined as a derived class of the class JApplet. A)True

B)False

To view all questions and flashcards with answers, click on the resource link above. Page 22

Turn static files into dynamic content formats.

Create a flipbook
Software Development Exam Bank - 758 Verified Questions by Quizplus - Issuu