wayground logo

Lembar Kerja Gratis yang Dapat Dicetak

Ukuran huruf

S
M
L
XL
Lembar kerja

Object oriented Programming

Total soal: 70

Worksheet time: 33mins

Nama
Kelas
Tanggal
1.

C++ was invented by?

a)

Bjiorne Straustrop

b)

Bjiorne Stroustrup

c)

Bjarne Stroustrup

d)

Bjiarn Straustrup

2.

C++ is built upon the foundation of C.

a)

True

b)

False

c)

Trulse

d)

I don't know

3.

In what year C++ was invented?

a)

1976

b)

1969

c)

1967

d)

1979

4.

A programming mechanism that binds together code and the data it manipulates, and that keeps both safe from outside interference and misuse.

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Object-Oriented Programming

5.

(from Greek meaning “many forms”) is the quality that allows one interface to access a general class of actions.

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Object-Oriented Programming

6.

Is the process by which one object can acquire the properties of another object.

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Object-Oriented Programming

7.

Select all the given characteristic of OOP

a)

Data structures are designed such that they characterize the objects.

b)

C input/output is based on library and the processes are carried out by including functions.

c)

Programs are divided into what are known as objects.

d)

Emphasis is on data rather than procedure

8.

C++ is procedure oriented programming & C is object oriented programming.

a)

True

b)

False

c)

Trulse

d)

I don't know

9.

C ++ has inheritance concept but c has not inheritance concept

a)

True

b)

False

c)

Trulse

d)

I don't know

10.

C++ is structured design, C is object oriented design

a)

True

b)

False

c)

Trulse

d)

I don't know

11.

Procedural programming lays stress on?

a)

Data

b)

Functions

c)

Object

d)

Class

12.

(a)   can be used as a bridge to have data flow from one function to another.

13.

(a)   can be used as a bridge to have data flow from one function to another.

14.

________ is wrapping of data into a single unit called class.

a)

Abstraction

b)

Polymorphism

c)

Encapsulation

d)

Inheritance

15.

__________ refers to the act of representing essential details.

a)

Polymorphism

b)

Abstraction

c)

Inheritance

d)

Encapsulation

16.

__________ is the process in which objects of one class can link and share some common properties from the objects of another class.

a)

Abstraction

b)

Inheritance

c)

Polymorphism

d)

Encapsulation

17.

__________ 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.

a)

Inheritance

b)

Polymorphism

c)

Abstraction

d)

Encapsulation

18.

In this process the function call is linked to the function signature at runtime.

a)

Dynamic Binding

b)

Static Binding

19.

This is the logical link from caller program to the function and is established by using function name in the caller program

a)

Dynamic Binding

b)

Static Binding

20.

Choose Object oriented programming languages from the following.

a)

C

b)

Java

c)

BASIC

d)

Small Talk

21.

Which of the following adopts top down approach?

a)

Object Oriented Programming

b)

Procedural Programming

22.

An _________ is an instance or of a copy of a class.

a)

Class

b)

Object

c)

Attribute

23.

A ________ is blue print that defines certain characteristics and behavior. It is simply a representation of different types of objects.

a)

Class

b)

Object

c)

Attribute

d)

Characteristics

24.

Choose the correct titles for column 1 & Column 2

a)

Data Abstraction & Data Hiding

b)

Data Hiding & Data Abstraction

c)

None Of These

25.

(a)   keyword is used for allocating dynamic memory of the object

26.

Class is known as (a)   datatype.

27.

What large machines were created back in 1960s that manage large volume of data(numbers) efficiently?

a)

System unit

b)

Mainframes

c)

Servers

28.

These programming languages were developed and became precursor to modern Object Oriented Languages.

a)

Modula-2

b)

ADA

c)

Fortran

d)

COBOL

29.

The Object Oriented paradigms suggest we should model instructions in a computer program with the data they manipulate and store these as components together.

a)

TRUE

b)

FALSE

30.

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:

a)

Poor analysis and design

b)

Poor maintainability

c)

Poor Team staffing

d)

Insufficient funds

31.

Allows us to consider complex ideas while ignoring irrelevant detail that would confuse us.

a)

Abstraction

b)

Encapsulation

c)

Generalisation

d)

Polymorphism

e)

Object

32.

Allows us to focus on what something does without considering the complexities of how it works.

a)

Abstraction

b)

Encapsulation

c)

Generalisation

d)

Polymorphism

e)

Object

33.

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.

a)

Abstraction

b)

Encapsulation

c)

Generalisation

d)

Polymorphism

e)

Object

34.

A 'Class' is a software design w/c describes the general properties of something w/c the software is modelling.

a)

TRUE

b)

FALSE

35.

These are created from the Class design for each actual thing.

a)

Abstraction

b)

Encapsulation

c)

Generalisation

d)

Polymorphism

e)

Object

36.

An _________ is an instance or of a copy of a class.

a)

Class

b)

Attribute

c)

Object

37.

(a)   keyword is used for allocating dynamic memory of the object

38.

Procedural programming lays stress on?

a)

Data

b)

Methods

c)

Object

d)

Class

39.

________ is wrapping /hiding of data into a single unit called class

a)

Abstraction

b)

Polymorphism

c)

Encapsulation

d)

Inheritance

40.

_________ is the process in which objects of one class can link and share some common properties from the objects of another class.

a)

Polymorphism

b)

Inheritance

c)

Encapsulation

d)

Abstraction

41.

Which programming language is mostly used for Android Application Development?

a)

Swift

b)

Objective C

c)

PHP

d)

Java & Kotlin

42.

Android releases since 1.5 have been given nickname derived from how?

a)

Color

b)

Country

c)

Animal

d)

Food

43.

Which was the first purely object oriented programming language developed?

a)

Java

b)

SmallTalk

c)

C++

d)

Kotlin

44.

Which of the following best defines a class?

a)

Parent of an object

b)

Instance of an object

c)

Blueprint of an object

d)

Scope of an object

45.

Who invented OOP?

a)

Alan Kay

b)

Andrea Ferro

c)

Dennis Ritchie

d)

Adele Goldberg

46.

What is the additional feature in classes that was not in structures?

a)

Data members

b)

Member functions

c)

Static data allowed

d)

Public access specifier

47.

Which is not feature of OOP in general definitions?

a)

Code reusability

b)

Modularity

c)

Duplicate/Redundant data

d)

Efficient Code

48.

Pure OOP can be implemented without using class in a program. (True or False)

a)

True

b)

False

49.

Which Feature of OOP illustrated the code reusability?

a)

Polymorphism

b)

Abstraction

c)

Encapsulation

d)

Inheritance

50.

Which of the two features match each other?

a)

Inheritance and Encapsulation

b)

Encapsulation and Polymorphism

c)

Encapsulation and Abstraction

d)

Abstraction and Polymorphism

51.

Which among the following best describes encapsulation?

a)

It is a way of combining various data members into a single unit

b)

It is a way of combining various member functions into a single unit

c)

It is a way of combining various data members and member functions into a single unit which can operate on any data

d)

It is a way of combining various data members and member functions that operate on those data members into a single unit

52.

Which among the following best describes polymorphism?

a)

It is the ability for a message/data to be processed in more than one form

b)

It is the ability for a message/data to be processed in only 1 form

c)

It is the ability for many messages/data to be processed in one way

d)

It is the ability for undefined message/data to be processed in at least one way

53.

c++ is an _____________ , developed by ______________ , and is an extension of c language

a)

object oriented program , Bjarane

b)

class and data

c)

complier, interpreter

d)

functions comments

54.

an object is a /an instance of _______________

a)

class

b)

C++

c)

object

d)

iostream.h

55.

an object is a /an instance of _______________

a)

class

b)

C++

c)

object

d)

iostream.h

56.

the wrapping up of data and functions together is called as _______________________

a)

class

b)

encapsulation

c)

integer

d)

syntax

57.

computers work on instructions given to them in a specific language which is known as __________

a)

programming language

b)

bitcode

58.

___________ is mostly first piece of code In c++

a)

Preprocessor

b)

compiler

c)

true

d)

false

59.

______________ allocates memory nad ecides what can be stored the treserved memory

a)

variable

b)

boolen

c)

operating system

d)

float

60.

_________ are fixed values used by a program

a)

constant

b)

variable

c)

boolean

d)

float

61.

we need to write the c++ code using binary numbers

a)

true

b)

false

c)

maybe

62.

once we compile the C++ code and the .exe is generated,

we can run the program from DOS prompt

a)

maybe

b)

no

c)

true

d)

false

63.

_____ is an object oriented language

a)

c++

b)

compiler

c)

programming

64.

_________ in programming come into use when we need to repeatedly execute a block of statements.

a)

nested for loop

b)

none

c)

for loop

d)

loop

65.

The assignment operator is used to assign a data type to a variable

a)

True

b)

False

66.

the <iostream .h> provides the basic INPUT and output fundamentales

a)

true

b)

false

c)

maybe

67.

3==6!=7 is an example for associative operator

a)

True

b)

False

c)

None

68.

Two expressions can be compared using ___________ operator.

a)

Logical

b)

Relational

c)

Arithmetic

69.

______ is used to input value from the user.

a)

cin>>

b)

cin<<

c)

<cin>

70.

what is the storage size of char

a)

1 byte

b)

10 bytes

c)

2 bytes

d)

8 bytes