software development exam 1 review

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

1/40

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.

41 Terms

1
New cards

what is the relationship between bytes?

1024

2
New cards

what is RAM?

a volatile form of storage that contains data and programs that are being used

3
New cards

what are storage devices?

a permanent form of storage

4
New cards

why is RAM important for programming?

it runs heavy integrated development environments, stores code and its variables, and multitasks

5
New cards

what is a program?

a specific set of ordered operations for a computer to perform

6
New cards

what is a machine language?

a computer’s native language, in the form of binary code

7
New cards

what is an assembly language?

uses a short descriptive word to represent each of the machine language instructions

8
New cards

what is a high-level language?

a platform independent, english-like, easy to learn and use program

9
New cards

why java?

it’s a poerful and general-purpose programming language

10
New cards

what are some important characteristics of java?

it’s object-oriented, portable, and interpreted

11
New cards

what is an integrated development environment?

a software application providing facilities for developing programs

12
New cards

what is an application programming interface? (API)

contains predefined classes and interfaces for developing programs

13
New cards

what is a class?

a building block in object-oriented programming

14
New cards

what is a method?

a block of code including a collection of statements to perform an operation

15
New cards

what are some java syntax rules?

every statement ends with “;”

16
New cards

what is a syntax error?

not following the rules of a programming language

17
New cards

what are some runtime errors?

causes the program to terminate abnormally

18
New cards

what are some logic errors?

program not working as intented

19
New cards

what is % in java?

the remainder

20
New cards

what is the order of precedence in java?

follows PEMDAS

21
New cards

what is a variable?

used to store values to be used later in a program

22
New cards

how do you import a scanner?

import java.util.Scanner;

Scanner input = new Scanner(System.in);

23
New cards

what is a boolean data type?

evaluates true or false — compares two values

24
New cards

what does the not (!) operator do?

reverses the value of the logical expression

25
New cards

what is the and operator represented by?

&&

26
New cards

what is the or operator represented by?

||

27
New cards

what does he min method return?

the minimum number of two numbers

28
New cards

what does the max method return?

the maximum number of two numbers

29
New cards

what does the abs method return?

the absolute value of the number

30
New cards

what does the random method return?

a random double value greater than or equal to 0 and less than 1

31
New cards

how do you use the random method?

a + Math.random() * b

32
New cards

why do we use repetition?

it helps us deal with the unknown, allows us to efficiently use variables, can input, add, and average multiple numbers using a limited value of variables

33
New cards

how do you write a while statement?

while (expression) {

//Loop body

statement(s);

}

34
New cards

what is an infinite loop?

continues to execute endlessly

35
New cards

what is a counter-controlled loop?

you know how many times the loop should execute

36
New cards

what is a sentinel-controlled loop?

you don’t know how many time the loop will execute, but you know the last value

37
New cards

what is a flag-controlled loop?

a boolean variable controls the loop

38
New cards

how do you write a for statement?

for (initial statement; loop condition; update statement) {

//Loop body

statement(s);

}

39
New cards

what are the for loop control statements?

initial statement, loop condition, and update statement

40
New cards

what is a nested control structure?

using a control structure within a control structure

41
New cards

what is a break in a loop?

immediate termination of the loop