Intro to Computer Science II - Midterm

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:17 PM on 10/7/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

escape sequence

characters used to represent certain special characters in a String (when printed)

2
New cards

\t

tab character

3
New cards

\n

new line character

4
New cards

\"

quotation character

5
New cards

\

backslash character

6
New cards

operators

+, -, *, /, %

7
New cards

precedence

order of operations

8
New cards

string concatenation

using + to combine strings

9
New cards

nested loop

loop placed inside another loop

10
New cards

type cast

a conversion from one type to another

11
New cards

class

program entity that either represents a program module or type of objects

12
New cards

object

entity that combines data and behavior

13
New cards

prompt

message telling user what input to type

14
New cards

fencepost loop

add a statement outside of loop to place initial post

15
New cards

do/while loop

performs its test at the end of each repetition

16
New cards

file processing syntax - to read file

Scanner input = new Scanner(new File("file name"));

17
New cards

exception for file processing at the start of the method

throws FileNotFoundException

18
New cards

line based scanner to scan entire line in a file

nextLine();

19
New cards

returns true if there are any more lines of input to read in a file

hasNextLine();

20
New cards

array

object that stores many values of same type

21
New cards

element

one value in an array

22
New cards

index

0 based integer to access an element from an array

23
New cards

syntax of a new array

type [] name = new type[length];

24
New cards

legal indexes of an array

between 0 and array's length -1

25
New cards

arrays are passed by parameters by

reference

26
New cards

private variable

not accessible outside of class

27
New cards

public variable

accessible outside of class

28
New cards

class members

can be methods or variables

29
New cards

default constructor

constructor without parameters

30
New cards

shallow copying

2 or more reference variables of same type point to same object

31
New cards

deep copying

each reference variable refers to its own object

32
New cards

is-a-relationship

hierarchical connection where one category can be treated as a specialized version of another

33
New cards

inheritance hierarchy

set of classes connected by is-a-relationships that can share same code

34
New cards

inheritance

way to form new classes based on existing classes, taking on their attributes and behaviors

35
New cards

superclass

parent class being extended

36
New cards

subclass

child class that extends the superclass and inherits its behavior

37
New cards

override

write a new version of a method in a subclass that replaces superclass's version

38
New cards

polymorphism

ability for same code to be used with different types of objects and behave differently with each

39
New cards

how many steps are in OOD simplified methodology

5