MODULE 1: Intro to OOP Flashcards

1
Q

Is about writing procedures or methods that perform operations on the data

A

Procedural programming

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

About creating objects that contain both data and methods

A

Object-oriented programming

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

OOP helps to keep the Java cod “DRY” and makes the code easier to maintain, modify and debug

A

Don’t Repeat Yourself

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

What are the two main aspects of object-oriented programming

A

Classes and Objects

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

How does Java works?

A
  1. Source
  2. Compiler
  3. Output (code)
  4. Virtual Machine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You can run your document through this

A

Source code compiler

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

The compiler creates a new document, coded into a Java ___________

A

bytecode

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

What reads and runs the bytecode?

A

Virtual machine

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

When a Java file has a public class, the name of the public class _______

A

must be the same as the name of the file

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

After it displays the message, it advances the cursor to the beginning if the next line

A

println method

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

Does not advance the c on the cursor on next line after displaying the message

A

print method

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

In java, an _____ is created from a class

A

Object

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