ITEC30 (Sir Jonel) Flashcards

1
Q

Allows Java Application to display information in the command prompt / MS-DOS Prompt

A

Standard Output Object

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

Standard Output Object
2 TYPES

A

System.out.print()
System.out.println()

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

does not position the cursor to beginning of the next line after printing

A

System.out.print()

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

position the cursor to the beginning of the next line after printing

A

System.out.println()

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

Class that allows to easily display dialog box containing information

A

JOptionPane.showMessageDialog()

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

to refer to the standard output device

A

System.out

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

to refer to the standard input device.

A

System.in

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

is not directly supported in Java

A

Console input

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

to create an object to read input from System.in

A

Scanner class

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

creates an object of the Scanner type.

A

Scanner(System.in)

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

declares that input is a variable whose type is Scanner.

A

Scanner sc

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

creates a Scanner object and assigns its reference to the variable input.

A

Scanner sc = new Scanner(System.in)

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

This class is used to display simple dialog boxes to get the text input from the user.

method always returns the user’s input as a String.

A

JOptionPane.showInputDialog()

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

is a static method of JOptionPane class. This method uses single parameter that specifies the prompting message that is displayed in the dialog box.

A

showInputDialog

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

refers to a style of programming

A

Programming Paradigm

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

2 Types of Programming Paradigm

A

Imperative Paradigm
Declarative Paradigm

17
Q

Allows splitting those instructions into procedures

A

Procedural programming (Imperative)

18
Q

is the most popular programming paradigm

A

OOP (Object Oriented Programming Paradigm)

19
Q

Key Characteristics of Object Oriented Programming

A

Class, Abstraction, Encapsulation, Inheritance, Polymorphism

20
Q

is a computer programming that organizes software design around data, or objects, rather than functions and logic

A

OOP (Object Oriented Programming)

21
Q

is a programming paradigm that relies on the concept of classes and objects

A

OOP (Object Oriented Programming)

22
Q

are user defined data types that act as the blueprint for individual objects, attributes and methods

A

Classes

23
Q

are instances of a class created with specifically deifened data

A

Objects

24
Q

are functions that are defined inside a class that describe the behaviors of an object

A

Methods

25
Q

are defined in the class template and represent the state of an object

A

Attributes

26
Q

4 Object Oriented Programming Principle

A
  1. Abstraction
  2. Encapsulation
  3. Inheritance
  4. Polymorphism
27
Q

Objects only reveal internal mechanisms that are relevant for the use of other objects, hiding any unnecessary implementation class

A

Attribute

28
Q

This principle states that all important information is contained inside an object and only select information is expposed

A

Encapsulation

29
Q

Classes can reuse code from other. Relationships and subclasses between objects can be assigned, enabling developers to reuse common logic while still maintaining a unique hierarchy

A

Inheritance

30
Q

is the ability for different objects to respond differently to the same message.

A

Polymorphism

31
Q

Popular pure OOP Language

A

Ruby, Scala, Jade and Emerald

32
Q

is credited as being the first object oriented programming language

A

Simula

33
Q

Programming languages designed primarily for OOP

A

Java, Python, C++

34
Q

Other Programming languages that pair with OOP

A

Visual Basic, ,NET PHP, JavaScript

35
Q

Benefits of Object Oriented Programming

A
  1. Modularity
  2. Reusability
  3. Productivity
  4. Easily upgradable and scalable
  5. Interface descripition
  6. Security
  7. Flexibilty