Lesson 1 Flashcards

1
Q
  • A programming paradigm aimed at improving the clarity, quality, and development time of a computer program by making extensive use of subroutines, block structures and for and while loops.
  • Also known as procedural programming that uses the principle of Top-Down Design Principle frist created by Dr. Edsger W. Dijkstra in 1960s.
A

Structured Programming

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

This paradigm uses the following control structure:
- Sequence
- Selection / Condition
- Iteration / Loops

A

Structured Programming

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

A programming paradigm based on the concept of “objects which are data structure that contain data, in the form of fields, often known as attributes, and in the form of procedures, often known as methods.

A

Object Oriented Programming

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

What are the two types of Programming Paradigm?

A
  • Structured Programming
  • Object Oriented Programming
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This is the basic runtime entities in an object-oriented system. They may represent a person, a place, a bank account, a table of data or any item.

A

Objects

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

Objects can interact without having to know the details of each other’s data or code.

A

True

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

This may be though of as a ‘data type’ and an object as a ‘variable’ of that data type. Once the ___ has been defined we can create any number of objects belonging to that ___.

A

Class

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

A collection of objects of similar type.

A

Class

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

Are user-defined data-types and behave like the built-in types of a programming language.

A

Classes

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

What are the basic concepts of object-oriented programming?

A
  • Encapsulation
  • Abstraction
  • Inheritance
  • Polymorphism
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The wrapping up of data and methods into a single unit (called class) is known as ____.

A

Encapsulation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • The data is not accessible to the outside world and only those methods, which are wrapped in the class, can access it.
  • This makes it possible for objects to be treated like “black boxes” each performing a specific task without any concern for internal implementation.
A

Encapsulation

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

The insulation of the data and direct access by the program is called ________.

A

Data Hiding

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

It refers to the act of representing essential features without including the background details or explanation.

A

Abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • It is the process by which objects of one class acquire the properties of objects of another class.
  • This supports the concept of t he hierarchal classification.
A

Inheritance

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

In OOP, the concept of inheritance provides the idea of reusability. This means that we can add additional features to an existing one.

A

Inheritance

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

In Java, the derived class is known as ______

A

Subclass

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

This means the ability to take more than one form

A

Polymorphism

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q
  • This plays an important role in allowing objects having different internal structures to share the same external interface.
  • Is extensively used in implementing inheritance.
A

Polymorphism

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

Give the Benefits of OOP

A
  • Eliminate redundancy of codes.
  • Possible to have multiple objects to coexist without any interference.
  • It is easy to partition the work in a project based on objects.
21
Q

Give applications of OOP:

A
  • Real-time Systems
  • Simulation and Modeling
  • CAD System
  • Object-oriented databases
22
Q

An object-oriented language. It enables us not only to organize our program code into logical units called objects but also to take advantage of encapsulation, inheritance, and polymorphism.

23
Q

Who Developed Java?

A

Dr. James Gosling

24
Q

When was Java released? And who owns it by that time?

A

1995 by Sun Microsystem

25
Q

Who initiated Java language project in June 1991?

A

James Gosling, Mike Sheridan, and Patrick Naughton

26
Q

Gosling designed Java with a ______ style syntax that system and application programmers would find familiar.

27
Q

Famous Java Quote:

A

Write Once, Write Everywhere

28
Q

Java was released open source on this date:

A

November 13, 2006

29
Q

Who acquired Sun Microsystems in 2009-2010?

A

Oracle Corporation

30
Q

6 Types of Java Applications

A
  1. Java Applet
  2. Application
  3. JAR (Java Archive)
  4. Servlet
  5. Swing
  6. EJB (Enterprise Java Beans)
31
Q

Give the Characteristics of Java

A
  • Simple
  • Object-oriented
  • Distributed
  • Interpreted
  • Robust
33
Q

Give the Benefits of Java

A
  • It comes with a large set of classes and methods, the Java API that can be used without having to develop as nyc code “from scratch”
  • Open Source
  • Taught as a first language yet still used by professionals
34
Q

A ___ is fundamental unit of program structure in Java. All Java program are ____.

35
Q

This is the starting point of program execution of Java program

A

Public static void main(String[] args)

36
Q

The keyword ____ mean any variables of value that is being declared in the method can be used anywhere in out program.

37
Q

This statement will display or print the message:

A

System.out.println()

38
Q
  • A ____ is a value that can be changed depending on condition or information passed to the program.
  • This can be reused through out your program, instead of having to type out the actual value all over and over again.
39
Q

It refers to those variable whose value does not change during program execution.

A

Constant Variables

40
Q

_____ are names given to various program elements such as variables functions and arrays.

41
Q

A set of data that specifies the possible range of values of the set, the operations that can be performed on the values, and the way in which the values are stored in memory.

42
Q

Give the 8 data types:

A
  • byte
  • short
  • int
  • long
  • float
  • double
  • boolean
  • char
43
Q

Four categories of Java Operators:

A
  • Arithmetic
  • Relational
  • Logical
  • Assignment
44
Q

Give examples of Arithmetic Operators:

A

+, -, *, /, %, ++, —

45
Q

Give examples of Relational Operators:

A

==, !=, >, <, >=, <=,

46
Q

Give examples of Logical Operators:

47
Q

Give examples of Assignment Operators:

A

=, +=, -=, /=, %=