Bcse102 Exam Multi-choice Part 4

15 Questions | Total Attempts: 42

SettingsSettingsSettings
Bcse102 Exam Multi-choice Part 4 - Quiz

46-60! the rest of the buggers :) these one aren't so hard


Questions and Answers
  • 1. 
    Complex loops can be most easily created by _________.  
    • A. 

      Starting with the looping logic and working from the outside in

    • B. 

      Starting at the top and working to the bottom

    • C. 

      Starting with a single case and working from the inside out

    • D. 

      starting with the looping logic and working from the inside out

  • 2. 
    How long/short should a loop be?  
    • A. 

      Short enough to view all at once

    • B. 

      15 lines or less

    • C. 

      no more than 10 lines

    • D. 

      there is no limit

  • 3. 
    The preferred (easiest to understand) kind of loop control structure is __________.  
    • A. 

      Loop with exit

    • B. 

      Loop with test at end

    • C. 

      Loop with test at beginning

    • D. 

      endless loop

  • 4. 
    In McConnell’s opinion, ‘unusual’ control structures are __________.
    • A. 

      not useful and should be avoided

    • B. 

      Very useful and should be used in languages that do offer them

    • C. 

      Useful when used with care in languages that do offer them

    • D. 

      Preferable if the languages offers them

  • 5. 
    In modern programing languages gotos __________.  
    • A. 

      should usually be replaced by equivalent sequential construct, but are useful in some unusual cases

    • B. 

      Are very useful to increase efficiency

    • C. 

      Are evil

    • D. 

      Should always be replaced by an equivalent sequential construct

  • 6. 
    Recursion is when a routine __________.  
    • A. 

      Is called repeatedly

    • B. 

      calls itself

    • C. 

      solves a small part of a problem

    • D. 

      breaks a problem into smaller pieces

  • 7. 
    Compared with logic-based and object-oriented approaches, the table-driven approach is usually more __________.  
    • A. 

      Difficult to write

    • B. 

      difficult to read

    • C. 

      Wordy

    • D. 

      Ecomomical

  • 8. 
    If data is not ‘well behaved’ and it is not possible to directly look up a value from a key, you may still be able to use a table driven-approach by __________.  
    • A. 

      Using a different key

    • B. 

      Duplicating information in the table

    • C. 

      adding more logic to your code

    • D. 

      Removing information from the table

  • 9. 
    In stair-step access tables the entries in the table are __________.  
    • A. 

      lower limits for data

    • B. 

      Ranges for data

    • C. 

      Distinct data points

    • D. 

      upper limits for data

  • 10. 
    A control structure that causes a group of statements to be executed multiple times is known as a(n) __________.  
    • A. 

      Selection

    • B. 

      Iteration

    • C. 

      Sequence

    • D. 

      Structure

  • 11. 
    A set of statements executed in order is known as a(n) __________.  
    • A. 

      Iteration

    • B. 

      Sequence

    • C. 

      Selection

    • D. 

      Structure

  • 12. 
    The core of Structured Programming is the simple idea that a program should use ______.  
    • A. 

      single-entry, single-exit control structures

    • B. 

      multiple-entry, multiple-exit control structures

    • C. 

      Multiple-entry, single-exit control structures

    • D. 

      single-entry, multiple-exit control structures

  • 13. 
    An effective software-quality program must include __________.  
    • A. 

      Formal inspections of all requirements, all architecture, and designs for critical parts of a system

    • B. 

      Execution testing

    • C. 

      Modelling or prototyping

    • D. 

      A combination of techniques that apply to all stages of development

  • 14. 
    At which stage of a software development project should there be an emphasis on quality assurance?
    • A. 

      It should be planned into the project as work begins

    • B. 

      It should be part of the technical fiber of the project as work continues

    • C. 

      It should punctuate the end of the project, verifying the quality of the product as work ends

    • D. 

      All of these answers are correct

  • 15. 
    What is the General Principle of Software Quality?  
    • A. 

      Improving quality increases development effort

    • B. 

      Improving quality reduces development cost

    • C. 

      Improving quality increases development time

    • D. 

      Improving quality increases development cost

Back to Top Back to top