Intro to computer programming final exam review

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

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

23 Terms

1
New cards

What happens when a program is compiled

It is checked for errors

2
New cards

What character ends a Java command

;

3
New cards

Strings are made up of what characters

All

4
New cards

What does the compiler do with comments? What is the purpose of comments

Completely ignores comments to give information to others

5
New cards

What are the rules for legal Java variable names

No spaces, can’t start with a number

6
New cards

What keyword is used to make a variable constant

Final

7
New cards

Difference between integer and double division

Integer will give and integer answer, double will give a double answer

8
New cards

3 ways to add or subtract one from a variable

++ a=+1

9
New cards

What is casting used for, double to int and int to double

Widening and narrowing

10
New cards

Difference between object and class

Class is like recipe and object is like the dish

11
New cards

What are escape characters

\n

\”

\\

\t

12
New cards

How is + used (2)

++ (“”+int)

13
New cards

Methods of string class

Substring(a)

Substring(a,b)

Length()

To upper/lower case

14
New cards

Method of math class

Sqrt

Pow

Random

15
New cards

Primitive data type

Boolean, int, double

16
New cards

Variable assigned as null

=null

17
New cards

If statements

If true continue

18
New cards

If else statements

If false, this runs

19
New cards

If if else if statements

Final if everything is false

20
New cards

Nested if statements

21
New cards

And/or logic statements

&& || !

22
New cards

Truth tables

A||B A&&B

23
New cards

While loops and for loops

While(a>2){

For(int a= 1;a>2;a++