Unit 1 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

The initial ____ ________ is created when you create a new file on CodeHs

A

Java Skeleton

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

The first part of the Java Skeleton is the?

A

Programs class (Class Program)

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

Everything in the class program is wrapped in?

A

Curly Brackets [ ]

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

The name of the class must match the?

A

Java File

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

The second point that is vital to the Java Skeleton is the?

A

The Main Method

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

What is the Main Method?

A

The point where Java programs start their execution

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

If the Main Method is not included…

A

There will be an error

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

The Main Method will read and execute any code that is enclosed in…

A

Two curly brackets
{
}

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

Print statements are…

A

Used to print calculations, messages, alerts, and other output to the console for other users to see

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

The semicolon is needed in ( ; ) in…

A

Any individual lines of code

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

The code for writing a print statement is?

A

System.out.println(¨Hello World¨)

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

The system class method println is broken up into….

A

Two componets
1) Class Method
2) System Print Method Input

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

The class method in an print statement..

A

Indicates to java how the message should be output into the console program

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

The system print method input…

A

Contains the content that will be displayed in the console

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

A string literal is a…

A

Sequence of characters enclosed in double quotations “ ” (Anything you can type on a keyboard can be included in a string literal as long as it is ENCLOSED IN DOUBLE QUOTATIONS)

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

What are all the data types you know so far?

A

Strings (str)
Integers (int)
Decimals (double)
Characters (char)
Booleans (true/false)

17
Q

Data types can be stored in…

A

Variables

18
Q

A variable is like a box with a name and is used in order to store…

A

Values

19
Q

All variables have a…

A

Name, type, and value

20
Q

In order to use a variable it must be ________ and __________

A

Declared & Initialized