Preview

Programming and Logic

Satisfactory Essays
Open Document
Open Document
294 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Programming and Logic
Review Questions Chapter 1

1. The two major components of any computer system are its hardware and software.

2. The major computer operations include input, processing, output, and storage.

3. Another term meaning “computer instructions” is software.

4. Visual Basic, C++, and Java are all examples of computer programming languages.

5. A programming language’s rules are its syntax.

6. The most important task of a compiler or interpreter is to translate programming language statements into machine language.

7. Which of the following is a typical input instruction? Get accountNumber

8. Which of the following is a typical processing instruction? pctCorrect = rightAnswers / allAnswers

9. Which of the following is not associated with internal storage? hard disk

10. Which of the following pairs of steps in the programming process is in the correct order? Code the program, translate it into machine language

11. The two most commonly used tools for planning a program’s logic are flowcharts and pseudocode.

12. The most important thing a programmer must do before planning the logic to a program is understand the problem.

13. Writing a program in a language such as C++ or Java is known as coding the program.

14. A compiler would find all of the following programming errors except a newBalanceDue calculated by adding a customerPayment to an oldBalanceDue instead of subtracting it.

15. Which of the following is true regarding data hierarchy? files contain records

16. The parallelogram is the flowchart symbol representing both a and b.

17. Which of the following is not a legal variable name in any programming language? semester grade

18. In flowcharts, the decision symbol is a diamond.

19. The term “eof” represents a generic sentinel value.

20. The two broadest types of data are character and

You May Also Find These Documents Helpful

  • Satisfactory Essays

    d. The words that make up a high-level programming language are known as KEY WORDS or RESERVED WORDS. (pg. 17)…

    • 388 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CHAPTER3 REVEIW

    • 527 Words
    • 3 Pages

    5. This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data, as described in the chapter?…

    • 527 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Homework Week 2

    • 743 Words
    • 3 Pages

    2. What does a compiler do? What kinds of errors are reported by a compiler?…

    • 743 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 8 Study Guide

    • 546 Words
    • 3 Pages

    12. The most important task a programmer must do before planning the logic to a program is _____.…

    • 546 Words
    • 3 Pages
    Powerful Essays
  • Powerful Essays

    IT/210 Appendix D

    • 453 Words
    • 4 Pages

    Up to this point, you have identified the processes the program must perform, but you have not given any consideration to exactly how the processes work together to solve the problem. At this point, you must generate a description of the processing using pseudocode, a natural language description of the processing the application must perform.…

    • 453 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    NT2580 Final Study Guide

    • 1423 Words
    • 6 Pages

    4. Which of the following is a detailed written definition of how software and hardware are to be used? (Page 40)…

    • 1423 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    a. Should “problem” = program assignment of some sort, than the first step would be to design the basis of the program in pseudocode to gain a clear picture of what kind of commands will work where, then move into flowcharting to start putting together the logic.…

    • 848 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    pt1420 exam review

    • 738 Words
    • 3 Pages

    What is a diagram that graphically depicts the steps that take place in a program? Flowchart…

    • 738 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Unit 6 Assignment 2 Choosing the right programming language. (P2) There are several factors to consider when choosing the right programming language, these include Organisational policy, suitability in terms of available features and tools, availability of trained staff and development and maintenance costs. Organisational policy Organisations which make and develop loads of computer software’s and programs tend to have a policy of using a certain language, a reason for this might be because that language allows them to make all their software consistent and easier to maintain.…

    • 1542 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Physics Midterm Exam

    • 958 Words
    • 4 Pages

    Suppose a variable g is used to store course grade, which is one of the following letters: A, B, C, D or F. What type should be used for variable g?…

    • 958 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    A ____ involves developing a clear, concise, and unambiguous statement of the exact problem the software is to solve.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    This lab accompanies Chapter 2 (pp. 56-68) of Starting Out with Programming Logic & Design.…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Week 1 Homework

    • 843 Words
    • 5 Pages

    2. What does a compiler do? What kinds of errors are reported by a compiler?…

    • 843 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Concept Programing

    • 443 Words
    • 3 Pages

    3. (15%) Design a state diagram to recognize one form of the comments of the C-based programming languages,…

    • 443 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Medical Coding

    • 450 Words
    • 2 Pages

    I. It is very important that all the steps be followed when assigning codes for…

    • 450 Words
    • 2 Pages
    Good Essays