0% found this document useful (0 votes)
24 views17 pages

Programming Logic and Design MCQ PDF

The document is a comprehensive guide on Programming Logic and Design, covering fundamental concepts of algorithm development, problem-solving strategies, and programming principles across 15 chapters with 655 verified questions. It emphasizes structured programming techniques using pseudocode, flowcharts, and control structures, while providing practical exercises to enhance analytical thinking. Additionally, it includes resources like flashcards and sample questions for each chapter to aid in learning.

Uploaded by

4q9r4mzrjk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views17 pages

Programming Logic and Design MCQ PDF

The document is a comprehensive guide on Programming Logic and Design, covering fundamental concepts of algorithm development, problem-solving strategies, and programming principles across 15 chapters with 655 verified questions. It emphasizes structured programming techniques using pseudocode, flowcharts, and control structures, while providing practical exercises to enhance analytical thinking. Additionally, it includes resources like flashcards and sample questions for each chapter to aid in learning.

Uploaded by

4q9r4mzrjk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Programming Logic and Design

MCQ PDF

https://quizplus.com/study-set/1537
15 Chapters
655 Verified Questions
Programming Logic and Design
MCQ PDF
Cou
Programming Logic and Design introduces students to the fundamental concepts of

algorithm development, problem-solving strategies, and the foundational principles of

computer programming. The course emphasizes structured and modular programming

techniques through pseudocode, flowcharts, and control structures such as sequence,

selection, and iteration. Students learn how to analyze problems, decompose them into

manageable parts, and design logical solutions applicable in a variety of programming

languages. Through practical exercises and real-world examples, the course cultivates

analytical thinking and prepares students for success in advanced programming and

software development coursework.

Recommended Textbook
Starting Out with Programming Logic and Design 3rd Edition by Tony Gaddis

Available Study Resources on Quizplus


15 Chapters
655 Verified Questions
655 Flashcards
Source URL: https://quizplus.com/study-set/1537

Page 2
Chapter 1: Introduction to Computers and Programming
Available Study Resources on Quizplus for this Chatper
48 Verified Questions
48 Flashcards
Source URL: https://quizplus.com/quiz/30362

Sample Questions
Q1) _______________ was the first high-level programming language designed that
could perform complex mathematical calculations.
A)COBOL
B)C++
C)Java
D)FORTRAN
E)Ada
Answer: D

Q2) ____________ software packages usually consist of a text editor,a compiler or


interpreter,and tools for testing programs and locating errors.
Answer: IDE or Integrated Development Environment

Q3) Which computer language uses short words known as mnemonics for writing
programs?
A)Assembly
B)Java
C)C#
D)Pascal
E)Visual Basic
Answer: A

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

Page 3
Chapter 2: Input, processing, and Output
Available Study Resources on Quizplus for this Chatper
48 Verified Questions
48 Flashcards
Source URL: https://quizplus.com/quiz/30363

Sample Questions
Q1) Which mathematical operator is used to raise five to the second power?
A)MOD
B)*
C)^
D)/
E)~
Answer: C

Q2) The ____________ is a diagram that graphically depicts the steps that take
place in a program.
A)Program
B)Flowchart
C)Algorithm
D)Code
E)Pseudocode
Answer: B

Q3) _______________ software is characterized by programs whose clear displays


and understandable prompts are easy to use.
Answer: user-friendly

Q4) A ______________ statement can be used to initialize multiple variables.


Answer: declaration

To view all questions and flashcards with Page 4 click on the resource link above.
answers,
Chapter 3: Modules
Available Study Resources on Quizplus for this Chatper
48 Verified Questions
48 Flashcards
Source URL: https://quizplus.com/quiz/30364

Sample Questions
Q1) A module can have two variables of the same name because they are within the
same scope.
A)True
B)False
Answer: False

Q2) Programming languages provide ____________ different ways to pass


arguments to modules.
Answer: Two

Q3) Modules can be written for commonly needed tasks,and those modules can be
incorporated into each program that needs them.
A)True
B)False
Answer: True

Q4) The __________ of the module is a list of statements that belong to the module.
Answer: body

Q5) A program's code tends to simpler and easier to understand when it is


____________.
Answer: modularized

Q6) Structure charts are also known as __________________.


Answer: Hierarchy charts Page 5

To view all questions and flashcards with answers, click on the resource link above.
Chapter 4: Decision Structures and Boolean Logic
Available Study Resources on Quizplus for this Chatper
44 Verified Questions
44 Flashcards
Source URL: https://quizplus.com/quiz/30365

Sample Questions
Q1) Pseudocode could be logically incorrect if not properly indented.
A)True
B)False

Q2) Consider the following statement:


A store is giving a discount of 30% for all purchases of over $100.
Which of the following is not the appropriate structure to use to program the statement?
A)Control
B)Decision
C)Selection
D)Sequence
E)None of the above

Q3) The _____ operator is best to determine whether a number is outside a range.

Q4) In a _________________ decision structure,one path is taken if a condition is


true and the other path is taken if the condition is false.

Q5) The first line of the case structure starts with the word CASE followed by the test
expression.
A)True
B)False

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

Page 6
Chapter 5: Repetition Structures
Available Study Resources on Quizplus for this Chatper
44 Verified Questions
44 Flashcards
Source URL: https://quizplus.com/quiz/30366

Sample Questions
Q1) A While loop repeats infinitely when there is no statement inside the loop body that
makes the test condition false.
A)True
B)False

Q2) A structure that has a loop that is inside another loop is called a __________ loop

Q3) The conditions that control a loop repetition are Boolean expressions.
A)True
B)False

Q4) The While loop will never execute if its condition is true to start with.
A)True
B)False

Q5) The following loop will perform ______ iterations.


For start = 6 To 2 Step -3

Q6) In the For statement,you can only use positive integers as step values.
A)True
B)False

Q7) In a count-controlled loop the test action compares the counter variable to the
_________ value to determine if the loop iterates or terminates.

To view all questions and flashcards with Page 7 click on the resource link above.
answers,
Chapter 6: Functions
Available Study Resources on Quizplus for this Chatper
44 Verified Questions
44 Flashcards
Source URL: https://quizplus.com/quiz/30367

Sample Questions
Q1) When a function finishes,it returns a value back to the part of the program that called
it.
A)True
B)False

Q2) The ______ function accepts an argument and returns the square root of the
argument.

Q3) Programming languages have not yet started to support localization.


A)True
B)False

Q4) Random numbers are commonly used in which type of program?


A)Games
B)Simulations
C)Statistical analysis
D)Data encryption
E)All of the above

Q5) The ___________ function accepts a string as its argument and returns the
number of characters in the string.

Q6) The __________ column describes the data that is returned from the function in
an IPO chart.

Page 8
Q7) The ________ chart is a tool that programmers use when designing functions.

To view all questions and flashcards with answers, click on the resource link above.
Chapter 7: Input Validation
Available Study Resources on Quizplus for this Chatper
44 Verified Questions
44 Flashcards
Source URL: https://quizplus.com/quiz/30368

Sample Questions
Q1) Programs that contain a priming read have a _________ loop.

Q2) Which of the following statements is true about this Boolean expression?
Score < 0 AND score > 100
A)This expression is true for numbers between 0 and 100.
B)This expression is true for numbers greater than 100.
C)This expression is true for numbers less than 0.
D)This expression would never be true.
E)None of the above

Q3) What is the first step to use in detecting data type mismatch errors?
A)Read the input as a string
B)Convert to the desired data type
C)Determine whether it can be converted
D)Display error message
E)None of the above

Q4) An input validation that accepts strings in mixed case would have incorporated a
case- __________ string comparison operation.

Q5) Checking for accuracy of data,even when the user provides the right type of data,is
part of input validation.
A)True
B)False
Page 9
To view all questions and flashcards with answers, click on the resource link above.
Chapter 8: Arrays
Available Study Resources on Quizplus for this Chatper
46 Verified Questions
46 Flashcards
Source URL: https://quizplus.com/quiz/30369

Sample Questions
Q1) The first step in calculating the average of the values in an array is to get the total of
the values.
A)True
B)False

Q2) All the values in an array must be of the same _____________.

Q3) Every element in an array is assigned a unique number known as a


______________.
A)subscript
B)integer
C)character
D)number
E)None of the above

Q4) What type of error occurs when a loop iterates one time too few or one time too
many?
A)Run time error
B)Off-by-one error
C)Validation error
D)Syntax error
E)All of the above

Q5) An ______ allows you to store a group of items of the same data type together in
memory. Page 10

To view all questions and flashcards with answers, click on the resource link above.
Chapter 9: Sorting and Searching Arrays
Available Study Resources on Quizplus for this Chatper
43 Verified Questions
43 Flashcards
Source URL: https://quizplus.com/quiz/30370

Sample Questions
Q1) Computer programming languages are only able to perform sort algorithms on
numeric arrays.
A)True
B)False

Q2) For an array of n items,the maximum number of comparisons in a sequential search


is ______.

Q3) In a selection sort,the first step is to move the smallest value in the array to element
_______,in order to sort the array in ascending order.

Q4) In the bubble sort algorithm,the maxElement variable will hold the _______ of the
last element that is to be compared to its immediate neighbor.

Q5) When using a module to swap the values in two variables,the arguments must be
passed into __________ parameters in the module.

Q6) The advantage of the _________ search is its simplicity.

Q7) In a sorting algorithm,the sort order can be changed by changing the


________________ operator.

Q8) The _________ search algorithm locates an item in an array by repeatedly


dividing the array in half.

Q9) The bubble sort is limited to arranging data


Page 11 only in acceding order.

To view all questions and flashcards with answers, click on the resource link above.
Chapter 10: Files
Available Study Resources on Quizplus for this Chatper
43 Verified Questions
43 Flashcards
Source URL: https://quizplus.com/quiz/30371

Sample Questions
Q1) Which flowcharting symbol is used for opening and closing files?
A)Rectangle
B)Parallelogram
C)Diamond
D)Oval
E)None of the above

Q2) The word OutputFile indicates the _________ in which the file is used.

Q3) The data saved in a file will remain there even after the program stops running but
will be wiped out when the computer is turned off.
A)True
B)False

Q4) The _________ marker indicates where the file's content ends.

Q5) How many steps must be taken when a file is used by a program?
A)One
B)Two
C)Three
D)Four
E)None of the above

Q6) The ________ file is used to describe a file that data is written to.

Page 12
Q7) The _________ is a small holding section in memory.

To view all questions and flashcards with answers, click on the resource link above.
Chapter 11: Menu-Driven Programs
Available Study Resources on Quizplus for this Chatper
43 Verified Questions
43 Flashcards
Source URL: https://quizplus.com/quiz/30372

Sample Questions
Q1) A list of operations that is displayed on the screen is called
a(n)_______________.
A)List
B)Menu
C)Option list
D)Choice list
E)None of the above

Q2) When the user makes a selection from the main menu in a multiple-level menu,a
______ might be displayed next.
A)Menu
B)Main menu
C)Grand menu
D)Submenu
E)None of the above

Q3) The ____________ statement is the easiest and most straightforward method to
process a user's menu selection.

Q4) Modules cannot be executed from a case statement,so loops have to be used.
A)True
B)False

Q5) In the GUI program,the user can just _________on their choice using a mouse.
Page 13
To view all questions and flashcards with answers, click on the resource link above.
Chapter 12: Text Processing
Available Study Resources on Quizplus for this Chatper
31 Verified Questions
31 Flashcards
Source URL: https://quizplus.com/quiz/30373

Sample Questions
Q1) The isWhiteSpace library function returns True if its argument is displayed on the
screen using a white background color.
A)True
B)False

Q2) In pseudocode you can use the _________ library function to determine whether
a character is a numeric digit.

Q3) Which of the following pseudocode statements uses substring notation to display
the first character in a String variable named city?
A)Display city[0]
B)Display city[length - 1]
C)Display city[1]
D)All of the above
E)None of the above

Q4) In pseudocode you can use the _________ library function to determine whether
a character is whitespace.

Q5) In pseudocode you can use the _________ library module to insert a string into
another string.

Q6) A ____________ character is a space,a tab,or a newline.

To view all questions and flashcards with answers, click on the resource link above.
Page 14
Chapter 13: Recursion
Available Study Resources on Quizplus for this Chatper
43 Verified Questions
43 Flashcards
Source URL: https://quizplus.com/quiz/30374

Sample Questions
Q1) It is not necessary to have a conditional expression to terminate the recursive calls.
A)True
B)False

Q2) The choice between using recursion or a loop is primarily a __________ decision.
A)Design
B)Case
C)Group
D)Any of the above
E)None of the above

Q3) If a recursive module calls itself ten times,after the tenth call it returns to the
__________.
A)End of the module
B)ninth call
C)first call
D)End of the program
E)None of the above

Q4) When a recursive module calls only itself,it is called a ___________ recursion.

Q5) The _______ is the number of times a recursive module calls itself.

Q6) The term callback potential refers to number of times a module calls itself.

Page 15
To view all questions and flashcards with answers, click on the resource link above.
Chapter 14: Object-Oriented Programming
Available Study Resources on Quizplus for this Chatper
43 Verified Questions
43 Flashcards
Source URL: https://quizplus.com/quiz/30375

Sample Questions
Q1) The mutator methods are sometimes called _________________.
A)getters
B)accessors
C)setters
D)private
E)None of the above

Q2) ___________ are created from abstract data types that encapsulate data and
functions together.

Q3) The programmer determines the fields and methods of an object and creates the
______ code.
A)Print
B)Class
C)Module
D)Procedure
E)None of the above

Q4) The key word ___________ creates the object in memory.

Q5) The data contained in an object are known as the object's __________.

Q6) Each object that is created from a class is called a(n)_________ of the class.

Q7) The separation of data and the code that operates on the data can lead to
Page 16
problems as a program becomes larger and more complex.

To view all questions and flashcards with answers, click on the resource link above.
Chapter 15: Gui Applications and Event-Driven

Programming
Available Study Resources on Quizplus for this Chatper
43 Verified Questions
43 Flashcards
Source URL: https://quizplus.com/quiz/30376

Sample Questions
Q1) A component's ______________ control the visual characteristics that are
displayed on the component.
A)Data
B)Fields
C)Properties
D)Specifiers
E)None of the above

Q2) The items that can be placed in a window are located in a


__________________ in the IDE for GUI programs.

Q3) Which of the following operating systems use a GUI?


A)Windows
B)Mac OS
C)Linux
D)All of the above
E)None of the above

Q4) In ___________ programs the user causes the events to take place and the
program must respond to the events.

Q5) The _______________ indicates how a program will flow from one window to the
Page 17
next as the user interacts with the program.

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

You might also like