

![]()


Programming Logic and Design introduces students to the foundational concepts of computer programming and problem-solving using logical approaches. The course covers essential topics such as algorithms, flowcharts, pseudocode, control structures (sequence, selection, repetition), and modular programming. Students will learn how to systematically analyze problems, develop step-by-step solutions, and translate them into basic program designs, preparing them for success in any programming language. Emphasis is placed on developing analytical thinking, understanding logical flow, and applying structured techniques to design robust, maintainable programs.
Recommended Textbook
Starting Out with Java Early Objects 5th Edition by Tony Gaddis
Available Study Resources on Quizplus
16 Chapters
620 Verified Questions
620 Flashcards
Source URL: https://quizplus.com/study-set/1061 Page 2
Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20979
Sample Questions
Q1) A(n) ________ is a software entity that contains data and procedures.
A) object
B) program
C) class
D) method
Answer: A
Q2) A computer program is
A) a set of instructions that enable the computer to solve a problem or perform a task.
B) main memory.
C) pseudocode.
D) a flow chart.
Answer: A
Q3) Encapsulation refers to the combining of data and code into a single object.
A)True
B)False
Answer: True
To view all questions and flashcards with answers, click on the resource link above.

Page 3

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20980
Sample Questions
Q1) A(n) ________ is a dialog box that prompts the user for input.
A) input box
B) user prompt
C) adaptive dialog
D) input dialog
Answer: D
Q2) Which of the following statements is invalid?
A) double r = 9.4632E15;
B) double r = 9.4632e15;
C) double r = 2.9X106;
D) double r = 326.75;
Answer: C
Q3) The primitive data types only allow a(n) ________ to hold a single value.
A) class
B) literal
C) object
D) variable
Answer: D
To view all questions and flashcards with answers, click on the resource link above. Page 4

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20981
Sample Questions
Q1) A constructor
A) always accepts two arguments.
B) has the same name as the class.
C) has return type of void.
D) always has an access specifier of private.
Answer: B
Q2) In the blueprint/house analogy, think of a class as a blueprint that describes a house and ________ as instances of the house built from the blueprint.
A) methods
B) fields
C) objects
D) attributes
Answer: C
Q3) A constructor is a method that
A) returns an object of the class.
B) never receives any arguments.
C) performs initialization or setup operations.
D) removes the object from memory.
Answer: C
To view all questions and flashcards with answers, click on the resource link above.
Page 5

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20982
Sample Questions
Q1) What will be the value of bonus after the following code is executed?
Int bonus, sales = 10000;
If (sales < 5000)
Bonus = 200;
Else if (sales < 7500)
Bonus = 500;
Else if (sales < 10000)
Bonus = 750;
Else if (sales < 20000)
Bonus = 1000;
Else
Bonus = 1250;
A) 750
B) 1250
C) 500
D) 1000
Q2) The DecimalFormat class is part of the Java API, but it is not automatically available to your programs.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 6

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20983
Sample Questions
Q1) A(n) ________ is a special value that cannot be mistaken as a member of a list of data items and signals that there are no more data items from the list to be processed.
A) accumulator
B) sentinel
C) delimiter
D) terminator.
Q2) In general, there are two types of files:
A) text and binary.
B) encrypted and unencrypted.
C) delimited and unlimited.
D) static and dynamic.
Q3) What will be the value of x after the following code is executed?
Int x = 10;
For (int y = 5; y < 20; y +=5)
X += y;
A) 25
B) 30
C) 50
D) 40
To view all questions and flashcards with answers, click on the resource link above. Page 7

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20984
Sample Questions
Q1) The JVM periodically performs this process to remove unreferenced objects from memory.
A) memory shuffling
B) system restore
C) garbage collection
D) memory sweeping
Q2) When a method's return type is an object, what is actually returned to the calling program?
A) a reference to an object of that class
B) only the values in the object that the method accessed
C) an object of that class
D) a null reference
Q3) An enumerated data type is actually a special type of class.
A)True
B)False
Q4) To get the name of a calling enum constant,
A) simply use the enum constant in the statement.
B) use the ordinal method.
C) use the displayName method.
D) use the toString method.
To view all questions and flashcards with answers, click on the resource link above. Page 8
Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20985
Sample Questions
Q1) An array of String objects
A) is arranged the same as an array of primitive objects.
B) is compressed to 4 bytes for each element.
C) must be initialized when the array is declared.
D) consists of an array of references to String objects.
Q2) The ________ method removes an item from an ArrayList at a specific index.
A) remove
B) pop
C) deleteAt
D) clear
Q3) To determine if two arrays are equal, you must compare each of the elements of the two arrays.
A)True
B)False
Q4) When an array of objects is declared, but not initialized, the array values are set to 0.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

9

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20986
Sample Questions
Q1) Any ________ argument passed to the Character class's toLowerCase method or toUpperCase method is returned as it is.
A) nonletter
B) char
C) string
D) static
Q2) What will be displayed after the following statements are executed?
String str = "red$green&blue#orange";
String[] tokens = str.split("[$&#]");
For (String s : tokens)
System.out.print(s + " ");
A) red green blue orange
B) Red $ green & blue # orange
C) $ & #
D) red [$&#] green [$&#] blue [$&#] orange
Q3) You can concatenate String objects by
A) using the concat or trim methods.
B) using the concat method or the + operator.
C) using the concatenate or join methods.
D) using the concatenate method or the + operator.
To view all questions and flashcards with answers, click on the resource link above. Page 10

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20987
Sample Questions
Q1) In the following statement, which is the superclass?
Public class ClassA extends ClassB implements ClassC
A) ClassA
B) ClassB
C) ClassC
D) ClassB and ClassC
Q2) This key word indicates that a class inherits from another class.
A) final
B) super
C) implements
D) extends
Q3) In Java, a reference variable is ________ because it can reference objects of types different from its own, as long as those types are related to its type through inheritance.
A) static
B) dynamic
C) polymorphic
D) public
To view all questions and flashcards with answers, click on the resource link above. Page 11

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20988
Sample Questions
Q1) If a program does not handle an unchecked exception, what is the result?
A) The program must handle the exception.
B) The program is halted and the default exception handler handles the exception.
C) The exception is ignored.
D) A compiler error will occur.
Q2) The catch clause
A) starts with the word catch followed by a parameter list in parentheses containing an ExceptionType parameter variable.
B) follows the try clause.
C) contains code to gracefully handle the exception type listed in the parameter list.
D) All of the above.
Q3) If the data.dat file does not exist, what will happen when the following statement is executed?
RandomAccessFile randomFile = new RandomAccessFile("data.dat", "rw");
A) An IOExcepton will be thrown.
B) The file data.dat will be created.
C) A FileNotFoundException will be thrown.
D) A compiler error will occur.
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20989
Sample Questions
Q1) In GUI terminology, a container that can be displayed as a window is known as a A) buffer.
B) message dialog.
C) Swing package.
D) frame.
Q2) Swing components are part of the javax.swing package.
A)True
B)False
Q3) The ________ manager creates a grid with rows and columns, much like a spreadsheet.
A) RegionLayout
B) GridLayout
C) FlowLayout
D) BorderLayout
Q4) Because the System.out.println method sends its output to the console, diagnostic messages can be displayed without interfering with the application's GUI windows.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.
Page 13

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20990
Sample Questions
Q1) Just like regular radio button components, you must group radio button menu items in a button group in order to create a mutually exclusive relationship between them.
A)True
B)False
Q2) What is the default directory for the JFileChooser constructor when you pass a String containing a valid path as an argument?
A) If you are using Windows, this will probably be the "My Documents" folder under your account.
B) If you are using UNIX, this will be your login directory.
C) Both A and B
D) None of the above
Q3) To force the JFrame that encloses a window to resize itself automatically when a larger object is placed in the frame, use the ________ method.
A) resize
B) refresh
C) pack
D) extend
To view all questions and flashcards with answers, click on the resource link above. Page 14

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20991
Sample Questions
Q1) The coordinates of the pixel in the upper-left corner of a component are usually
A) (1, 1).
B) (0, 0).
C) (-1, -1).
D) (100, 100).
Q2) For all Swing components except JApplet and JFrame, you should override this method to get a reference to the component's Graphics object.
A) paintComponent
B) paint
C) paintBase
D) repaint
Q3) The mouse generates two types of events: mouse events and mouse motion events.
A)True
B)False
Q4) An HTML document is usually saved with this file name extension.
A) .xml
B) .html
C) .asp
D) .cfm
To view all questions and flashcards with answers, click on the resource link above. Page 15

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20992
Sample Questions
Q1) Which of the following import statements is necessary to make the connection between the controller class and the application's FXML file?
A) import javafx.lang;
B) import javafx.scene.control;
C) import javafx.fxml;
D) import javafx.fxml.FXML;
Q2) Which of the following is true concerning the sample controller skeleton provided by Scene Builder?
A) It has all of the necessary import statements.
B) It has private field declarations for all of the components that have an fx:id.
C) You just need to change the name of the class, and write the code for the event listener methods.
D) All of the above
Q3) As an alternative for manually typing the code for the controller class, Scene Builder can provide a sample "skeleton" for the controller class.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 16

Available Study Resources on Quizplus for this Chatper
20 Verified Questions
20 Flashcards
Source URL: https://quizplus.com/quiz/20993
Sample Questions
Q1) A method that calls itself is a ________ method.
A) recursive
B) redundant
C) binary
D) derived
Q2) Like a loop, a recursive method must have which of the following?
A) a statement that increments the control variable
B) a control variable initialized to a starting value
C) some way to control the number of times it repeats
D) All of the above
Q3) Whereas a recursive algorithm might result in faster execution time, the programmer might be able to design an iterative algorithm faster.
A)True
B)False
Q4) This occurs when method A calls method B, which in turn calls method A.
A) dynamic recursion
B) linear recursion
C) direct recursion
D) indirect recursion
To view all questions and flashcards with answers, click on the resource link above. Page 17

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/20994
Sample Questions
Q1) What does JDBC stand for?
A) Java data binary collection
B) Java database connectivity
C) Java database collection
D) Java data basic computation
Q2) In a transaction, all updates to database must be successfully executed.
A)True
B)False
Q3) In SQL, you use this statement to delete one or more rows from a table.
A) DELETE
B) DROP ROW
C) REMOVE
D) PURGE
Q4) What SQL operator can be used to disqualify search criteria in a WHERE clause?
A) AND
B) NOT
C) EXCLUDE
D) NOR
To view all questions and flashcards with answers, click on the resource link above. Page 18