Bcse102 Exam Multi-choice Part 3

15 Questions | Total Attempts: 61

SettingsSettingsSettings
Bcse102 Exam Multi-choice Part 3 - Quiz

Questions 31-45 of the multi-choice exam section


Questions and Answers
  • 1. 
    A good mnemonic name generally speaks to the __________.  
    • A. 

      Problem

    • B. 

      Some aspect of computing

    • C. 

      how more than what

    • D. 

      Solution

  • 2. 
    If you modify a name with a computer-value qualifier like Total, Sum, Average, Max, Min, put the modifier at the __________ of the name.  
    • A. 

      Middle

    • B. 

      End

    • C. 

      Beginning

    • D. 

      Most readable place

  • 3. 
    Loop index variables are best named __________.  
    • A. 

      Flag

    • B. 

      Temp

    • C. 

      I, j or k

    • D. 

      Count

  • 4. 
    According to McConnell, the most common problems with arrays is __________?  
    • A. 

      attempting to access values in non-sequential order

    • B. 

      Attempting to access an element which is out of bounds

    • C. 

      Attempting to store data which is too big

    • D. 

      Storing the wrong type of value

  • 5. 
    Localization is __________.  
    • A. 

      Another word for internationalization

    • B. 

      The grouping of strings together in a program

    • C. 

      The use of named constants in a program

    • D. 

      The finding of a particular string in a program

  • 6. 
    Magic numbers are __________.  
    • A. 

      Literal numbers inside program that can be changed easily

    • B. 

      The numbers 7, 42 and 666

    • C. 

      Literal numbers inside program that appear without explanation

    • D. 

      Hard coded 0s and 1s

  • 7. 
    Access routines __________.  
    • A. 

      Are another name for .get routines

    • B. 

      are another name for .set routines

    • C. 

      do not hide data

    • D. 

      Give you centralized access to data

  • 8. 
    To reduce the risk from using global data __________.  
    • A. 

      Use class variables

    • B. 

      put all global data into an object and pass it to all routines

    • C. 

      develop a naming convention that makes global data obvious

    • D. 

      Comment carefully the correct use of each global

  • 9. 
    It can be useful to use global data for __________.  
    • A. 

      to keep all access to the data at the same level of abstraction

    • B. 

      Emulation of named constants

    • C. 

      controlling access to data

    • D. 

      Access routines

  • 10. 
    'Routine parameter' means __________.  
    • A. 

      the information passed out of a routine

    • B. 

      the method signature line of the routine

    • C. 

      the name of the routine

    • D. 

      The information passed into a routine

  • 11. 
    A program should be read in __________ order.  
    • A. 

      Left to right

    • B. 

      Top to bottom

    • C. 

      Right to left

    • D. 

      Bottom to top

  • 12. 
    Code which needs to be in a specific order contains __________.  
    • A. 

      Dependencies

    • B. 

      Redundancies

    • C. 

      Parameters

    • D. 

      Sequences

  • 13. 
    A conditional is a statement that __________.  
    • A. 

      Causes a program to repeatedly execute a block of code

    • B. 

      has additional optional keywords

    • C. 

      Causes a program to execute code in sequence

    • D. 

      Controls the execution of other statements

  • 14. 
    An incorrect branch is most often caused by using __________.  
    • A. 

      = instead of < and >

    • B. 

      = instead of :=

    • C. 

      < or > instead of =

    • D. 

      = instead of

  • 15. 
    How many elseif clauses can be put in conditional code?  
    • A. 

      up to 2

    • B. 

      as many as are needed

    • C. 

      5 at the most

    • D. 

      Only 1

Back to Top Back to top