CHAPTER 2 Flashcards

1
Q

Different types of Programming Paradigms

A

Compiled language
Interpretative language
Application language
Scripting language
Integrative Coding

Classes and Object
Constructor
Destructor
Inheritance
Abstraction
Polymorphism
Interfaces

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

HOW DOES COMPILER WORKS?

A

SOURCE CODE -> COMPILER -> MACHINE CODE –> OUTPUT

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

WHAT IS THE OTHER TERM FOR PROGRAM?

A

it is also called BINARY, EXECUTABLE

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

HOW DOES INTERPRETER WORKS?

A

SOURCE CODE –> INTERPRETER –> OUTPUT

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

what is the fastest to run a program?

A

COMPILED PROGRAM

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

what is the slowest to run a program?

A

INTERPRETED PROGRAM

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

is a language in which the implementations execute instructions directly without earlier compiling a program into machine language.

A

Interpretative language

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

A language used to write instructions for the computer. It lets the programmer express data processing in a symbolic manner without regard to machine-specific details. From Source Code to Machine Language.

A

Application language

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

is a programming language that employs a high-level construct to interpret and execute one command at a time.

(In general, it is easier to learn and faster to code in than more structured and compiled languages such as C and C++.)

A

Scripting language

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

is a technique which enable dynamic website and application development through the integration of programming and mark up languages into one for example html with XML, JavaScript and CSS, XML with PHP, C# with XML, XML with XSLT and so on to meet the interactive and specific dynamic end-user requirements.

A

Integrative Coding

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

A _____defines _____properties including a valid range of values, and a default value. A _____also describes object behavior. An ______is a member or an “instance” of a class. An ______has a state in which all of its properties have values that you either explicitly define or that are defined by default settings.

A

Classes and Object

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

What is Class?

A

Class - (is like a PERSON)
Attributes - (NAME, AGE, GENDER, ETC.)
Functionality - (WALK, EAT, SLEEP, WORK)

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

is a special method of a class or structure in object-oriented programming that initializes a newly created object of that type. Whenever an object is created, the __________ is called automatically.

(is a special type of member function that is called automatically when an object is created; a _________has the same name as that of the class and it does not have a return type. )

A

constructor

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

TWO TYPES OF CONTRUCTORS

A

DEFAULT CONSTRUCTOR
PARAMETERIZED CONSTRUCTOR

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

is a member function that is invoked automatically when the object goes out of scope or is explicitly destroyed by a call to delete.

(has the same name as the class, preceded by a tilde ( ~ ). )

A

Destructor

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

in Java is a concept that acquires the properties from one class to other classes; for example, the relationship between father and son. __________ in Java is a process of acquiring all the behaviors of a parent object.

A

Inheritance

17
Q

TWO CATEGORIES OF INHERITANCE

A

Subclass (child) - the class that inherits from another class.
Superclass (parent) - the class being inherited from

18
Q

is a process of hiding the implementation details and showing only functionality to the user.

(Another way, it shows only essential things to the user and hides the internal details, for example, sending SMS where you type the text and send the message.)

A

Abstraction

19
Q

as related to genomics, refers to the presence of two or more variant forms of a specific DNA sequence that can occur among different individuals or populations.

A

Polymorphism

20
Q

in the Java programming language is an ABSTRACT type that is used to describe a behavior that classes must implement. They are similar to protocols. ___________ are declared using the interface keyword, and may only contain method signature and constant declarations.

A

Interfaces