Chapter 2.1 : The basic java application Flashcards

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

What is the syntax?

A

Syntax rules specify the basic vocabulary of the programming language

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

What is the meaning of a semantically correct program?

A

One that does what you want it to do

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

What are pragmatics?

A

The overall design of a program that makes it easy for people to read and understand.

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

What is a subroutine?

A

It consists of instructions for performing some task, chunked together, and given a name.

Example: System.out.println(“”)

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

What is a built in subroutine?

A

One that is already defined as part of the language and therefore automatically available for use in any program.

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

All programming in Java is done inside _______.

A

classes

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

What is the command that prints a message to the screen?

A

System.out.println()

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

What do we need in order to define a program?

A

the main subroutine

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

What is the main subroutine?

A

public static void main(String[] args) {

}

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

What does the “public” in the first line of the main method mean?

A

It means that the routine can be called from outside the program

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

What is the basic programming procedure?

A
  1. Problem Analysis- inputs, outputs, errors
  2. Algorithm construction - pseudocode
  3. Coding
  4. Testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly