Ukuran huruf
Lembar kerjaObject oriented Programming
Total soal: 70
Worksheet time: 33mins
C++ was invented by?
Bjiorne Straustrop
Bjiorne Stroustrup
Bjarne Stroustrup
Bjiarn Straustrup
C++ is built upon the foundation of C.
True
False
Trulse
I don't know
In what year C++ was invented?
1976
1969
1967
1979
A programming mechanism that binds together code and the data it manipulates, and that keeps both safe from outside interference and misuse.
Polymorphism
Inheritance
Encapsulation
Object-Oriented Programming
(from Greek meaning “many forms”) is the quality that allows one interface to access a general class of actions.
Polymorphism
Inheritance
Encapsulation
Object-Oriented Programming
Is the process by which one object can acquire the properties of another object.
Polymorphism
Inheritance
Encapsulation
Object-Oriented Programming
Select all the given characteristic of OOP
Data structures are designed such that they characterize the objects.
C input/output is based on library and the processes are carried out by including functions.
Programs are divided into what are known as objects.
Emphasis is on data rather than procedure
C++ is procedure oriented programming & C is object oriented programming.
True
False
Trulse
I don't know
C ++ has inheritance concept but c has not inheritance concept
True
False
Trulse
I don't know
C++ is structured design, C is object oriented design
True
False
Trulse
I don't know
Procedural programming lays stress on?
Data
Functions
Object
Class
(a) can be used as a bridge to have data flow from one function to another.
(a) can be used as a bridge to have data flow from one function to another.
________ is wrapping of data into a single unit called class.
Abstraction
Polymorphism
Encapsulation
Inheritance
__________ refers to the act of representing essential details.
Polymorphism
Abstraction
Inheritance
Encapsulation
__________ is the process in which objects of one class can link and share some common properties from the objects of another class.
Abstraction
Inheritance
Polymorphism
Encapsulation
__________ is the process of using a function for more than one purpose. It allows the use of different internal structures of the object by keeping the same external interface.
Inheritance
Polymorphism
Abstraction
Encapsulation
In this process the function call is linked to the function signature at runtime.
Dynamic Binding
Static Binding
This is the logical link from caller program to the function and is established by using function name in the caller program
Dynamic Binding
Static Binding
Choose Object oriented programming languages from the following.
C
Java
BASIC
Small Talk
Which of the following adopts top down approach?
Object Oriented Programming
Procedural Programming
An _________ is an instance or of a copy of a class.
Class
Object
Attribute
A ________ is blue print that defines certain characteristics and behavior. It is simply a representation of different types of objects.
Class
Object
Attribute
Characteristics
Choose the correct titles for column 1 & Column 2
Data Abstraction & Data Hiding
Data Hiding & Data Abstraction
None Of These
(a) keyword is used for allocating dynamic memory of the object
Class is known as (a) datatype.
What large machines were created back in 1960s that manage large volume of data(numbers) efficiently?
System unit
Mainframes
Servers
These programming languages were developed and became precursor to modern Object Oriented Languages.
Modula-2
ADA
Fortran
COBOL
The Object Oriented paradigms suggest we should model instructions in a computer program with the data they manipulate and store these as components together.
TRUE
FALSE
Whatever development methodology is adopted, it is not the creation of the code that is generally the source of most problems in writing program code. Most problem arise from:
Poor analysis and design
Poor maintainability
Poor Team staffing
Insufficient funds
Allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.
Abstraction
Encapsulation
Generalisation
Polymorphism
Object
Allows us to focus on what something does without considering the complexities of how it works.
Abstraction
Encapsulation
Generalisation
Polymorphism
Object
Allows computer system to be extended, with new specialized objects being created, while allowing current parts of the system to interact with new object without concern for the specific properties of the new objects.
Abstraction
Encapsulation
Generalisation
Polymorphism
Object
A 'Class' is a software design w/c describes the general properties of something w/c the software is modelling.
TRUE
FALSE
These are created from the Class design for each actual thing.
Abstraction
Encapsulation
Generalisation
Polymorphism
Object
An _________ is an instance or of a copy of a class.
Class
Attribute
Object
(a) keyword is used for allocating dynamic memory of the object
Procedural programming lays stress on?
Data
Methods
Object
Class
________ is wrapping /hiding of data into a single unit called class
Abstraction
Polymorphism
Encapsulation
Inheritance
_________ is the process in which objects of one class can link and share some common properties from the objects of another class.
Polymorphism
Inheritance
Encapsulation
Abstraction
Which programming language is mostly used for Android Application Development?
Swift
Objective C
PHP
Java & Kotlin
Android releases since 1.5 have been given nickname derived from how?
Color
Country
Animal
Food
Which was the first purely object oriented programming language developed?
Java
SmallTalk
C++
Kotlin
Which of the following best defines a class?
Parent of an object
Instance of an object
Blueprint of an object
Scope of an object
Who invented OOP?
Alan Kay
Andrea Ferro
Dennis Ritchie
Adele Goldberg
What is the additional feature in classes that was not in structures?
Data members
Member functions
Static data allowed
Public access specifier
Which is not feature of OOP in general definitions?
Code reusability
Modularity
Duplicate/Redundant data
Efficient Code
Pure OOP can be implemented without using class in a program. (True or False)
True
False
Which Feature of OOP illustrated the code reusability?
Polymorphism
Abstraction
Encapsulation
Inheritance
Which of the two features match each other?
Inheritance and Encapsulation
Encapsulation and Polymorphism
Encapsulation and Abstraction
Abstraction and Polymorphism
Which among the following best describes encapsulation?
It is a way of combining various data members into a single unit
It is a way of combining various member functions into a single unit
It is a way of combining various data members and member functions into a single unit which can operate on any data
It is a way of combining various data members and member functions that operate on those data members into a single unit
Which among the following best describes polymorphism?
It is the ability for a message/data to be processed in more than one form
It is the ability for a message/data to be processed in only 1 form
It is the ability for many messages/data to be processed in one way
It is the ability for undefined message/data to be processed in at least one way
c++ is an _____________ , developed by ______________ , and is an extension of c language
object oriented program , Bjarane
class and data
complier, interpreter
functions comments
an object is a /an instance of _______________
class
C++
object
iostream.h
an object is a /an instance of _______________
class
C++
object
iostream.h
the wrapping up of data and functions together is called as _______________________
class
encapsulation
integer
syntax
computers work on instructions given to them in a specific language which is known as __________
programming language
bitcode
___________ is mostly first piece of code In c++
Preprocessor
compiler
true
false
______________ allocates memory nad ecides what can be stored the treserved memory
variable
boolen
operating system
float
_________ are fixed values used by a program
constant
variable
boolean
float
we need to write the c++ code using binary numbers
true
false
maybe
once we compile the C++ code and the .exe is generated,
we can run the program from DOS prompt
maybe
no
true
false
_____ is an object oriented language
c++
compiler
programming
_________ in programming come into use when we need to repeatedly execute a block of statements.
nested for loop
none
for loop
loop
The assignment operator is used to assign a data type to a variable
True
False
the <iostream .h> provides the basic INPUT and output fundamentales
true
false
maybe
3==6!=7 is an example for associative operator
True
False
None
Two expressions can be compared using ___________ operator.
Logical
Relational
Arithmetic
______ is used to input value from the user.
cin>>
cin<<
<cin>
what is the storage size of char
1 byte
10 bytes
2 bytes
8 bytes
