Programming Logic and Design: Chapter 1 Review Questions and Answers
The two major components of any computer system are its: a. Input and output b. Data and programs c. hardware and software d. memory and disk drives - Correct Answersc. hardware and software The major computer operation include: a. hardware and software b. input, processing, and output c. sequence and looping d. spreadsheets, word processing, and data communications - Correct Answersb. input, processing, and output Another term meaning "computer instructions" is: a. Hardware b. Software c. Queries d. Data - Correct Answersb. Software Visual Basic, C++ and Java are all examples of computer: a. Operating systems b. Hardware c. Machine languages d. Programming - Correct Answersd. Programming A programming language's rules are its: a. Syntax b. Logic c. Format d. Options - Correct Answersa. Syntax The most important task of a compiler or interpreter is to: a. Create the rules for a programming language b. Translate English statements into a language such as Java c. Translate programming language statements into machine language d. Execute machine language programs to perform useful tasks. - Correct Answersc. Translate programming language statements into machine language Which of the following terms is most closely related to machine language? a. High-level b. Source code c. Binary language d. All of the above - Correct Answersc. Binary language Which of the following is true about newer programming languages as opposed to older ones: a. Newer languages do not require that you understand logic. b. Newer languages do not have specific syntax rules c. Programs in newer languages tend to be written as one set of steps instead of being broken into modules d. Newer languages allow you to use reasonable names for memory locations instead of referencing memory addresses. - Correct Answersd. Newer languages allow you to use reasonable names for memory locations instead of referencing memory addresses. Object oriented programming focuses most on: a. Data b. Objects c. Procedures d. Arithmetic - Correct Answersb. Objects The attributes of an object are the things that it: a. Has b. Does c. Influence d. Understands - Correct Answersa. Has Originally, object oriented programming was used most frequently for two major types of applications. These were: a. Payroll and inventory b. Input and storage c. Computer simulations and graphical user interfaces d. Public and private applications - Correct Answersc. Computer simulations and graphical user interfaces Identifying all objects you want to manipulate and how they relate to each other is known as: a. Object programming b. Object-oriented design c. Method manipulation d. Relating - Correct Answersb. Object-oriented design Writing a program in a language such as C++ or Java is known as______________the program. a. Translating b. Coding c. Interpreting d. Compiling - Correct Answersb. Coding A compiler would find all of the following programming errors except: a. The misspelled word prrint in a language that includes the word print. b. The use of an X for multiplication in a language that instead requires an asterisk c. A newBalanceDue calculated by adding a customerPayment to an oldBalanceDue instead of subtracting it d. An arithmetic statement written as regularSales + discountedSales = totalSales - Correct Answersc. A newBalanceDue calculated by adding a customerPayment to an oldBalanceDue instead of subtracting it Two tools that are commonly used for planning a programs logic are: a. Flowcharts and psuedocode b. ASCII and EBCDIC c. Java and Visual Basics d, Word Processors and Spreadsheets - Correct Answersa. Flowcharts and psuedocode In a flowchart, input is represented by a: a. Rectangle b. Arrow c. Diamond d. Parallelogram - Correct Answersd. Parallelogram In a flowchart, processing is represented by a : a. Rectangle b. Arrow c. Diamond D. Parallelogram - Correct Answersa. Rectangle When you use an IDE instead of a simple text editor to develop a program: a. The logic is more complicated b. The logic is simpler c. The syntax is different d. Some help is provided - Correct Answersd. Some help is provided When you write a program that will run in a GUI environment as opposed to a command-line environment: a. The logic is very different b. Some syntax is different c. You do not need to plan the logic d. Users are more confused - Correct Answersb. Some syntax is different
Written for
- Institution
- Programming Logic and Design
- Module
- Programming Logic and Design
Document information
- Uploaded on
- January 29, 2024
- Number of pages
- 6
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
the two major components
-
the major computer operation include
-
another term meaning computer instructions is
-
visual basic c and java are all examples of com
-
a programming languages rules are its
Also available in package deal