Python - Pre-Assessment Exam

  1. Within an event-driven program, a component from which an event  is generated is the ____.




    B. source of the event
  2. Software can be classified into two broad types: application software and programming software.

    A. True
    B. False
    B. False
  3. You use the ______ operator to reverse the meaning of a Boolean expression.




    D. NOT
  4. The number of bytes in an array is always a multiple of the number of ____ in an array.




    B. elements
  5. A string variable can hold digits such as account numbers and zip codes.

    A. False
    B. True
    B. True
  6. An abstract class is one from which you can create any concrete objects and from which you can inherit.

    A. False
    B. True
    A. False
  7. A method that calls itself is a ______.




    C. recursive method
  8. Programmers use the phrase _____ to describe what happens when worthless or invalid input causes inaccurate or unrealistic results.




    C. GIGO
  9. An important advantage of using GUI data-entry objects is that you often can control what users enter by limiting their options.

    A. True
    B. False
    A. True
  10. In a ______, the loop body executes at least one time because the loop control variable is not tested until after one iteration.




    D. posttest loop
  11. The mainline logic of almost every procedural computer program consists of these three distinct parts: _______.




    B. housekeeping tasks, detail loop tasks, and end-of-job tasks
  12. ______ operators require two operands.




    A. Binary
  13. ________ methods are methods that exist to be used with an object created from a class.




    D. Nonstatic
  14. The case structure is a variation of the sequence structure and the do loop is a variation of the while loop.

    A. False 
    B. True
    A. False
  15. Methods with identical names that have identical parameter lists but different return types are ambiguous.

    A. True
    B. False
    A. True
  16. The _______ is skewed by a few very high or low values.




    C. mean
  17. As pages in a book have numbers, computer memory and storage locations have _____.




    A. addresses
  18. With a(n) _____ program, a user can continue to click buttons while your program is reading a data file.




    C. multithreaded
  19. Methods in a class are static instance methods by default.

    A. True
    B. False
    B. False
  20. Array elements all have the same ______ in common.




    A. data type
  21. Both the while loop and the for loop are examples of pretest loops.

    A. False
    B. True
    B. True
  22. Images and music are contained in binary files.

    A. False
    B. True
    B. True
  23. Structured programs can be easily broken down into routines or ______ that can be assigned to any number of programmers.




    B. modules
  24. In a flowchart, the _____ is used to represent processing. 




    A. rectangle
  25. A ______ is a temporary detour in the logic of a program.




    D. control break
Author
jdavis123
ID
357653
Card Set
Python - Pre-Assessment Exam
Description
Updated