All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Tutor
New
Search
Search
Sign In
Register
study help
computer science
prelude to programming
Questions and Answers of
Prelude to Programming
If Name1 = "Marcy", Text1 = "is now", Text2 = " years old.", and Age = 24, what will be output after the following operation:Name1 + Text1 + Age + Text2
Suppose that Number1 = 15 and Number2 = 12 are both of Integer type. Give the two possible values (depending on the programming language in use) of Number1/Number2.
Write a series of statements that does the following:Step 1 Inputs the price of an item, in dollars, from the user (including a suitable prompt).Step 2 Divides the number entered in Step 1 by
Write a series of statements that does the following:● Inputs the user’s age (including a suitable prompt).● Subtracts 5 from the number entered by the user.● Displays the message "You don't
Write a pair of statements that prompts for and inputs an item’s price.
Write a pair of statements that prompts for and inputs the user’s age.
If Name1 = "John" and Name2 = "Smith", what string results from each of the following operations?a. Name1 + Name2b. Name2 + ", " + Name1
Given that the variable named Boy = "Joey" and the variable named Age = 6, create statements that will output the following message. Use a variable named Message to store the message.Congratulations,
What is the difference between the following two variables?Number1 = 65Number2 = 65.0
Suppose X = 12, Y = 6, and Z = 5. Give the value of each of the following expressions:a. X % Z + Yb. X % (Y + Z)
Suppose X = 14. Give the value of each of the following expressions:a. X % 5b. X % 7
Suppose X = 3 and Y = 4. If all parentheses were omitted from the expression in Exercise 28b, what would be its value?Data from Exercise 28bb. ((X + Y) * 2 – (Y – X) * 4) ˆ 2
What are the two possible values (depending on the programming language that is being used) of the expression 7/2?
Suppose X = 3 and Y = 4. Give the value of each of the following expressions:a. X * Y ˆ 2 / 12b. ((X + Y) * 2 – (Y – X) * 4) ˆ 2
If the value of the variable MyAge is 3, then the statementSet MyAge = 4assigns the value 7 to MyAge.True or False
A number stored as an integer takes up less space in the computer’s memory than a floating point number.True or False
A rational number is any number that can be represented as an integer divided by another integer.True or False
Since integers can only be positive numbers, it is always best to declare all numbers as floating point numbers.True or False
A variable may be considered the name for a certain storage location in the computer’s memory.
As you develop a computer program, you should code the program before designing it.True or False
After devising and carrying out a plan of action to solve a problem, you should review your results to see if the plan has worked.True or False
Problem solving is a cyclic process, often requiring you to return to a previous step before you find a satisfactory solution.True or False
In everyday life, a program is a plan of action to attain a certain end.True or False
Which of the following is not a rational number?a. √3b. 0.873c. 1/3d. 22/5
Which of the following is not a floating point number?a. 236,895.34766b. –236,895.34766c. 0d. 6/18
Which of the following is not an integer?a. 4b. 28754901c. –17d. 3.0
After coding a computer program, you should do which of the following?a. Analyze the problem that led to that programb. Devise a plan for using the code to solve the given problemc. Run the program
Which of the following is the first step in the general problem-solving strategy?a. Devise a plan to solve the problemb. Make sure that you completely understand the problemc. Make a list of possible
A character ____________ is any sequence of characters.
Roughly speaking, a(n) ____________ is any symbol that can be typed at the keyboard.
A floating point variable requires __________ (more/less) storage space in the computer’s memory than an integer variable.
A(n) ____________ statement is displayed on the screen to explain to the user what to enter.
The data type that gives a variable only one of two possible values is the ____________ data type.
In most programming languages, variables that represent numbers must be ____________, or defined, prior to their use.
The two basic types of numeric data are ____________ data and ____________ data.
Write a program that inputs the first name, middle initial (without the period), and last name of a user and displays that person’s name with the first name first, middle initial followed by a
The Input statement in the previous exercise (Review Exercise 5) assigns the number entered by the user to the variable ____________.Data from Exercise 5The first of the following statements Write
Write a program to compute and display an investment’s total interest and final value when the user inputs the original amount invested, rate of interest (as a decimal), and number of years
The first of the following statements Write "Enter your weight in pounds:"Input Weight provides a(n) ____________ for the input.
Write a program that computes and displays the batting average for a baseball player when the user inputs the number of hits and at-bats for that player. Batting average is computed by dividing the
The term ____________ refers to the numbers, text, and other symbols that are manipulated by a program.
Write a program that converts a temperature input in degrees Celsius into degrees Fahrenheit and displays both temperatures. You will need the following variables:Celsius (a Float)
The three basic building blocks of a program are input, ____________, and output.
Write a program that computes and displays a 15 percent tip when the price of a meal is input by the user. (The tip is computed by multiplying the price of the meal by 0.15.) You will need the
The general process of designing a suitable computer program to solve a given problem is known as the ____________.
Write a list of instructions (like those that appear in Section 1.1) so that someone can perform each of the following tasks:a. Do one load of laundryb. Use an ATM machine to withdraw moneyc. Make a
A computer ____________ is a list of instructions to be executed by the computer to accomplish a certain task.
Number the following types of computers in order of increasing size and power:a. Mainframes ____b. Minicomputers ____c. Personal computers ____d. Supercomputers ____
Number the following personal computers in order of introduction (from earliest to most recent):a. Apple II ____b. Altair 8800 ____c. Apple Macintosh ____d. IBM PC ____
Cloud computing is only available to large businesses and organizations.True or False
Computer keyboards contain fewer keys than a standard typewriter.True or False
A scripting language is compiled before the code is executed.True or False
RAM stands for Remote Acccess Memory.True or False
The contents of a computer’s ROM are lost when the power is turned off.True or False
Computer components housed outside the system unit are called peripherals.True or False
The Internet’s origins date back to the early 1990s.True or False
The Internet is a worldwide collection of networks.True or False
Which of the following is not an example of a high-level language?a. C++b. FORTRANc. Babbaged. Java
Which of the following is not a type of a programming language?a. Natural languageb. Assembly languagec. Machine languaged. High-level language
Which of the following is an example of system software?a. The computer’s RAMb. The computer’s operating systemc. A programmable calculatord. A word processor
Which of the following is an example of application software?a. The computer’s RAMb. The computer’s operating systemc. A programmable calculatord. A word processor
Which of the following is an advantage of a flash drive over a hard disk drive?a. It uses removable mediab. It holds more datac. It retrieves data more quicklyd. None of the above
Which of the following is an advantage of cloud computing over purchasing all software you need separately?a. You have access to a large range of software productsb. You only pay for a product if you
Which of the following is an output device?a. Display screenb. Keyboardc. CPUd. Read-only memory (ROM)
Which of the following is an input device?a. Printerb. Keyboardc. CPUd. Read-only memory (ROM)
Which of the following is done by the computer’s central processing unit?a. Processing program instructionsb. Performing arithmetic and logical operationsc. Controlling the other components of the
Which of the following components is not contained within the system unit of a typical PC?a. The motherboardb. The monitorc. Random-access memory (RAM)d. None of the above
Which operating system is now used by almost all IBM compatible computers?a. DOSb. Microsoft Windowsc. Linuxd. Macintosh OS
Which of the following pairs were the founders of Microsoft Corporation?a. John Mauchly and J. Presper Eckertb. Steven Jobs and Stephen Wozniakc. Bill Gates and Paul Allend. Richard Rodgers and Oscar
The first high-level programming language was known as ____________, which stands for “formula translator.”
High-level programming languages are translated into machine language by means of a(n) ____________.
The master control program that oversees a computer’s operations is called its ____________.
Software is divided into two broad categories: ____________ software and system software.
The operating system developed by Google is the ____________ system.
Solid-state mass storage like a flash drive is plugged into a computer through a(n) ____________ port.
____________ allows a user access to software and the user’s files from any computer connected to the Internet.
The hard drive is an example of ____________ mass storage.
One kilobyte is equal to ____________ bytes.
One byte of memory consists of ____________ bits.
A personal computer’s main circuit board is called its ____________.
The physical components of a computer system are referred to as its ____________.
The World Wide Web provides access to a huge number of electronic documents known as ____________.
____________ allows someone with access to the Internet to exchange messages with other Internet users around the world.
Until the appearance of the ____________ in the mid-1960s, only large mainframe computers were available.
The invention of the ____________ helped to make computers smaller by replacing the larger, less efficient vacuum tubes in the electronic circuits.
The first fully operable electronic computer was named ____________.
A nineteenth-century computing pioneer named ____________ designed a computer called the Analytical Engine.
Showing 500 - 600
of 587
1
2
3
4
5
6