Development Methodology
App Inventor
Logic
Variables and Data
Python
100
  • When programming we should …
    • Build the whole app then test


    • Never test
    • Test after we add each feature
    • Assume there are no  bugs
  • Test after we add each feature
100
  • Design view affects these three things...
  • The look of the app
  • The blocks available
  • Layout of the app


100
  • If a = 5, b = 7, and c = d, which is true?
    • a > 10
    • b < 7
    • a > c
    • d = c

d = c

100

Text is what type of data?

String

100

What is this? (item, item, item)

A tuple

200

A user story follows what pattern?

As a ____, I want to ___, so that ____

200

Which user interface item is used for inputting text?

TextBox

200

is “bon” in “Hello, Mr. Trombone!”

True

200

Integers represent what (be specific)

Whole numbers

200

raw_input must have what in the ()s?

Nothing, it isn't required

300
  • A collection of user stories is a…

Sprint Back log

300
  • What is this code segment doing?
  • (Slide 1)

Decrementing name by 1

300

If x is equal to five or if x is greater than 22, set the label1 text to say "hello".

What would the conditional look like?

  • If x = 5 or x > 22, 
  • then set label1.text to “hello”
300

This data storage type is mutable and has an indexing system.

List (Array)

300

12 % 3 returns what?

0

400

When creating software, who should determine the features?

We should work together with the owner to choose features

400

Evaluate:

(Slide 2)

Label1 is “Basketball”

400

x = 5, y = 11, the conditional ( if x≠7 or y≠ 11 ) will evaluate to what?

True

400

How do I set up a dictionary?

variable = {"key":value}

400

names = [“Bob”, “Joe”, “Carl and Sue”]

what prints from names[3]?

Error, index out of bounds

500

Why is it important to design incrementally?

So that we can test often and early, avoid giant fail at the end

500

Why is (get edge) ok in EdgeReached, but not in Button1.click?

(Slide 3)

Edge is a local variable created inside of .EdgeReached method.

500

Mary's mom has four children. The first child is called April. The second May. The third June. What is the name of the fourth child?

Mary

500

What does "15"*4 become?

"15151515"

500

x = “Hello”

print(x[:3]) #prints what?

"Hel"