Intro to Python & Java Final Exam Review Guide

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

1/25

flashcard set

Earn XP

Description and Tags

A comprehensive set of vocabulary flashcards covering Python Karel, general Python programming, and Java fundamentals based on the final exam review guide.

Last updated 5:27 AM on 6/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

Function

A reusable block of code used to break programs into smaller parts, avoid repeating code, and make programs easier to read.

2
New cards

Method

A Java function or procedure created by the programmer.

3
New cards

Loop

A programming construct that repeats a block of code.

4
New cards

Condition

A true/false test used in control structures like if statements and while loops.

5
New cards

Array

A collection of values where the index starts at 0; going past the last index causes an error.

6
New cards

Class

A blueprint for objects.

7
New cards

Object

An instance of a class.

8
New cards

Constructor

A special method used to initialize objects; it must declare instance variables.

9
New cards

Inheritance

A process where one class extends another, allowing child classes to inherit variables and methods from parent classes.

10
New cards

Instance Variable

Data belonging to one object that describes that specific object rather than the entire class.

11
New cards

Parameter

An input provided to a function or method.

12
New cards

Return Value

A value sent back by a function using the return keyword.

13
New cards

move()

A basic Karel command that moves the robot forward; it requires parentheses, correct spelling, and lowercase capitalization.

14
New cards

Top-Down Design

The process of breaking a large problem into smaller steps or helper functions.

15
New cards

Precondition

A requirement that must already be true before a function runs.

16
New cards

Postcondition

A condition that will be true after a function has finished running.

17
New cards

For Loop

A loop used to repeat code a fixed number of times; in Python it uses the range()range() function.

18
New cards

While Loop

A loop that repeats while a condition is true, such as front_is_clear()front\_is\_clear() or balls_present()balls\_present().

19
New cards

Indentation

The spacing used in Python to show code blocks; code will not work properly without it.

20
New cards

Default Parameters

Parameters in a function that have a predefined value if no argument is passed, such as def say_hi(first="John",last="Doe")def\ say\_hi(first="John", last="Doe").

21
New cards

Boolean Logic

Logic using operators such as and, or, and not, as well as inequalities like >>, <<, >=>=, <=<=, ====, and !=!=.

22
New cards

int

A Java data type used for integers, such as age=16age = 16.

23
New cards

double

A Java data type used for decimal numbers, such as price=9.99price = 9.99.

24
New cards

2D Array

An array of arrays; for example, int[][] pizza=new int[12][17]int[][]\ pizza = new\ int[12][17] creates a grid with 1212 rows and 1717 columns.

25
New cards

Binary Search

An efficient search process that requires a sorted array; it checks the middle value, eliminates half of the remaining items, and repeats.

26
New cards

Casting

Converting one data type to another, such as converting a double to an int, which removes the decimal portion.