PR1 computer science

0.0(0)
Studied by 3 people
0%Unit 1 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/29

flashcard set

Earn XP

Description and Tags

im gonna die

Last updated 4:15 AM on 8/27/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

30 Terms

1
New cards

block comment

the compiler will ignore any text between /* */

2
New cards

class declaration

  • identifies name, start, and end of the class

  • class name MUST match file name

3
New cards

main method

controls all the action in the program

4
New cards

System.out

object that generates output to console

5
New cards

output

  • what the computer makes from the input

  • what comes out as a result of the code

6
New cards

console

where the output is printed

7
New cards

System.out.print

  • display whatever is in () on screen but wait at the end of the line for more info to display

8
New cards

System.out.println

  • display () and move cursor to the next line

9
New cards

compiler

translates the code in the IDE into the output in the console

10
New cards

what kind of programming language is Java

a compiler and interpreter

11
New cards

primitive types

most basic data structure in Java

determines size and type of information

12
New cards

types of primitive types

  • int

  • boolean

  • char

  • double

  • float

  • byte

13
New cards

string literal

an exact sequence of characters enclosed in “ “

  • not a primitive type

14
New cards

int

represents an integer with up to 2 bil places

15
New cards

boolean

true/false

1 bit; smallest value

16
New cards

double

decimal value up to 15 places

64 bits

17
New cards

float

decimal value up to 6 places

18
New cards

char

character

*c*

19
New cards

syntax/compiler errors

identified when program is compiled

20
New cards

exception/runtime error

occurs while program is running → program terminates abnormally

21
New cards

logic errors

detected after program is run

actual output =/= anticipated output

22
New cards

differences between primitive and non-primitive types

  1. primitive types already exist in Java; non-primitive is hand-made

  2. non-primitive can use methods to perform actions, primitive can’t

23
New cards

variable

a name given to a memory location that holds a specific type of value

24
New cards

type

set of values (a domain) and a set of operations on them

25
New cards

constant/final var

cannot be changed once given a value

26
New cards

compound assignment operators

  • used in place of “=”

  • adds a value onto the stated variable

x += 7;

7 will be added onto x

27
New cards

increment/decrement operators

  • ++ adds 1 to the value of a variable/array element

  • - - subtracts 1

28
New cards

Java is __ oriented

object

29
New cards

object-oriented

organizes software design around data and objects, not functions and logic (i.e. python)

30
New cards

interpreter

translates code line by line

Explore top notes

Explore top flashcards

flashcards
MASTER RHETORIC SET
114
Updated 93d ago
0.0(0)
flashcards
Chemistryy
34
Updated 1193d ago
0.0(0)
flashcards
Unit 42
36
Updated 256d ago
0.0(0)
flashcards
Economics
178
Updated 1120d ago
0.0(0)
flashcards
abeka history 10 section 3.1
33
Updated 936d ago
0.0(0)
flashcards
Bio Unit Exam 2
153
Updated 825d ago
0.0(0)
flashcards
MASTER RHETORIC SET
114
Updated 93d ago
0.0(0)
flashcards
Chemistryy
34
Updated 1193d ago
0.0(0)
flashcards
Unit 42
36
Updated 256d ago
0.0(0)
flashcards
Economics
178
Updated 1120d ago
0.0(0)
flashcards
abeka history 10 section 3.1
33
Updated 936d ago
0.0(0)
flashcards
Bio Unit Exam 2
153
Updated 825d ago
0.0(0)