Lesson 1 Flashcards

1
Q

This is the type of programming which uses objects and classes its functioning.

A

Object-Oriented Programming

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

This is based on real world entities like inheritance, polymorphism, data hiding, etc.

A

Object-Oriented Programming

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

It aims at binding together data and function work on these data sets into a single entity to restrict their usage

A

Object-Oriented Programming

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

In object-oriented parlance, a problem is viewed in terms of what concepts?

A
  1. Objects
  2. Classes
  3. Data Abstraction
  4. Data Encapsulation
  5. Inheritance
  6. Polymorphism
  7. Dynamic Binding
  8. Message Passing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

These are the basic run-time entities in an object-oriented system.

A

Objects

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

They may represent a person, a bank account, a a table of data; they may also represent user-defined data such as vectors, time, and list.

A

Objects

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

They occupy space in memory that keeps its state and is operated on by the defined operations on the object. Each object contains data and code to manipulate the data.

A

Objects

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

This represents a set of related objects.

A

Classes

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

This talks about the object has some attributes, whose value consist much of the state of an object.

A

Classes

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

These are user defined data types that 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
11
Q

These have an interface that defines which part of an object of a class can be accessed from outside and how.

A

Classes

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

True or False:
A class body that implements the operations in the interface, and the instance variables that contain the state of an object of that class.

A

True

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

These can interact without having to know details of each other data or code

A

Objects

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

This is a data-type that has its own members

A

Class

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

It is the blueprint for an objects oriented programming language.

A

Class

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

It is the basic building block of object oriented programming in c++

A

Class

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

These are declarations that are accessible from outside the class to anyone who can access an object of this class.

A

Public

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

These are declaration that are accessible from outside the class to anyone who can access an object of this class.

A

Protected

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

These are declarations that are accessible only from within the class itself.

A

Private

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

This is the concept of hiding data and showing only relevant data top the final user. It is also an important part of object-oriented programming.

A

Data Abstraction

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

Other term of Data Abstraction

A

Data Hiding

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

This is the concept of wrapping together of data and information in a single unit.

A

Data Encapsulation

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

This is the binding together the data and related function that can manipulate the data.

A

Data Encapsulation

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

This is a class’s capacity to inherit or derive attributes or characteristics from other classes

A

Inheritance

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

This is particularly significant in an object-oriented software since it allows for reusability

A

Inheritance

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

This is a class that inherits properties from another class

A

Child Class or Subclass

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

This is the class from which the properties are inherited

A

Base Class or Parent Class

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

This allows us to create a new class from existing class

A

Inheritance

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

What are the types of inheritance

A
  1. Single Inheritance
  2. Multiple Inheritance
  3. Multi Level Inheritance
  4. Hierarchical Inheritance
  5. Hybrid Inheritance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
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
31
Q

This is an operation may exhibit different behavior in different instances

A

Polymorphism

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

This talks about the behavior depends upon the type of data used in the operation

A

Polymorphism

33
Q

This refers to the process of converting identifiers into addresses.

A

Dynamic Binding

34
Q

This is done for each variable and function.

A

Dynamic Binding

35
Q

This is associated with polymorphism and Inheritance

A

Dynamic Binding

36
Q

What is the event occurrence of Static Binding

A

Events occur at compile time

37
Q

What is the information in Static Binding

A

All Information needed to call a function is known at compile time

38
Q

What is the advantage of Static Binding

A

Efficiency

39
Q

What is the Time of Static Binding

A

Fast Execution

40
Q

What is the Alternate name of Static Binding

A

Early Binding

41
Q

What is the event occurrence of Dynamic Binding

A

Event Occurrence

42
Q

What is the Information of Dynamic Binding

A

All information need to call a function come to know at run time

43
Q

What is the advantage of Dynamic Binding

A

Flexibility

44
Q

What is the time of Dynamic Binding

A

Slow Execution

45
Q

What is the Alternate name of Dynamic Binding

A

Late Binding

46
Q

This refers to objects communicate with one another by sending and receiving information to each other

A

Message Passing

47
Q

This involves specifying the name of the object, the name of the function and the information to be sent

A

Message Passing

48
Q

True or False:
Object Oriented programming is not the right of any particular language.

A

True

49
Q

True or False:
To claim that they are object-oriented they should support several concepts of OOP.

A

True

50
Q

Depending upon the features they support, they are classified into the following categories. What are those categories?

A
  1. Object-based programming languages
  2. Object-oriented programming languages
51
Q

What are the major features required by object-based programming

A
  1. Polymorphism
  2. Data Encapsulation
  3. Data Hiding
  4. Operator Overloading
  5. Inheritance
52
Q

True or False:
Languages that support programming with objects are said to be object-based programming language

A

True

53
Q

What are the languages that support features from object-based programming

A
  • C++
  • .NET
  • Java
  • PHP
  • C#
  • Python
  • Ruby
54
Q

This is a programming language that is derived from structure programming and based upon the concept of calling procedures

A

Procedural Programming

55
Q

This programming language follows a step by step approach in order to break down a task into a set of variables and routines via a sequence of instructions

A

Procedural Programming

56
Q

This is computer programming design philosophy or methodology that organizes models software design around data or objects rather than functions and logic.

A

Object-oriented programming

57
Q

What is the approach of procedural programming

A

It follows a top-down approach

58
Q

What is the approach of object-oriented programming

A

It follows a bottom-up approach

59
Q

What is the importance of Procedural Programming

A

It gives importance to functions over data

60
Q

What is the importance of Object-oriented programming

A

It gives the importance to data over functions

61
Q

What is data hiding in procedural programming

A

There is not any proper way for data hiding.

62
Q

What is data hiding in procedural programming

A

There is a possibility of data hiding

63
Q

What is the program division in procedural programming

A

A program is divided into small programs that are referred to as functions

64
Q

What is the program division in procedural programming

A

A program is divided into small parts that are referred to as objects.

65
Q

What are the two broad programming approaches?

A
  1. Procedure-oriented Paradigm
  2. Object-oriented Paradigm
66
Q

What are the characteristics exhibited by procedure-oriented programming?

A
  1. Emphasis is on doing things
  2. Large programs are divided into smaller programs known as functions
  3. Most of the functions share global data
  4. Data move openly around the system from function to function
  5. Functions transform data from one form to another
67
Q

In this approach, you view a problem as a sequence of things to do such as reading, calculating, and printing

A

Procedure-oriented Programming Paradigm

68
Q

Conventional programming using high-level languages is commonly known as

A

Procedure-oriented Programming

69
Q

These are more vulnerable to a function’s unintended alteration.

A

Global Data

70
Q

What is a drawback in the procedural approach?

A

We do not model real world problems very well.

71
Q

What is the meaning of OOP?

A

Object-Oriented Programming

72
Q

Most experts agree that OOP involves what?

A

Abstract Data Types representing complex real world or abstract objects and organizing programs

73
Q

This refers to the process of defining ADTs

A

Abstraction

74
Q

These refers to the mechanisms that enable you to take advantage of the common characteristics of te ADTs

A

Inheritance and Polymorphism

75
Q

True or False:
OOP is only a method of designing and implementing software

A

True

76
Q

True or False:
OOP enables you to remain close to the conceptual, higher level model of the real world problem you are trying to solve

A

True

77
Q

True or False:
OOP has nothing to do with any programming language, although a programming language that supports OOP makes it easier to implement the Object-oriented techniques

A

True

78
Q
A