Test #1 Flashcards

1
Q

what is automatically executed when running a java application

A

main method

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

what program won’t compile

A

one with syntax errors

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

Controls the way output is displayed

A

format method

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

what do statements end with

A

semicolon

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

whats the - indicate on a format string specifier

A

left alignment

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

what’s and interpretor

A

software that runs each bytecode instructions of a compiled java program

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

whats difference between print and println

A

println- puts next set of words on a new line
print- puts next set of words on the same line

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

Do comments effect execution of a program

A

no

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

what’s an application

A

a type of package

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

whats machine code made of

A

1s and 0s

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

What can syntax errors cause

A

problems such as stopping applications from compiling
violate rules of java
have to fixed to run

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

what method controls output display?

A

format method

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

whats compiling

A

a process that converts source code into code that the computer can understand

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

what’s a string or string argument

A

is text that’s going to show up on the screen

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

a set of steps used to solve a problem is

A

an algorithm

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

escape sequences?

A

\n- newline
\t- tab
\- backslash
"- double quotation

17
Q

Method

A

named set of statements that perform a single well defined task

18
Q

Source Code

A

a code that is typed by a programmer

19
Q

ByteCode

A

compiled java source

20
Q

/* */

A

used to enclose single or multiline comments

21
Q

//

A

used to add comment to end of statement or create a single line comment

22
Q

/** */

A

used for documentation