• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 12 pages
Exam (elaborations)

Programming Logic and Design Exam Questions with Verified Answers

Document preview thumbnail
Preview 2 out of 12 pages

Programming Logic and Design Exam Questions with Verified Answers

Content preview

Programming Logic and Design Exam
Questions with Verified Answers

What symbol is used to mark the beginning and end of a string?
A) Slash
B) Asterisk
C) Quotation
D) Comma
E) Question - ANSWER-C) Quotation

True/False: The expressions (a + b) / c and a + b / c will always yield identical
results.
A) True
B) False - ANSWER-B) False

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

What is the first step of the program development cycle?
A) Write the code
B) Correct syntax errors
C) Debug the code
D) Test the executable code
E) Design the program - ANSWER-E) Design the program

True/False: If you mistakenly write pseudocode into an editor for an actual
programming language, such as Python or Visual Basic, errors will result.
A) True
B) False - ANSWER-A) True

True/False: A sequence of characters that is used as data is called a string in
programming.
A) True
B) False - ANSWER-A) True

The value of the expression 12 - 4 * + 9 is ________.
A) 21
B) 15
C) -6
D) 2.18
E) None of these - ANSWER-B) 15

, The following is an example of what type of statement:
Set rate = 5.75
A) Declaration
B) Assignment
C) Input
D) Output
E) None of these - ANSWER-B) Assignment

True/False: Programmers use pseudocode to create "mock-ups" of programs
because they do not have to worry about syntax rules.
A) True
B) False - ANSWER-A) True

Modules are commonly called what?
A) Procedures
B) Subroutines
C) Subprograms
D) Methods
E) All of these - ANSWER-E) All of these

True/False: A module can have two variables of the same name because they are
within the same scope.
A) True
B) False - ANSWER-B) False

Which type of variable is not recommended to be used in programs because they
make programs hard to understand and debug?
A) Local
B) Pass by value
C) Reference
D) Global
E) Pass by reference - ANSWER-D) Global

True/False: The arguments in a module call and the parameters listed in the module
header must be of compatible data types.
A) True
B) False - ANSWER-B) False

Which type of variable is visible to every module and the entire program?
A) Local
B) Pass by value
C) Reference
D) Global
E) Pass by reference - ANSWER-D) Global

What phrase is placed in the starting terminal symbol of a module in a flowchart?
A) Start
B) Begin
C) Name of the module

Document information

Uploaded on
March 22, 2025
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectknancy
3.8
(82)
Sold
342
Followers
27
Items
26160
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions