Skip to main content

Programming Logic and Design Question Bank - 350 Verified Questions

Page 1


Programming Logic and Design Question Bank

Course Introduction

Programming Logic and Design introduces students to the fundamental concepts of programming and computational thinking. The course covers the development of problem-solving skills through the use of algorithms, flowcharts, pseudocode, and structured programming techniques. Students learn how to analyze problems, plan logical solutions, and create clear, step-by-step instructions that can be implemented in any programming language. Emphasis is placed on concepts such as variables, control structures, data types, and modular programming, laying a solid foundation for future studies in software development and computer science.

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) When you declare variables,you have the option of assigning initial values to them.

A)True

B)False

Answer: True

Q2) After talking with Anna,Jerry has all the information he needs to move to the next step in the program development cycle.What is the next step?

A) Understanding the problem

B) Planning the logic

C) Coding the program

D) Installing the program

Answer: B

Q3) External storage is needed to run a program but it is volatile.

A)True

B)False

Answer: False

Q4) A magic number is a named constant whose meaning is not immediately apparent.

A)True

B)False Answer: False

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) The following pseudocode is an example of a(n)____ structure. get firstNumber

Get secondNumber

Add firstNumber and secondNumber

Print result

A) decision

B) task

C) selection

D) sequence

Answer: D

Q2) In a ____ structure,you continue to repeat actions while a condition is true.

A) sequence

B) loop

C) selection

D) decision

Answer: B

Q3) In code,it is perfectly correct for one branch of the selection to be a "do nothing" branch.

A)True

B)False

Answer: True

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) C#,C++,C,and Java use the symbol ____ to represent the logical OR.

A) %%

B) &&

C) ||

D) **

Answer: C

Q2) When you use an AND operator to join multiple Boolean expressions,all the individual expressions must be true for the joint expression to be true.

A)True

B)False

Answer: True

Q3) A ____ is one that represents only one of two states,true or false.

A) Boolean expression

B) short-circuit evaluation

C) trivial expression

D) truth table

Answer: A

Q4) 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

Page 5

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

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) Loops are frequently used to ____ data; that is,to make sure values fall within an acceptable or reasonable range.

A) validate

B) enter

C) add

D) manipulate

Q2) When one loop is nested within another,the containing loop is the ____ loop. A) inner

B) controlling C) bounding D) outer

Q3) Every high-level computer programming language contains a ____ statement that you can use to code any loop,including both indefinite and definite loops.

A) do

B) while C) for D) count

Q4) Name the three crucial steps that must occur in every loop.

Q5) Name three common mistakes that programmers make when programming with loops.

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

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) The following pseudocode is not working correctly.What kind of error is this? start Declarations

Num count = 0

Num scores[6] = 0,0,0,0,0,0

Num SIZE = 6

For count 0 to SIZE step 1

Input entry

Scores[count] = entry

Endfor

Stop

A) out of memory

B) no match was found

C) out of bounds

D) bounded

Q2) Write the pseudocode to define a five element array called "scores," and then allow a user to enter 5 scores and store them in the array using a while loop.

Q3) Subscript values can be negative integers in all languages.

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) The scope of a variable or constant is ____ to the method or program in which it is declared.

A) global

B) local

C) public

D) private

Q2) Programmers often say that a method's implementation details are hidden in a(n)____.

A) black box

B) secret box

C) trap door

D) invisible box

Q3) Creating submethods makes the calling method's logic more concise,easier to read,and somewhat easier to identify as structured.

A)True

B)False

Q4) A method's return type is part of its signature.

A)True

B)False

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

Page 8

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

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) 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

Q2) The syntax used to declare a class differs among programming languages.

A)True

B)False

Q3) A(n)____ is a term that describes a group of objects with common properties.

A) object

B) interface

C) class

D) method

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

A)True

B)False

Q5) List the three parts of a class definition.

Page 9

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

Turn static files into dynamic content formats.

Create a flipbook