What does testing involve in the stages of developing an application?
simply testing the app to make sure there are no bugs, also to see if the programmer wants to add anything or improve it.
-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
What is sequential programming?
Program runs in the order the code is written
In SpongeBob SquarePants, what is the name of SpongeBob's pet snail?
Gary
What does the design stage of app development include?
where you sketch out an user interface and start thinking about all of the elements and IDs that you want in your program.
-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 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.
What is the chemical symbol for silver?
Ag
What does the prototyping stage include?
process of programming your app, getting feedback from your partner, and trying out solutions for the ideas that you designed.
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
The purpose of a design specification?
Describe how a program is going to work and how users will interact with it.
What is the smallest country in the world by land area?
Vatican city
What does Investigating and reflecting involve when developing an app?
completing interviews and surveys with the target audience to gauge a further understanding of what the app’s purpose will be.
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);
z is not defined, console.log(z) won't work
What is the symbol for making a comment in javascript?
//
What is the only letter that does not appear in the name of any U.S. state?
Q
designing,testing, prototyping, Investigating and reflecting
What is the correct order of these four stages of development?
Investigating and reflecting, designing, prototyping, testing
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(“ccc”);
});
console.log(“ddd”);
bbb ddd ccc ccc ccc ccc aaa
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.
What is the only U.S. bill that features a president who was never president?
The $10 bill — Alexander Hamilton