Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Samenvatting

Summary Complete Course of Theoretical Questions and Answers in Computers

Beoordeling
-
Verkocht
-
Pagina's
14
Geüpload op
01-02-2021
Geschreven in
2020/2021

These are the most important theoretical questions and answers in Computers picked out from the syllabus of 10th Grade to help the child in scoring 100% Marks. Only 54 Questions will help your child do the paper in a perfect manner. No need to waste time in reading the entire book when you have these notes.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

Computer Notes – Class X


Questions and answers –
Some of the answers to the questions given below require examples. Remember, whether it asked
or not, giving an example with the answer (where it is possible) is mandatory to score cent percent
marks.


Q1. What is object-oriented programming?
Ans. In object-oriented programming, the data required for the program is divided and stored into
restricted, independent and discrete area of computer memory called object which can be accessed
directly, only by certain specific procedures defined in class to which the object belong to. The data of an
object cannot be accessed directly by procedures of other class’ objects. However, the data of one object
can be accessed indirectly by invoking or calling its procedures by procedures of other class’ object. To
make an application run, objects of different classes call or invoke one another’s procedures.



Q2. What do you mean by sending or passing messages?
Ans. The objects of different classes collaborate and interact by sending or passing messages to one
another. To make an application run, objects of different classes call or invoke one another’s procedures.


Q3. What are the four OOP principles? Explain each of them.
Ans. The four OOP principles are encapsulation, abstraction, inheritance and polymorphism.
Encapsulation:
Encapsulation is the characteristic that data in an object can be accessed only by the method or code that
is defined in its class. This mechanism keeps both data and code safe from outside interference and
misuse. This is achieved by bundling data and code in the class.
Abstraction:
Abstraction is a concept of hiding unnecessary details and representing only the very essential features.
Abstraction permits the programmer to look at something without being concerned with the internal
details.
Inheritance:
Inheritance is the process of creating new class, called subclass (also called derived class, extended class
or child class), from existing class called the superclass (also called base class or parent class). The
subclass inherits fields and methods of the superclass but can add new fields and methods of its own.
Polymorphism:
The ability of an object to respond, each in its own way, to identical methods calls is called polymorphism.

, Method overloading and method overriding are two of the ways that Java implements polymorphism.
This can only happen when there is parent and child relationship between classes using inheritance.


Q4. Give at least one way as to how Java implements functional abstraction.
Ans. Java implements functional abstraction through methods in a class.


Q5. What do mean by subclass and super class?
Ans. A class that is derived from another class is called a subclass. The class from which the subclass is
derived is called a superclass.


Q6. Give an advantage of inheritance in Java.
Ans. Inheritance permits code reusability. Reusing existing code reduces program-development time,
increases program’s reliability and saves money.


Q7. How is polymorphism implemented in Java?
Ans. Method overloading is one of the ways that Java implements polymorphism.


Q8. What do you mean by data hiding?
Ans. Protecting objects’ instance variables from direct access by methods outside the class is called data
hiding.


Q9. Give the general definition of class and its object.
Ans. In real world a class defines the properties (or characteristics or attributes or state) and behaviour
that will be shared by a set of objects. Each object of a class contains the properties and exhibits the
behaviour defined by the class. From programming point of view, an object stores its properties in
instance variables and exposes its behaviour through methods.


Q10. What is the difference between a class and its object from programming point of view?
Ans. A class is a template, model, or blueprint for its objects. A class defines the data required for the
program and certain specific codes that can directly access that data. The data required for the program
is divided and stored into restricted, independent and discrete area of computer memory called object
which can be accessed directly, only by certain specific codes defined in class to which the object belong
to. The variables defined within a class may be instance variables or static variables or both, collectively
called fields. The code is contained within methods.


Q11. What do you mean by members of the class?
Ans. Fields (instance variables and static variables) and methods defined within a class are called
members of the class.

Geschreven voor

Instelling
Middelbare school
Vak
School jaar
4

Documentinformatie

Geüpload op
1 februari 2021
Aantal pagina's
14
Geschreven in
2020/2021
Type
SAMENVATTING

Onderwerpen

$3.98
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
utkarshsrivastava

Maak kennis met de verkoper

Seller avatar
utkarshsrivastava
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
5 jaar
Aantal volgers
1
Documenten
3
Laatst verkocht
5 jaar geleden

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen