Programming Logic and Design MCQs

Programming Logic and Design MCQs

These Programming Logic and Design multiple-choice questions and their answers will help you strengthen your grip on the subject of Programming Logic and Design. You can prepare for an upcoming exam or job interview with these 50+ Programming Logic and Design MCQs.
So scroll down and start answering.

1: When you think in an object-oriented manner, every object is a member of a ____.

A.   The lowest

B.   The highest

C.   An end-of-range value

D.   The average

2: The ____ variable is initialized before entering the loop.

A.   Boolean.

B.   Loop control.

C.   Less efficient.

D.   Accumulator

3: The statements that appear between the while and the end while clauses are called the ________.

A.   Statements

B.   Loop

C.   Body of the loop

D.   Loop statements

E.   While statements

4: The three structures of structured programming are _____.

A.   Sequence, order, and process

B.   Selection, loop and iteration

C.   Sequence, selection, and loop

D.   If, else, and then

5: When a data field within a class is ____, no outside class can use it—including a child class.

A.   Scripts

B.   False

C.   Grayed

D.   Private

6: You usually use the for loop with ____ loops.

A.   Indefinite

B.   Definite

C.   Inner

D.   Outer

7: Variables and constants declared within a method are ____ only within that method.

A.   In vision

B.   In range

C.   In scope

D.   In group

8: A structured program includes only combinations of the three basic structures: ____.

A.   Identification, selection, and loop

B.   Iteration, selection, and loop

C.   Sequence, selection, and loop

D.   Sequence, iteration, and loop

9: The do loop is a variation of the ____ loop.

A.   While

B.   Case

C.   Sequence

D.   If-then-else

10: You can use an ____ statement to clearly show where the actions that depend on a decision end.

A.   Endstructure.

B.   End.

C.   Endloop

D.   Endif

11: In a flowchart, the ____ is used to represent processing.

A.   Circle

B.   Rectangle

C.   Diamond

D.   None of these

12: Declaring a starting value for a variable is known as ____ the variable.

A.   Initializing

B.   Assignment

C.   Identifier

D.   Garbage

13: Before a programmer plans the logic of the program, he or she must ____.

A.   Understand the problem

B.   Test the program

C.   Translate the program

D.   Code the program

14: Some people call the selection structure a(n) ____________________ statement.

A.   End

B.   Choosing

C.   Selection

D.   If-then-else if then else

15: The major difference between the two main programming styles in use today is the ____.

A.   Use of flowcharts versus pseudocode

B.   Testing procedure used by the programmer

C.   Focus the programmer takes during the earliest planning stages of a project

D.   Programming language used

16: Using ____ involves writing down all the steps you will use in a program.

A.   A compiler

B.   An interpreter

C.   A flowchart

D.   Pseudocode

17: ____ variables and constants are known to the entire program.

A.   Local

B.   Transient

C.   Heap

D.   Global

18: ____ is where a variable’s data type or other information is stored as part of the name.

A.   Data dictionary

B.   Hungarian notation

C.   Annotation symbol

D.   Abstraction

19: Depending on the programming language being used, modules are also known as ____ .

A.   Subroutines,

B.   Procedures,

C.   Methods.

D.   All of these

20: Using logical operators, 1 and 0 = _____.

A.   1

B.   2

C.   None of these

21: A(n) ____ is similar to a variable, except it can be assigned a value only once.

A.   Unnamed constant

B.   Literal

C.   Named constant

D.   Constant

22: When you use a range check, you always compare a variable to ______________ value in the range.

A.   Lowest.

B.   Middle.

C.   Highest.

D.   Lowest or highest.

E.   An end-of-range value

23: The following is an example of a module ________.

A.   Body

B.   Definition

C.   Header

D.   Display

E.   Execution

24: A(n) ____ in a class diagram indicates public access.

A.   Minus sign.

B.   Diamond.

C.   Plus sign.

D.   Exclamation point

25: A subscript is a(n) _____.

A.   Element in an array

B.   Alternate name for an array

C.   Number that represents the highest value stored within an array

D.   Number that indicates the position of an array element

26: A variable’s unknown value is commonly called ____.

A.   Initial

B.   Default

C.   Random

D.   Garbage

27: To __________ data means to ensure that the data are in the proper range.

A.   Initialized

B.   Accumulator

C.   Validate

D.   Infinite

28: A(n) ___ is a named memory location whose value can vary.

A.   Input

B.   Variable

C.   Output

D.   Logic

29: A(n) ____ is a repeating flow of logic with no end.

A.   Nonterminated condition

B.   Infinite loop

C.   Variable.

D.   Decision symbol

30: When you write programs, you work with data in three different forms: ____.

A.   Values; variables, or named values; and unnamed values

B.   Variables; named constants; and named memory

C.   Variables; literals, or unnamed constants; and named constants

D.   Variations; transliterals, or unnamed constants; and named values

31: If a is true and b is false, then ______________.

A.   A AND b is false

B.   A AND b is true

C.   Both A and B

D.   None of these

32: A ____ allows users to interact with a program in a graphical environment.

A.   GCI

B.   CGI

C.   Command line

D.   GUI

33: A ____ is a collection of data stored on a nonvolatile device in a computer system.

A.   Backup file

B.   Open the file

C.   Coupling

D.   Computer file

34: A(n) ____ is a program that you use to create simple text files.

A.   Text editor

B.   IDE

C.   GUI

D.   GDE

35: Placing a structure within another structure is called ____ structures

A.   Stacking

B.   Untangling

C.   Building

D.   Nesting

36: A risk management plan includes a review of all of the following except ____.

A.   Employees.

B.   Project scope.

C.   Stakeholders

D.   Budget

37: In a pert/cpm chart, each task has all of the following except a(n) ____.

A.   ID

B.   Name

C.   Duration

D.   Reference to successor tasks

38: Project managers typically perform the tasks of _____.

A.   ​project monitoring

B.   ​project planning

C.   ​project testing

D.   ​project scheduling

E.   Option A, B & D

39: _____ involves deciding how to approach and plan the risk management activities for the project.

A.   Identifying risks

B.   Planning risk management

C.   Performing qualitative risk analysis

D.   Performing quantitative risk analysis

40: A(n) _____ is any instance where the product or service fails to meet customer requirements.

A.   Defect

B.   Yield

C.   Deliverable

D.   Variance

41: A(n) _____ must include suggested methods or technologies for conveying the information.

A.   Communications management plan

B.   Portfolio management

C.   Project Management

D.   Planning communications management

42: A(n) _____ stakeholder is aware of the project and supportive of change.

A.   Supportive

B.   Project

C.   Leading

43: A(n) ________ budget that can be adjusted over time for changing environmental conditions.

A.   Operating

B.   Incremental

C.   Zero-based

D.   Variable

E.   Cash

44: In a(n) _____ organizational structure, project managers have little or no authority.

A.   Project

B.   Functional

C.   Incremental

D.   Zero-based

E.   Variable

45: A student group that is working on a project is considered to be a collaboration if the ________.

A.   Members work on different sections by themselves

B.   Members provide feedback on each other’s work

C.   Group uses Google Drive to share files

D.   Group uses a file server to share files

46: The _____ frame of the organization is the one that is usually depicted in an organizational chart.

A.   Structural

B.   SWOT analysis

C.   Competitive

D.   Industry

47: The assessment of the external and internal environments is called _______ analysis

A.   SWOT analysis

B.   Competitive

C.   Industry

D.   Market

E.   Strategic

48: Each array element occupies an area in memory next to, or ____, the others.

A.   Contiguous to

B.   Associated with

C.   Parallel with ANS

49: The process of naming program variables and assigning a type to them is called ____ variables.

A.   Initializing

B.   Declaring

C.   Identifying

D.   Proclaiming

50: ____ are groups of fields that go together for some logical reason.

A.   Tables

B.   Databases

C.   Columns

D.   Records.