Explore BrainMass
Share

Multiple Choice Problems in Programming Logic and Design

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

PROGRAMMING LOGIC AND DESIGN

1. WHAT TYPE OF VARIABLES CAN BE USED TO REDUCE UNNECESSARY COMPARISION IN A BUBBLE SORT.
(A) TEMPORARY (B) FLAG (C) INTEGER (D) ARRAY

2.USUALLY A PROGRAM THAT PROCESSES AN ARRAY USES A :
(A)DECISION (B) OUTPUT REPORT (C) BATCH (D) LOOP

3.WHEN MERGING FILES, A ______ IS USED TO DETERMINE WHICH FILE THE NEXT RECORD COMES FROM.
(A) COMPARISON (B) ARRAY (C) SEQUENCE (4) FLAG

4.WHEN MERGING 2 FILES, WHAT CONDITION TERMINATES THE MAIN LOOP OF THE PROGRAM.
(A)WHEN THE FIRST FILE REACHS EOF (B) WHEN THE SECOND FILES REACHES EOF (C) WHEN BOTH FILES REACH (D) WHEN 100 RECORDS HAVE BEEN PROCESS

5.ONE OF THE THINGS YOU NEED TO FIND OUT ABOUT A MODULE YOU WISH TO CALL IS THE:
(A) ARGUMENT LIST (B) LOCAL VARIABLE NAMES (C) NUMBER OF LINES CODE (D)ORIGINAL PROGRAMMERS NAME

6. PASSING VALUES TO MODULE HELPS FACILITATE:
A) CONFUSION (B) ENCAPSULATION (C) SHARING (D) REUSE

7. WHAT IS THE LOOSEST STYLE OF COUPLING?
A) EXTERNAL (B) DATA-SHARED (C) CONTROL (D) DATA

8. WHICH OF THE FOLLOWING SORTING METHODS IS THE LEAST EFFICIENT?
A) INSERTION (B) SELECTION (C) BASIC BUBBLE SORT (D) OPTIMIZED BUBBLE SORT

9.IN A (N) ______ SORT ALL OF THE ARRAY ELEMENTS ARE MOVED TO MAKE ROOM FOR THE NEWLY SORTED ELEMENT.
A) SWAP (B) SELECTION (C) BUBBLE (D)INSERTION

10. WHAT TYPE OF VARIABLE IS USED TO HELP MOVE ARRAY ELEMENTS IN A SELECTION SORT?
A) SWAP (B) TEMPORARY (C)FLAG (D) ARRAY

11.__________ CONTAINS AN EXTRA FIELD IN EACH RECORD THAT HOLDS A POINTER TO THE NEXT LOGICAL RECORD.
A) LINK LIST (B) INDEX (C) PHYSICAL MEMORY (D) RANDOM-ACCESS MEMORY

12.A_____ APPLICATION USUALLY INVOLVES THE USER TYPING A CHOICE AT THE COMMAND PROMPT
A)GRAPHICAL USER INTERFACE (B) BATCH (C) CONSOLE (D) GUI

13. WHEN PROGRAMMER WRITES A PROGRAM ,SHE MAY LEAVE CERTAIN MODULE DEFINITIONS AS _______ WHEN WORKING ON THE MAINLINE LOGIC.
A) SHELLS (B) STUBS (C) STANDARDS (D) BATCHES

14. WHEN A MENU CONTAINS NUMEROUS OPTION, IT IS MORE ELEGANT TO USE A(N) _____ STRUCTURE THAN A SERIES OF DECISIONS.
A)CASE (B) LOOP (C) IF-THEN-ELSE (D) BATCH

15.WHEN MATCHING RECORDS BETWEEN FILES THEY MUST BE :
A) SORTED IN THE SAME ORDER (B) PADDED TO HAVE THE SAME LENGTH(C) BACKED UP (D) PRINTED

16. YOU NEED TO UNDERSTAND A SUBROUTINE'S _____ IN ORDER TO USE IT
A) INTERNAL STRUCTURE (B) PROGRAMMING STYLE (C) LOCAL VARIABLES (D) INTERFACE

17.THE ORDER THAT ARRAY ELEMENTS ARE STORED IN BASE ON THEIR MEMORY ADDRESS IS THE _____ ORDER
A) NUMERIC (B) PHYSICAL (C) LOGICAL (D) INDEX

18.YOU CAN CIRCUMVENT POTENTIAL PROBLEM CAUSE BY A USER'S INVALID DATA ENTRIES BY _______ THE USER'S INPUT
A) GROUPING (B) DENYING (C)VALIDATING (D) MODIFYING

19.THE FIRST ATSK THAT ANY MENU-DRIVEN PROGRAM SHOULD PREFORM IS:
A) ACCEPTING (B)DISPLAYING THE MENU (C) READING THE USER RESPONSE (D) PERFORMING A MODULE BASE ON USER SELECTION

20.A VARIABLE'S ______ IN NO WAY INFLUENCES HOW THE METHOD IS CALLED FROM ANOTHER MODULE
A) LOCAL NAME (B) DATA TYPE (C) SIZE (D) DEFINITION

© BrainMass Inc. brainmass.com October 16, 2018, 6:53 pm ad1c9bdddf
https://brainmass.com/computer-science/logic-design/multiple-choice-problems-in-programming-logic-and-design-98105

Solution Preview

I have tried to answer the questions to the best of my ability. ...

Solution Summary

Discusses multiple choice and fill in the blanks with references to common problems in Programming and Logic Design

$2.19
Similar Posting

Quantitative methods: Multiple choice questions on LP

1. The constraint 5x1 - 2x2 < 0 passes through the point (xx, 50).
xx = ?

2. In a linear programming problem, the binding constraints for the optimal solution are
5X + 3Y < 30
2X + 5Y < 20
Fill in the blanks in the following sentence:
As long as the slope of the objective function stays between _______ and _______, the current optimal solution point will remain optimal.

A. 1/3 and 3/5
B. -5/3 and -4/5
C. -8/3 and -2/5
D. -5/3 and -2/5

3. Which of the following could be a linear programming objective function?
A. Z = 1A + 2B / C + 3D
B. Z = 1A + 2BC + 3D
C. Z = 1A + 2B + 3C + 4D
D. Z = 1A + 2B2 + 3D
E. all of the above

4. Output from a computer package is precise and answers should _______ be rounded.
A. never
B. always
C. sometimes
D. often

5. Mark the answers below which are true:
A. Bayes probability uses updates to improve estimates of prior probabilities.
B. Shafer-Dempster probabilities use belief functions which are very useful for situations when the sum of existing knowledge (probabilities) need not add to one.
C. Fuzzy logic is too inaccurate to be used for anything useful.
D. Both A and B
E. All of the above

View Full Posting Details