HCL Company Programming

Mary is making a database of animals in a zoo and their properties. The possible
animals are dog, lion and zebra. Each one has as attributes isHerbivorous, colour and
isNocturnal. She uses the object oriented programming paradigm for this. How will she
conceptualize the system?
(a) class: Animal; objects: dog, lion and zebra; data members: is Herbivorous, colour and is
Nocturnal
(b)class: Animal; objects: is Herbivorous, colour and is Nocturnal; data
members: dog, lion and zebra
(c)classes: dog, lion and zebra; objects: Animal; data members: is Herbivorous, colour and is
Nocturnal
d)None of these

Read Solution (Total 2)

HCL Other Question

8) Which of the following options is responsible for taking files and objects from different
locations and combining them for execution?
(a)Linker (b)Loader (c)Interconnecting compiler (d)Interpreter
Ravi has a bag full of 10 nestle and 5 cadbury chocolates out of these, he draws two chocolates. what is the probability that he would get atleast one nestle chocolates?

a.19/21
b.3/7
c.2/21
d.1/3