preview

Cs Programming Chapter 1

Satisfactory Essays

Chapter 1: An Overview of Computers and Programming

TRUE/FALSE

1. Every programming language has rules governing its word usage and punctuation.

ANS: T PTS: 1

2. Professional computer programmers write programs to satisfy their own needs.

ANS: F PTS: 1

3. The heart of the programming process lies in planning the program’s logic.

ANS: T PTS: 1

4. Once a program is completed, it is ready for the organization to use.

ANS: F PTS: 1

5. Alan Turing is often regarded as the first programmer.

ANS: F PTS: 1

6. Charles Babbage incorporated vacuum tube technology in the Analytical Engine.

ANS: F

7. MS-DOS is the kernel of the operating system residing in the Macintosh.

ANS: F

8. The World Wide Web is identical to the Internet. …show more content…

Permanent storage devices are nonvolatile—that is, their contents are persistent and are retained even when power is lost.

PTS: 1 TOP: Critical Thinking

2. Describe the function of a compiler and interpreter.

ANS:
Each programming language uses a piece of software, called a compiler or an interpreter, to translate your program code into machine language. Machine language is also called binary language, and is represented as a series of 0s and 1s. The compiler or interpreter that translates your code tells you if any programming language component has been used incorrectly. Syntax errors are relatively easy to locate and correct because the compiler or interpreter you use highlights every syntax error. If you write a computer program using a language such as C++ but spell one of its words incorrectly or reverse the proper order of two words, the software lets you know that it found a mistake by displaying an error message as soon as you try to translate the program.

PTS: 1 TOP: Critical Thinking

3. What is a variable and how is it used in a program?

ANS:
Suppose the location myNumber is a variable. A variable is a named memory location whose value can vary—for example, the value of myNumber might be 3 when the program is used for the first time and 45 when it is used the next time.

PTS: 1 TOP: Critical Thinking

4. What is involved in putting a program into production?
ANS:
Once the program is tested

Get Access