Intro to Java Flashcards

1
Q

Find the length of a string

A

.length

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Make a note that the computer ignores

A

//

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Ask the user to say yes or no

A

confirm()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Request in input from the user

A

prompt()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a string?

A

Letters, spaces, numbers

””

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the boolean values?

A

True or False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

prints to the console

A

console.log()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Greater Than

A

>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Less Than

A

<

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Less than or equal to

A

<=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Greater than or equal to

A

> =

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Equal to

A

===

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Not equal to

A

!==

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Syntax of an “if” statement

A

if()
{
code
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Syntax of an “If else” statement

A
If()
{
code
}
else
{
code
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

%

A

Modulo

divides the first operator by the second operator and gives the remainder

17
Q

How do you return a substring?

A

“string”.substring(X,Y)

The variables are numbers
X = the beginning of the substring
Y = the end of the substring

The first “cut” is to the left of the first character. Counting starts at “0”.

18
Q

How do you declare a variable?

A

var varName = data type

variable names are case sensitive

19
Q

What kinds of scope are there?

A

Global scope

Local scope

20
Q

Global scope

A

A variable declared outside a function can be accessed anywhere once declared.

21
Q

Local scope

A

A variable defined inside a function is local and cannot be accessed outside the function.

22
Q

JDK

A

Java Development Kit

The software for developers who want to write Java programs.

23
Q

The software for developers who want to write Java programs

A

JDK

Java Development Kit

24
Q

JRE

A

Java runtime environment.

The software for consumers who want to run Java programs. Contains the virtual machine but not the compiler.

25
Q

The software for people who want to run Java programs.

A

JRE

Java runtime environment.

26
Q

SE

A

Standard Edition

The platform for use on desktops and simple server applications.

27
Q

The platform for use on desktops and simple server applications.

A

SE

Standard Edition

28
Q

EE

A

Enterprise Edition

The Java platform for complex server applications.

29
Q

The Java platform for complex server applications.

A

EE

Enterprise Edition

30
Q

ME

A

Micro Edition

The Java platform for use on cell phones and other small devices.

31
Q

The Java platform for use on cell phones and other small devices.

A

ME

Micro Edition

32
Q

Java 2

A

J2

An outdated term that describes Java versions from 1998 to 2006.

33
Q

An outdated term that describes Java versions from 1998 to 2006.

A

J2

Java 2

34
Q

SDK

A

Software Development Kit

An outdated term that describes the JDK from 1998 to 2006

35
Q

An outdated term that describes the JDK from 1998 to 2006

A

SDK

Software Development Kit

36
Q

Update

A

u

Oracle’s term for a bug fix release.

37
Q

u

A

Update

Oracle’s term for a bug fix release.

38
Q

NetBeans

A

Oracle’s integrated development environment

39
Q

Oracle’s integrated development environment

A

NetBeans