0% found this document useful (0 votes)
131 views4 pages

Multiple Choice Problems in Programming Logic and Design: Variables Sort C Array Output Files File

The document appears to contain a multiple choice quiz on programming logic and design topics. It includes 20 multiple choice questions related to concepts like sorting methods, file organization, subroutine interfaces, and menu structures. It also includes a separate set of 10 multiple choice questions on programming languages and language processors.

Uploaded by

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

Multiple Choice Problems in Programming Logic and Design: Variables Sort C Array Output Files File

The document appears to contain a multiple choice quiz on programming logic and design topics. It includes 20 multiple choice questions related to concepts like sorting methods, file organization, subroutine interfaces, and menu structures. It also includes a separate set of 10 multiple choice questions on programming languages and language processors.

Uploaded by

lab incharge
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Prpgram logic mscqz

Multiple Choice Problems in Programming Logic and


Design
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
Programming Languages and Language Processors Set 1.

Questions
Question 1:
Electronic spreadsheets are most useful in a situation where relatively .... data must be input but ......
calculations are requied.
a. little; simple
b. large; simple
c. large; complex
d. little; complex

Question 2:
The two basic types of record access methods are
a. sequential and randon
b. direct and immediate
c. sequential and indexed
d. on-line and real-time
e. none of above

Question 3:
Which file organization is allowed by a direct access storage device?
a. direct only
b. sequential and direct only
c. indexed and direct only
d. sequential, indexed and direct
e. none of above

Question 4:
Sequential file organization is most appropriate for which of following applications?
a. Grocery store checkout
b. bank checking account
c. payroll
d. airline reservations
e. none of above

Question 5:
Which of the following file organization is most effieient for a file with a high degree of file activity?
a. sequential
b. ISAM
c. VSAM
d. B-Tree
e. All of above

Question 6:
One disadvantage of a direct access file is:
a. the delay in computiong the storage address
b. duplication of address locations
c. unsued, but available, storage locations
d. all of above
Question 7:
All computers execute
a. BASIC programs
b. COBOL programs
c. Machine language program
d. FORTRAN programs
e. PL/1 programs

Question 8:
Which of the following is most oriented to scientific programming?
a. FORTRAN
b. COBOL
c. BASIC
d. PL/1
e. RPG

Question 9:
All of the following are disadvantage of RPG except:
a. it is a very machine dependent language
b. it is very limited in scope
c. is not suited for complex problems requiring extensive programming logic
d. it has larger storage requierments
e. all of the above are disadvantages

Question 10:
Which of the following is not one of the process that a high level language program msut go through
before it is ready to be executed?
a. translation
b. controlling
c. lading
d. linking
e. all of the above are necessary process

Answers:
1. d     2. a     3. d     4. c     5. a     6. a     7. c   8. a     9.
b.     10.a

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy