Comp Sci A Unit 1 Vocab

5.0(2)
studied byStudied by 15 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/54

flashcard set

Earn XP

Description and Tags

for that first weird test

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

55 Terms

1
New cards

class

a programmer-defined blueprint from which objects are created; a list of attributes and instructions for how to create an instance of itself

2
New cards

Defining a class

defining the characteristics your class has and what objects in your class can do

3
New cards

behaviors

actions that an object can perform

4
New cards

Attributes

characteristics of an object

5
New cards

Object

An instance of the class

6
New cards

Instantiate

To call the constructor to an object

7
New cards

Constructor

a block of code that has the same name as the class and tells the computer how to create a new object

8
New cards

State

The attributes represented by the object’s instance variables

9
New cards

Used to represent behaviors

methods

10
New cards

Method

a set of instructions to perform a task

11
New cards

Dot operator

Used to call a method in class

12
New cards

String literal

a sequence of characters enclosed in quotation marks (“)

13
New cards

Argument

the specific value provided when a method or constructor is called

14
New cards

Control structure

a conditional or iteration statement which affect the flow on the problem

15
New cards

Iteration statement

a control structure that repeatedly executes a block of code repeatedly as long as a condition is true

16
New cards

Algorithm

a finite set of instructions that accomplish a task

17
New cards

Condition

determines whether or not to execute a block of code

18
New cards

What will a while loop always do

make decisions about whether or not to run the code in the body of the loop

19
New cards

Inheritance

an object-oriented programming principle where a subclass inherits the attributes and behaviors of a super class

20
New cards

Superclass

a class that can be extended to create subclasses

21
New cards

Subclass

a class that extends a super-class and inherits its attributes and behaviors

22
New cards

Tester class

The class that contains the main method from where the programs starts running

23
New cards

Method signature:

consists of a name and parameter list

24
New cards

Return type

the value returned before a method completes its execution and exits

25
New cards

Void

specifies that a method should not have a return value

26
New cards

“Public”

makes method accessible from anywhere

27
New cards

“Void”

Indicates that method has no value

28
New cards

Parameter

defines the type of value to receive when a method or constructor is called

29
New cards

Selection argument

a statement that only executes when a condition is true

30
New cards

Variables

a container that stores a value in memory, can only hold one value at a time

31
New cards

Data type

the format of the data that can be assigned to variable

32
New cards

How do you declare a variable

you write the data type and the name of the variable

33
New cards

Declaration

giving a name and data type to a variable

34
New cards

Concatenation

Joining two strings together

35
New cards

System.out.println()

prints the string and moves it to the next linede

36
New cards

decomposition

the process of breaking a problem down into smaller parts to write methods for each part

37
New cards

efficient

getting the best outcome with the least amount of waste

38
New cards

redundant code

code that is unnecessary

39
New cards

pseudocode

a plain language description of the steps in an algorithm

40
New cards

Two-way selection statement

specifies a block of code to execute when the condition is true and a block of code to execute when the condition is false

41
New cards

logical operator

an operator that returns a Boolean value

42
New cards

Selection statement

a statement that only executes when a condition is true

43
New cards

software engineer

a person who designs, develops and tests software for home school, and business use

44
New cards

class header

consists of the class keyword and the name of the class

45
New cards

comment

a text note to explain or annotate the code and ignored when the program is run

46
New cards

source code

a collection of programming commands

47
New cards

syntax

the rules for how a programmer must write code for a computer to understand

48
New cards

syntax error

a mistake in the code that does not follow a programming language’s syntax

49
New cards

object-oriented programming

an approach to creating and using models of physical or imagined objects

50
New cards

return

to exit a method and go back to the point in the program that called it with the requested value information

51
New cards

code review

the process of examining code and providing feedback to improve the quality and functionality of the program

52
New cards

commit

an operation which saves the latest changes of the code and represents a snapshot of a project

53
New cards

documentation

written descriptions of the code purpose and functionality of code

54
New cards

programming style

a set of guidelines and best practices for formatting program code

55
New cards

syntax error

a mistake in the code that does not follow a programming language’s syntax