AP CSP unit 3

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

31 Terms

1
New cards

Why should element IDs have meaningful names

It helps humans remember and understand the purpose of various elements.

It makes finding errors easier

It helps other team members understand what is happening

2
New cards

Coding elements that provide the User the ability to INPUT into an app

Text box, button, a link

3
New cards

coding elements that the app uses to OUTPUT to the user

Text Label, image, sound

4
New cards

Output devices

Screen (monitor), speakers, vibration, printer

5
New cards

Input devices

mouse, keyboard, camera, microphone, sensors

6
New cards

Output

Elements and devices that the code or computer uses to send information to the user

7
New cards

Input

Elements and devices that send information to the computer for processing

8
New cards

Good names for elements follow these rules

can’t have spaces, can’t start with a number, capitalization matters

9
New cards

A good user interface

provides seamless and intuitive way for users to interact with a computer

10
New cards

User centered design means

Primarily focus on involving the target user audience throughout the design process to create an interface that meets their needs

11
New cards

The benefit of designing before coding

Guides the coding implementation and testing processes

12
New cards

The purpose of a design specification

Describing the requirements for how a program will work or users will interact with it.

13
New cards

Program statement

a command or instruction

14
New cards

Program

A collection of program statements

15
New cards

The differences between sequential and event-driven programming

Sequential programing: program statements run order, from top to bottom, no user interaction, code runs the same way ever time.

Event driven programming: 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

16
New cards

Documentation

The written description of how a command or piece of code works or was developed

17
New cards

Comments

A  form of program documentation written into the program to be read by people and which do not affect how a program runs

18
New cards

Reasons to document

1) Remind ourselves what we want to do and why

2) help our team to figure out what we were doing and why

3) great way to start coding (pseudocode)

4) Can help others who may use our code in the future (including ourselves)

19
New cards

Pseudocode

Instructions in plain english that can later be converted into comments or code

20
New cards

Common documentation myths

once we document it never changes, bc it’s part of the original design it never gets changed, it should only include what’s important, it’s only for really big projects, our code is the only documentation we need.

21
New cards

Bug

A fault or flaw in a computer program or hardware that causes unexpected or desired results, deviating from the intended functionality

22
New cards

Debugging

The systematic process of finding, analyzing, and resolving errors, known as bugs

23
New cards

Debugging process

1) Describe the problem

2) Hunt for bugs

3) try solutions

4) document as you go

24
New cards

Debugging strategies

clean code, organized chunks, using comments, testing often, use console log

25
New cards

Test driven development

Testing after every change to the code to make sure that everything still works and nothing was broken

26
New cards

Resources for debugging

Documentation, partner, other students, internet

27
New cards

describe the flow of information during a fundamental computing cycle?

Input → Processing → Output

28
New cards

A "String" in computer coding is:

Character in coding like words

29
New cards

What is one difference between console.log and setProperty?

Responses

The console log is for debugging

30
New cards

primary purpose of internal documentation (i.e. comments) in a program?

To explain to future developers and maintainers the non-obvious logic, design choices, and flow of the source code.

31
New cards

Pair programming

A collaborative programming style in which two programmers switch between the roles of writing code and tracking or planning high level progress