Skip to main content

Programming Logic and Design Test Bank - 350 Verified Questions

Page 1


Programming Logic and Design Test Bank

Course Introduction

Programming Logic and Design introduces students to the fundamental concepts of algorithm development and problem-solving techniques essential in computer programming. The course covers logical thinking, flowchart creation, pseudo code, and the foundational principles of structured programming. Students learn how to analyze problems, break them down into manageable steps, and design clear, efficient solutions using logic. By exploring sequencing, selection, iteration, and modularization, students gain the skills necessary to plan and develop computer programs, preparing them for more advanced studies in various programming languages.

Recommended Textbook

Just Enough Programming Logic and Design 2nd Edition by Joyce Farrell

Available Study Resources on Quizplus

7 Chapters

350 Verified Questions

350 Flashcards

Source URL: https://quizplus.com/study-set/2426

Page 2

Chapter 1: An Overview of Computers and Logic

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) ____ are instruction sets written by programmers.

A) Tests

B) Outputs

C) Programs

D) Inputs

Answer: C

Q2) Variable names may not begin with a digit,although usually they may contain digits.

A)True

B)False

Answer: True

Q3) ____ a program is when a programmer can execute the program with some sample data to see whether the results are logically correct.

A) Planning

B) Coding

C) Maintaining

D) Testing

Answer: D

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

Page 3

Chapter 2: Understanding Structure

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Programming structures can be combined in an infinite number of ways.

A)True

B)False

Answer: True

Q2) You can replace any individual tasks or steps in a structured flowchart diagram or pseudocode segment with additional structures.

A)True

B)False

Answer: True

Q3) Most newer computer languages are unstructured and use syntax that lets you deal efficiently with sequence,selection,and looping.

A)True

B)False

Answer: False

Q4) Write structured pseudocode to indicate that you will keep drying your hair while it is still wet.

Answer: while hair is wet dry hair endwhile

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

Chapter 3: Making Decisions

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) Write structured pseudocode to fix this statement: if hourlyWage > 8.50 and < 15.80 then

Answer: if hourlyWage > 8.50 and hourlyWage < 15.80 then

Q2) You use the logical ____ operator to reverse the meaning of a Boolean expression. A) NOT

B) AND

C) OR D) XOR

Answer: A

Q3) Sometimes you want to take action when one or the other of two conditions is true,this type of compound condition is called a(n)____ decision.

A) AND B) OR C) NOR

D) NOT

Answer: B

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

Page 5

Chapter 4: Looping

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) When one loop is nested within another,the containing loop is the ____ loop.

A) inner

B) controlling

C) bounding

D) outer

Q2) A(n)____ value is a number you use to increase a loop control variable on each pass through a loop.

A) jump

B) bump

C) increment

D) step

Q3) Some loops are controlled by reducing,or ____.

A) decrementing

B) incrementing

C) indicating

D) compensating

Q4) If a data item is valid,you can assume that it is also correct.

A)True

B)False

Q5) Write the logic for a program that outputs every even number from 2 through 16.

Page 6

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

Chapter 5: Arrays

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) In Java,C++,and C#,the for loop looks like the following:

A) for(dep = 0; dep++; dep < SIZE)

B) for(dep > SIZE; dep = 0; dep++)

C) for(dep = 0; dep < SIZE; dep++)

D) for(dep = SIZE,dep > 0,dep++)

Q2) When working with arrays,you can use ____ in two ways: to hold an array's size and as the array values.

A) structures

B) literals

C) constants

D) strings

Q3) If you assume an array's first subscript is 0,you will always be "off by one" in your array manipulation.

A)True

B)False

Q4) Define and initialize an array that contains the names of the days of the week.

Q5) The values stored in arrays should never be constants.

A)True

B)False

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

Chapter 6: Using Methods

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) A method's ____ includes the method identifier and possibly other identifying information.

A) header

B) body

C) declaration

D) return

Q2) Write the pseudocode for the method named computeArea.The method should display "The area is " and numeric value: result.It should have two numeric parameters: width and length.width multiplied by length is equal to result.

Q3) There is a method with the header: void printData(num x,string y). There is a declared a numeric variable: test. What does this method return?

A) a numeric and a string variable

B) test

C) nothing

D) it depends on the parameters

Q4) Visual Basic programmers use the term "methods" to name their modules.

A)True

B)False

Q5) What is the difference between an argument and a parameter variable?

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

Chapter 7: Object-Oriented Programming

Available Study Resources on Quizplus for this Chatper

50 Verified Questions

50 Flashcards

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

Sample Questions

Q1) List the three parts of a class definition.

Q2) Object-oriented programming uses few of the concepts you are familiar with from modular,procedural programming.

A)True

B)False

Q3) According to the principle of ____,data fields should usually be private,and a client application should be able to access them only through the public interfaces,that is,through the class's public methods.

A) function hiding

B) data hiding

C) data encapsulation

D) data definition

Q4) ____ methods change values within an object.

A) Transformer

B) Change

C) Mutator

D) Get

Q5) A class definition can contain four parts.

A)True

B)False

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

Turn static files into dynamic content formats.

Create a flipbook