What is sequential programming?
Program runs in the order the code is written
-What will the "width" of the "BottomButton" be when the program is finished running?
setProperty(topButton, width, 70);
setProperty(BottomButton, width, 60);
setProperty(topButton, width, 80);
setProperty(BottomButton,width, 50);
50
Investigating and reflecting
these two steps in the process involve completing interviews and surveys with the target audience to gauge a further understanding of what the app’s purpose will be.
In 1976, these two people founded Apple Computer, Inc.
Steve jobs and Steve Wozniak
What is event driven programming?
Commands in the program will only run when the user interacts with the program in a specific way, such as clicking a button.
-If the user does NOT click the button what color will "topButton" be when this program finishes running?
setProperty(topButton, background-color, green);
setProperty(topButton, background-color, red);
onEvent(topButton, “click”, function (){
setProperty(topButton, background-color, blue);
setProperty(topButton, background-color, orange);
});
Red
What is the first stage of app design?
Sketching out your design is the beginning stage of app design, where you sketch out an user interface and start thinking about all of the elements and IDs that you want in your program.
Which U.S. state is known as the “Land of 10,000 Lakes?”
Minnesota
What are some reasons to put comments in programs?
-They help programmers debug, they help document the code so other programmers will understand it, they enable programmers to track their work in case they have to refer to it later on.
The following program is run. Then the user clicks the "topButton" button TWICE. What will be displayed in the console?
console.log(“pig”);
onEvent(topButton, “click”, function(){
console.log(“dog”);
});
console.log(“cat”);
pig
cat
dog
dog
What does prototyping mean?
The process of programming your app, getting feedback from your partner, and trying out solutions for the ideas that you designed.
M&M’S Fruit Chews would eventually become what popular candy?
Starburst
If your input is this:
"100" + 102;
What is the output?
100102
Which line of code in this program is MOST likely to result in an error?
var x = 5;
var y = 3;
console.log(x + y);
console.log(z);
console.log(x);
console.log(y);
console.log(“100”);
console.log(90);
console.log(z);
Why would you test an app?
You should test the app to make sure there are no bugs, also to see if the programmer wants to add anything or improve it.
What occasion corresponds with the longest day of the year?
Summer solstice
What does concatenation mean?
To combine Strings together
The following program is run. Then the user clicks the "bottomButton" FOUR TIMES. Then the user clicks the topButton ONE TIME. What will be displayed in the console?
onEvent("topButton","click", function (){
console.log("aaa");
});
console.log("bbb");
onEvent("bottomButton","click", function (){
console.log("aaa");
});
console.log("bbb");
bbb
bbb
aaa
aaa
aaa
aaa
aaa
What is the purpose of a design specification?
To describe how a program is going to work and how users will interact with it.
What was the first vegetable ever to be grown in space?
A potato