Fundamentals of Programming - Quiz 2

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

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.

29 Terms

1
New cards

Scanner class

Used to get user input, and it is found in the java.util package

2
New cards

nextBoolean()

Reads a boolean value from the user

3
New cards

nextByte()

Reads a byte value from the user

4
New cards

nextDouble()

Reads a double value from the user

5
New cards

nextFloat()

Reads a float value from the user

6
New cards

nextInt()

Reads a int value from the user

7
New cards

nextLine()

Reads a string value from the user

8
New cards

nextLong()

Reads a long value from the user

9
New cards

nextShort()

Reads a shoirt value from the user

10
New cards

Operators

Symbols that perform operations on variables and values.

11
New cards

+

12
New cards

-

13
New cards

*

14
New cards

/

15
New cards

%

16
New cards

Modulus operator

This divides two numbers and returns the remainder

17
New cards

Assignment operator

Used to assign values to variables.

18
New cards

Relational operators

Used to compare two values or variables. The return value of a comparison is either true or false. These values are known as Boolean values.

19
New cards

Equal to

20
New cards

Not equal to

21
New cards

Greater than

22
New cards

Lesser than

23
New cards

Greater than or equal to

24
New cards

Lesser than or equal to

25
New cards

Logical operators

Used to determine the logic between variables or values. Can also test for true or false values.

26
New cards

Logical AND

27
New cards

Logical OR

28
New cards

Logical NOT

29
New cards

Methods

A block of code which only runs when it is called.