UOW Week 2 Flashcards

1
Q

public

A

is an access specifier that indicates that main() is visible

outside the class

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

static

A

static indicates that you can call the method without creating an instance of a class

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

main

A

main is the method where the program starts

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

what are the roles or the java compilier and jvm?

A

java compiler converts source code (xxx.java)to byte code instructions, saved as xxx.class, JVM converts byte code to machine code,

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

How do programs communicate?

A

Everything is under the control of the operating system, programs communicates by making system calls

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

void

A

indicates the method does not return any information

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

What are the 6 main types of variables?

A

int, float, double, char, string, boolean

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

what are +. -, *. / called in java

A

arithmetic operators and expressions

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

What is the purpose of the UML?

A

Used to understand the flow of programs and allow visualization to cover conceptual ideas

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

what is the printf() method?

A

a flexible way to output numbers, characters and text in a specific format using only one statement

printf(ā€œ%f miles equal to %f kilometres \nā€, miles, kms);

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

what is the purpose of the enun data type?

A

to define collections of constants

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

How to creat an object in java?

A

Circle res = new Circle(radius);

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

What are methods?

A

A method is a block of statements that can be executed by calling it from some other place in the program

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

What is a method of parameters?

A

Information can be passed into a method by using parameters which as a variables inside the method

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