Coding final

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

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.

40 Terms

1
New cards

program

A sequence of instructions that specifies how to perform a computation

2
New cards

Method

named sequence of statements

3
New cards

class

collection of methods

4
New cards

constant variables

variable that doesnt change

5
New cards

package

collection of related classes

6
New cards

modulus operator

divides two numbers and computes the remainder

7
New cards

recursive method

method that invokes itself

8
New cards

value method

methods that return values

9
New cards

return type

type of return values

10
New cards

return value

value thats returned inside a method

11
New cards

arrays

sequence of values

12
New cards

elements

values in a array

13
New cards

Index of an array

an integer variable or value used to indicate an elements of an array

14
New cards

traversal

looping through the elements of an array

15
New cards

primitive data types

int, double, boolean

16
New cards

reference data types

Scanner and String

17
New cards

5 basic instuctions in programming

input, output, math, decisions, repetition

18
New cards

why we create methods in java

to group and oranginze code

19
New cards

best practices of writing methods

incremental development and temporary variable

20
New cards

what is debugging? Ways to debug a code.

Checking for bugs and debug by coding in increments

21
New cards

describe ways to do incremental development?

write code and test it

22
New cards

what are data types?

value that a data type stores

23
New cards

identify data types?

int, boolean, double, char, string, array

24
New cards

What are escape sequences? provide samples

Represent special characters inside a string

25
New cards

what are variables?

named storage location to store data

26
New cards

Value

the actual information

27
New cards

parameters

method that stores its arguments

28
New cards

arguments

The actual values or expressions passed into a method during a call. These values initialize the method's parameters and must match the specified type and order

29
New cards

2 types of packages

standard and user defined

30
New cards

what is the scanner class used for?

user inputs

31
New cards

what methods do you use with the scanner class to get user input?

next int, next double, next line

32
New cards

identify rational operators

==, <, >, <=, >=

33
New cards

logical operators

&&,||,!

34
New cards

conditonal statements and when do you use them?

true or false statements

35
New cards

How to do conditional with strings

if (Varname.equals(“fruit”))

36
New cards

Reference to an array

arrayB = arrayA

37
New cards

Copy of an Array

arrayB = Arrays.copyOf(arrayA) ORRRR a for loop

38
New cards

while loop

checks condition first

39
New cards

for loop

does evreything in one statement

40
New cards

do while loop

does evreything and then checks it