Fundamentals to Programming - Finals reviewer

full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/23

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.

24 Terms

1

Java input

It means receiving data from an external source, like the keyboard or a file.

2

Java output

It prints text or values to the console.

3

print()

This method prints the given text or value without moving to a new line

4

println()

It prints the text or value and then moves to the next line.

5

Sequential Structure

The program executes statements one after another in the exact order

6

Conditional Statements

These are instructions that help your program make decisions

7

If statement

It allows you to run a block of code only if a specifies condition is true

8

If Else statement

It lets you choose between two blocks of code; one runs if true, the other if false.

9

if-Else-if statement

Allows you to check multiple conditions sequentially. The first true condition’s block runs, and the rest are skipped.

10

Switch Statement

It lets you select one block of code to execute based on the value of a single variable

11

Java Loops

are used to repeat a block of code multiple times until a specific condition is met.

12

for loop

It is a control statement that lets you repeat a block of code a specific number of time.

13

While loop

it allows you to run a block of code only if a specified condition is true

14

do-while loop

It is a type of loop that executes the block first, and then checks the condition

15

Break Statement

Used to immediately exit a loop or switch case, regardless of the remaining iterations or cases.

16

Break in for loop

It is used when you want to stop looping once a condition is false

17

Break in while loop

This helps exit early based on a condition that occurs during runtime

18

Break in do-while loop

It immediately exits the loop when encountered

19

Break in switch case

It is used to terminate a case block, preventing the execution from falling through

20

Continue statement

It is used inside loops to skip the rest of the current iteration and jump to the next one

21

Continue in for loop

It skips the current iteration and moves directly to the update statement

22

Continue in while loop

It skips the remaining code and jumps to condition check

23

Continue in do-while loop

It skips at the end of the loop after executing the code

24

Return statement

It is used inside a method to send a value back to the code that called the method