Mercurial Essays

Free Essays & Assignment Examples

Computers Algorithms

Activity Activity Activity Activity Activity Activity 8 – IntroIntro IntroIntroduction tduction tduction t duction t duction tduction t o Programming Programming Programming Programming Programming Programming Programming Submit you answers in MS Word format to the D2L dropbox 1. 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 2. The major computer operations include _____. a. hardware and software b. input, processing, output, and storage c. sequence and looping . spreadsheets, word processing, and data communications 3. Another term meaning “computer instructions” is _____. a. hardware b. software c. queries d. data 4. Visual Basic, C++, and Java are all examples of computer _____. a. operating systems b. hardware c. machine languages d. programming languages 5. A programming language’s rules are its _____. a. syntax b. logic c. format d. options 6. 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. ranslate programming language statements into machine language d. execute machine language programs to perform useful tasks 7. Which of the following is a typical input instruction? a. get accountNumber b. calculate balanceDue c. print customerIdentificationNumber d. total = janPurchase + febPurchase 8. Which of the following is a typical processing instruction? a. print answer b. get userName c. pctCorrect = rightAnswers / allAnswers d. print calculatedPercentage 9. Which of the following is not associated with internal storage? a. main memory . hard disk c. primary memory d. volatile storage 10. Which of the following pairs of steps in the programming process is in the correct order? a. code the program, plan the logic b. test the program, translate it into machine language c. put the program into production, understand the problem d. code the program, translate it into machine language 11. The two most commonly used tools for planning a program’s logic are _____. a. flowcharts and algorithms b. ASCII and EBCDIC c. Java and Visual Basic d. word processors and spreadsheets 12.

The most important task a programmer must do before planning the logic to a program is _____. a. decide which programming language to use b. code the problem c. train the users of the program d. understand the problem 13. Writing a program in a language such as C++ or Java is known as _____ the program. a. translating b. coding c. interpreting d. compiling 14. 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 requires an asterisk c. ewBalanceDue calculated by adding customerPayment to oldBalanceDue instead of subtracting it d. an arithmetic statement written as regularSales + discountedSales = totalSales 15. The parallelogram is the flowchart symbol representing _____. a. input b. output c. both a and b d. none of the above 16-20. Create a flowchart using MS Word from the algorithm below: Read Temp If Temp < 0 Then Print Temp, “Below Freezing” Else If Temp > 0 Then Print Temp, “Above Freezing” Else Print Temp, “Freezing” End If End If Stop

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now
x

Hi!
I'm Belinda!

Would you like to get a custom essay? How about receiving a customized one?

Check it out