Programming Logic and Design: Chapter 1 Review Questions

Ace your homework & exams now with Quizwiz!

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

a. Flowcharts and psuedocode

The attributes of an object are the things that it: a. Has b. Does c. Influence d. Understands

a. Has

In a flowchart, processing is represented by a : a. Rectangle b. Arrow c. Diamond D. Parallelogram

a. Rectangle

A programming language's rules are its: a. Syntax b. Logic c. Format d. Options

a. Syntax

In Object-orientated programming, each object: a. maintains its own data b. carries out tasks when another object requests them c. both of these d. none of these

c. both of these

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

c. hardware and software

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.

d. Newer languages allow you to use reasonable names for memory locations instead of referencing memory addresses.

In a flowchart, input is represented by a: a. Rectangle b. Arrow c. Diamond d. Parallelogram

d. Parallelogram

Visual Basic, C++ and Java are all examples of computer: a. Operating systems b. Hardware c. Machine languages d. Programming

d. Programming

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

d. Some help is provided

Writing a program in a language such as C++ or Java is known as______________the program. a. Translating b. Coding c. Interpreting d. Compiling

b. Coding

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

b. Object-oriented design

Object oriented programming focuses most on: a. Data b. Objects c. Procedures d. Arithmetic

b. Objects

Another term meaning "computer instructions" is: a. Hardware b. Software c. Queries d. Data

b. Software

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

b. Some syntax is different

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

b. input, processing, and output

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

c. A newBalanceDue calculated by adding a customerPayment to an oldBalanceDue instead of subtracting it

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

c. Binary language

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

c. Computer simulations and graphical user interfaces

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.

c. Translate programming language statements into machine language


Related study sets

"A New Oceania: Our Sea of Islands" by Epeli Hauʻofa

View Set

MyProgrammingLab Starting out with python ch.4

View Set

Chapter 12 Classification of Neurons

View Set