APCSA Chapter 8: Improving User Interface

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/29

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.

30 Terms

1
New cards

what are 2 examples of programs that repeat

- count controlled

- sentinel controlled

2
New cards

define query controlled input

the program will ask the user if they want to continue after values are inputted and the program has run

3
New cards

what is it called when the program will ask the user if they want to continue after values are inputted and the program has run

query controlled input

4
New cards

what are the 4 parts of a menu driven program

- begins with a menu

- user will pick an option

- program will run

- menu will be displayed again

5
New cards

what do you call a program that, begins with a menu, user will pick an option, program will run, and menu will be displayed again

menu driven program

6
New cards

where is the printf statement located

in the java.io package

7
New cards

what are printf statements used for

used to print out number formats

8
New cards

what are used to print out number formats

printf statements

9
New cards

what is the letter for floating point number

f

10
New cards

what does the letter f mean

floating point number

11
New cards

what is the letter for decimal integer

d

12
New cards

what does the letter d mean

decimal integer

13
New cards

what is the letter for string

s

14
New cards

what does the letter s mean

string

15
New cards

what is used for the % sign

%%

16
New cards

what does %% mean

% sign

17
New cards

what is used for a new line

%n

18
New cards

what does %n mean

new line

19
New cards

(not neccessarily in notes) what should you always make sure matches up in printf statements

number of variables and type match

20
New cards

what does %- do

left justify (spaces go right instead of left)

21
New cards

what makes something left justified

%-

22
New cards

what does %, do

decimal separator (ex. 123,456)

23
New cards

what is the decimal separator

%,

24
New cards

what does %0 do

shows leading 0 (ex. 00012)

25
New cards

what shows the leading zeros

%0

26
New cards

in Scanner, which methods detect if data entered is in an invalid format

nextDouble, nextInt

27
New cards

what does try-catch do

detect an error, recover and the program will keep going

28
New cards

what can detect an error, recover and the program will keep going

try-catch statement

29
New cards

what exception is thrown when an invalid data type is used

Exception e

30
New cards

what exception is thrown when trying to divide by 0

Arithmetic Exception e

Explore top flashcards