Object Oriented Programming Topper Series
Object Oriented Programming Topper Series
1. The variables declared inside the class are known as ____. Data
member
-
- -
-
6. Which of the following is not a type of inheritance?
-
a. It emphasizes procedure more than data. -
---
b. It offers good real world modelling.
c. It wraps up related data items and associated functions in the unit.
d. None of these
9. What do you mean by inheritance? How does this support
'reusability’?
-
-
- -
-
-
-
- -
- -
- - -
-
-
-
-
---
35
Briefly explain about any three concepts of OOP
1. Object
2. Classes
3. Data abstraction
4. Data Encapsulation
5. Modularity
6. Polymorphism
7. Inheritance
The ability of a message or data to be processed in more than
one form is called ________.
-
(a) Polymorphism (b) Encapsulation
(c) Data abstraction (d) Inheritance
_______ are individual instances of class.
object
Write any two advantages of using object oriented
--
Ans :
1. Data is given more importance -
2. Provides modular programming -
3. Can define abstract datatypes -
4.Data hinding -
5. Real life modeling L
List any four different forms of inheritance
-
-
-
1. Single inheritance - one sub class is inherited by one base
-
class .
-
-
2. Multiple inheritance - class have more than one base class .
-
-
-
3. Multilevel inheritance - a derived class created from another
derived class .
-
4. Hierarchical inheritance - more than one sub class is
-
-
-
inherited from a single base class .
5. Hybrid inheritance- combining more than one type of
-
inheritance .
-
Identify the type of inheritance that has two base classes and
--
one derived class.
(a) Multi level inheritance (b) Multiple inheritance
(c) Hierarchical inheritance (d) Hybrid inheritance
What is polymorphism in Object Oriented Programming ? Name
- -
Ans :
Polymorphism (from the Greek meaning ”having mul-
tiple forms”) is the ability to assign different meanings in
different contexts, to an entity such as object, function or
-
-
How do the access labels of class data type implement data
- -
-
hiding ?
-
Ans:
Data hiding is a process of combining data and func-
--
tions into a single unit. The access specifiers (labels) used
-
-
S
-
-
- -
- -
-- -
- -
-
-
-
-
-
Explain Compile Time Polymorphism sum (int, int)
-
=, * etc.).
O Variable in JavaScript start with
1.
vor
2. Write a JavaScript code to find sum of two numbers using function?
&
-
- -
-
- -
-
- - -
-
-
- -
-
- =>
&
- - -
-
R -
-
-
- -
-
-
-
3.
I Explain Datatypes in JavaScript?
27 5
es : + 25,
.
-
of characters enclosed
2 . String >
-
group
In Double Quotes.
- -
1-10 ?
-
-
-
-
-
--
-
Y
S = (x1 =
1
--
↓
&
i=i+ 1
-
-
-
-
=
I
Hi
S = 2x2
E
-
5. Explain events in JavaScript?
-
-
-
E
-
-
- -
-
-
6. ay whether the following statements are true or false:Web page
using two print functions
- -
-
- -
D
7. Is true or false ; isNaN("hello")
-
>
-
-
e
tasa
8. Write a JavaScript code to create a web page that displays the capital
of a State?
9. Predict the output of following :
<HTML>
<BODY>
<SCRIPT Language= "JavaScript">
var i, s = 0;
for (i = 1; i <= 100; i += 2)
s += i;
document.write("Sum = " +s);
</SCRIPT>
</BODY>
</HTML>
10. Classify the following values in JavaScript into suitable data types.
--
↓/
String Number ~
Stor, number bookn
Stres stors
1. The companies that provide web hosting services are called.____
G
-
-
The companies that provide web hosting services are called Web Hosts.
-
2. VPS is
-
accept orders for its products through a website and receive payments
online. - -
-
a. Which type of hosting is suitable for this website? Dedicated
- -
&
1. Free hosting provides web hosting services free of charge.
- -
-
2. Free web hosting is useful for sharing content on the web, among
-
organisations , etc. who are not able to spend money on web hosting.
-
-
↑
7. Emil wishes to purchase the web hosting space required to host a
- - -
website for his medical shop. List the features to be taken into
-
1. Shared Hosting : -
on one single web server and they share resources like RAM and CPU.
➔ Shared hosting is most suitable for small websites that have less
traffic.
➔ Shared servers are cheaper and easy to use
-
2. Dedicated hosting : -
➔ Dedicated web hosting is the hosting where the client leases the entire
-
web server and all its resources.
➔ The web server is not shared with any other website.
➔ Websites of large organisations, government departments, etc. where
there are large numbers of visitors, opt for dedicated web hosting.
➔ Dedicated servers provide guaranteed performance, but they are very
expensive.
3. Virtual Private Server:
➔ Some of the popular CMS software are WordPress, Drupal and Joomla
--
Responsive web design
-
➔ Flexible grid layouts set the size of the entire web page to fit the
-