Unit 3 - Intro to App Design Flashcards
user interface
the inputs and outputs that allow a user to interact with a piece of software. User interfaces can include a variety of forms such as buttons, menus, images, text, and graphics.
input
data that are sent to a computer for processing by a program. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
output
any data that are sent from a program to a device. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text
Program Statement
a command or instruction. Sometimes also referred to as a code statement
program
- a collection of program statements
- programs run (or “execute”) one command at a time
Sequential Programming
program statements run in order, from top to bottom
- no user interaction
- code runs the same way every time
Event Driven Programming
some program statements run when triggered by an event, like a mouse click or a key press
- programs run differently each time depending on user interactions
documentation
a written description of how a command or piece of code works or was developed
comment
form of program documentation written into the program to be read by people and which do not affect how a program runs
debugging
the process of finding and fixing problems in code
pair programming
a collaborative programming style in which two programmers switch between the roles of writing code and tracking or planning high level progress
pair programming: driver
Manipulates the keyboard and the mouse
pair programming: navigator
keeps track of the big picture. Guides towards the goal.
example of input in an app
a button clicked by the user
what would be considered output in an application
a notification sound from an app
the user interface of an app refers to
the elements that allow users to interact with the app, such as buttons and text fields
when a user presses a “submit” button and sees a confirmation message, the button is acting as an ______ and the message is _____
- Button is an input
- Message is an output
why is it important to use descriptive names for element IDs in app design?
it makes the code easier to read and maintain
which of the following is not an example of user interface element
a variable that stores the app data
which of the actions below would usually be helpful in designing and developing an app?
i. Interviewing potential users of the app.
ii. Writing the entire program code before testing any parts of it.
iii. Observing users attempting to use the app.
i and iii
which of the following best describes the purpose of a design specification
describing the requirements for how a program will work or users will interact with it
if a program is run then the user clicks a button once, what is displayed is what runs naturally first THEN the click
words must be written in quotes
which of the following best describes the differences between sequential and event driven programming
In sequential programming commands run in the order they are written. in event driven programming, some commands run in response to user interactions or other events.
what is not a reason to include comments in programs
comments help the computer decide whether certain components of a program are important
when debugging it up, which of the following best describes the purpose of this process
finding and fixing errors in the code to ensure the app runs as expected
which of these actions is a common first step in debugging an app when a button doesn’t work as expected
checking if the buttons ID matches what is used in the code
what number of bits do you need to represent a number in binary
find the exponent that raises 2 to be larger then given number
when do Internet connected computing devices use the IP
IP is used whenever two computing devices send data to each other over the Internet.
is the Internet decentralized or centralized?
the Internet is decentralized, so if a single connection fails, the network can remain functional
which of the following is not true about functions in programming ?
functions cannot make calls to other functions within the same program
what is one important name and convention of functions
a function name should be as descriptive as possible to indicate what the function does
can two functions in a single program, have a different name, but contain identical code
yes