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
Ask a Question
Search
Search
Sign In
Register
study help
computer science
starting out with programming logic and design
Questions and Answers of
Starting Out With Programming Logic And Design
True or False A component’s Text property typically holds string values.
Describe how you typically change the color of a component.
The GUI for a mobile app has a Label component named phoneNumberLabel. Write an event handler that executes when the device receives an incoming phone call. The event handler should display the phone
What is an event-driven program?
A type of program that is typically event-driven is the_______ program.a. Command lineb. Text-basedc. GUId. Procedural
True or False Predefined names are given to all of the events that can be generated in a GUI system.
Why must components be assigned names?
The GUI for a mobile app has a Label component named addressLabel. Write an Init module that gets the street address nearest to the device and displays it in the addressLabel component.
What is a user interface flow diagram?
An item that appears in a program’s graphical user interface is known as a ________.a. Gadgetb. Componentc. Toold. Graphic object
True or False A user interface flow diagram shows how a GUI program flows from one window to the next as the user interacts with it.
What happens if an event occurs and there is no event handler to respond to the event?
Why was GUI programming complex and time consuming in the early days of GUI technology?
By specifying characteristics such as color, size, and location,________ determine how a GUI element appears on the screen.a. Propertiesb. Attributesc. Methodsd. Event handlers
True or False In our pseudocode, the Init module automatically executes when the application starts.
What is a non-visual component? Give an example of a non-visual component that we discussed in this chapter.
In an IDE that allows you to visually construct a window, how do you place an item such as a button in the window?
An is an action that takes place within a program, such as the clicking of a button.a. Event handlerb. Anomalyc. Eventd. Exception
True or False When developing GUIs for mobile devices and desktop computers, you typically use a smaller font with the mobile device than with the desktop computer.
A(n)________ is a module that automatically executes when a specific event occurs.a. Event handlerb. Auto modulec. Startup moduled. Exception
Why must components be assigned names?
In our pseudocode, the module executes automatically when the GUI application starts executing.a. StartUpb. Initc. Autod. Main
What do a component’s properties do?
The component that we discussed in this chapter is an example of a non-visual component.a. Buttonb. Labelc. TextMessaged. Text box
Look at the following pseudocode and then answer the questions that follow it:a. What event does this module respond to?b. What is the name of the component that generates the event? Module
We introduced a module named Init in our pseudocode. What is the purpose of this module? When does it execute?
Do mobile devices allow you to show more information on a screen, or less?
Do mobile device screens typically require a larger font or a smaller font compared to desktop screens?
Name at least three unique capabilities that mobile devices usually have, compared to desktop computers.
What is a non-visual component? Give two examples that we discussed in this section.
Suppose you are writing pseudocode for an app that performs an action each time the smartphone receives an incoming call. How does the app know that a call is coming in?
Suppose you are writing pseudocode for an app that performs an action each time the smartphone receives an incoming text message. How does the app know that a message is coming in?
Suppose you are writing pseudocode for a mobile app that performs an action each time the device’s location changes. How does the app know that the device’s location has changed?
Appendix D shows how to convert a decimal number to binary. Use the technique shown in Appendix D to convert the following decimal numbers to binary:1165100255Data From Appendix DYou can convert a
Use the Web to research the history of the BASIC, C++, Java, and Python programming languages,and answer the following questions:Who was the creator of each of these languages?When was each of these
What does the term user-friendly mean?
True or False The name gross pay is written in the camelCase convention.
A(n)________ is a set of statements that execute in the order that they appear.a. Serial programb. Sorted codec. Sequence structured. Ordered structure
True or False In languages that require variable declarations, a variable’s declaration must appear before any other statements that use the variable.
What are each of the following symbols in a flowchart?OvalParallelogramRectangle
True or False Uninitialized variables are a common cause of errors.
True or False Hand tracing is the process of translating a pseudocode program into machine language by hand.
What is a sequence structure?
A(n)_______ is a message that tells (or asks) the user to enter a specific value.a. Inquiryb. Input statementc. Directived. Prompt
What is external documentation?
What would you call a device that works with binary data?
What is hardware?
Why is the CPU the most important component in a computer?
Use what you’ve learned about the binary numbering system in this chapter to convert the following binary numbers to decimal: 1101 1000 101011
What are the three operations that programs typically perform?
A_________ is a storage location in memory that is represented by a name.a. Variableb. Registerc. RAM slotd. Byte
True or False The value of a named constant cannot be changed during the program’s execution.
What is an IPO chart?
True or False Internal documentation refers to books and manuals that document a program, and are intended for use within a company’s programming department.
A(n)________ variable is one that has been declared, but has not been initialized or assigned a value.a. Undefinedb. Uninitializedc. Emptyd. Default
What happens when this statement executes?What is a prompt?
A(n)________ is a variable whose content has a value that is read only and cannot be changed during the program’s execution.a. Static variableb. Uninitialized variablec. Named constantd. Locked
What happens when this statement executes?What two steps usually take place when a program prompts the user for input?
A debugging process in which you imagine that you are the computer executing a program is called ________.a. Imaginative computingb. Role playingc. Mental simulationd. Hand tracing
What happens when this statement executes?What does the term user-friendly mean?
What is an assignment statement?
When you assign a value to a variable, what happens to any value that is already stored in the variable?
Summarize the mathematical order of operations, as it works in most programming languages.
What is the purpose of the exponent operator?
What is the purpose of the modulus operator?
What two items do you usually specify with a variable declaration?
Does it matter where you write the variable declarations in a program?
What is variable initialization?
Do uninitialized variables pose any danger in a program?
What is an uninitialized variable?
What is internal documentation?
What are the two general types of comments that programmers write in a program’s code? Describe each.
What happens when this statement executes?Who is the user?
What is a string? What is a string literal?
A string literal is usually enclosed inside a set of what characters?
A(n)______ operator raises a number to a power.a. Modulusb. Multiplicationc. Exponentd. Operand
Look at the following pseudocode statement: Input temperature
Summarize three common rules for naming variables.
A(n)_______ operator performs division, but instead of returning the quotient it returns the remainder.a. Modulusb. Multiplicationc. Exponentd. Operand
What variable naming convention do we follow in this book?
A(n)________ specifies a variable’s name and data type.a. Assignmentb. Variable specificationc. Variable certificationd. Variable declaration
Assigning a value to a variable in a declaration statement is called ______.a. Allocationb. Initializationc. Certificationd. Programming style
What value is stored in uninitialized variables?
What two things must you normally specify in a variable declaration?
Showing 500 - 600
of 584
1
2
3
4
5
6