0% found this document useful (0 votes)
206 views9 pages

Icse Class 10 Chapter 1

The document covers fundamental concepts of computer programming, focusing on object-oriented programming (OOP) principles such as encapsulation, inheritance, and polymorphism. It includes solved questions, fill-in-the-blanks, and short answer type questions related to computer languages and programming paradigms. Additionally, it provides insights into the differences between procedure-oriented programming and object-oriented programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views9 pages

Icse Class 10 Chapter 1

The document covers fundamental concepts of computer programming, focusing on object-oriented programming (OOP) principles such as encapsulation, inheritance, and polymorphism. It includes solved questions, fill-in-the-blanks, and short answer type questions related to computer languages and programming paradigms. Additionally, it provides insights into the differences between procedure-oriented programming and object-oriented programming.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

CHAPTER 1

MIND DRILL

Solved Questions

A. Tick (✔) the correct answer.

1. Which of the following is the use of computer language?


a. Giving instructions to a computer
b. Talk to people
c. Writing programs in computer
d. Both a and c (✔)

2. Which of the following is a set of statements used to perform a specific task?


a. Statement
b. Program (✔)
c. Both a and b
d. None of these

3. Which of the following is an example of a low-level language?


a. Machine language (✔)
b. C++
c. Java
d. Python

MIND DRILL

A. Tick (✔) the correct answer.

4. Which of the following is an example of a procedure-oriented language?


a. C++
b. Java
c. FORTRAN (✔)
d. None of these

5. Which of the following types of languages are machine-independent?


a. Low-level language
b. High-level language (✔)
c. Both a and b
d. None of these
CHAPTER 1
6. Wrapping up data and member functions together into a single unit is called ………….
a. Encapsulation (✔)
b. Data abstraction
c. Inheritance
d. Polymorphism

7. If the class Dog inherits the properties of the class Animal, then which of the following
is the name given to the Dog class?
a. Super class
b. Sub class (✔)
c. Child class
d. Both b and c

8. Which of the following is the main purpose of data abstraction?


a. Hiding essential information (✔)
b. Reducing the complexity of a program
c. Using properties of another class
d. None of these

9. Which of the following is the meaning of 'poly' in the word polymorphism?


a. Many (✔)
b. Forms
c. One form

10. A capsule is related to which of the following principles of object-oriented


programming?
a. Inheritance
b. Polymorphism
c. Encapsulation (✔)
d. Data abstraction

B. Fill in the blanks.

1. The class that inherits the features of another class is called sub class.

2. The word Polymorphism comes from two Greek words poly and morphe.

3. Encapsulation hides the internal details of how an object does something for security
reasons.
CHAPTER 1
4. Polymorphism is the ability of an object to take on many forms.

5. Procedures are also known as methods.

6. Object-oriented programming follows a bottom-up approach.

7. The base class is also known as Super class.

8. The objects that are created by a class are called instances.

9. The other name of sub class is child class.

10. The meaning of the first 'O' in OOP is object.

C. Short Answer Type Questions.

1. What is a computer language?


Ans. A computer language is the means by which instructions and data are transmitted
to the computer.

2. Write any two advantages of Procedure-Oriented Programming.


Ans.

o It is easy to follow the path of program flow.

o A smaller amount of memory is required than other types of coding.

3. Name two object-oriented programming languages.


Ans. Two Object-oriented languages are C++ and Java.

Answers for Multiple-Choice Questions:

1. d

2. b

3. a

4. c

5. b

6. a

7. d
CHAPTER 1
8. b

9. a

10. c

Answers for Fill in the Blanks:

1. sub class

2. Poly, morphe

3. Encapsulation

4. Polymorphism

5. methods

6. Object-oriented

7. Super class

8. instances

9. child

10. object

Difference between Super class and Sub class

Super class Sub class

The class from which properties are The class which inherits the
inherited to another class. properties of another class.

Sub class is also known as derived


Super class is known as the base class.
class.

Principles of OOP

Ans: Encapsulation, Data Abstraction, Inheritance, and Polymorphism are the four
principles of object-oriented programming.
CHAPTER 1
What do you mean by data abstraction?

Ans: Data abstraction is the property by which the essential features of a class are
represented without informing about the background details i.e., non-essential units are
hidden from the user.

What do you mean by inheritance?

Ans: Inheritance is the process of using the properties of a class in another class.

What do you mean by encapsulation?

Ans: The wrapping up of data members and member methods together into a single unit
is called encapsulation.

What is the meaning of ‘morphe’ in polymorphism?

Ans: The word 'morphe' is a Greek word that means 'forms'.

Unsolved Questions

A. Tick (✔) the correct answer.

1. Which of the following is not a principle of OOP?


a. Polymorphism
b. Data abstraction
c. Inheritance
d. Class

2. Which of the following are the advantages of polymorphism?


a. Codes can be reused
b. It makes the program run faster
c. Both a and b
d. None of these
CHAPTER 1
3. Which of the following principles of OOP allows the concept of reusability?
a. Polymorphism
b. Data abstraction
c. Interface
d. Encapsulation

4. Which of the following is the main element of object-oriented programming?


a. Object
b. Method
c. Procedures
d. None of these

5. Procedural programming splits the programming code into small parts called
a. Procedures
b. Objects
c. Class
d. None of these

B. Fill in the blanks.

1. A __________ paradigm is a way of programming.

2. __________ has global data sharing of functions.

3. A __________ language is a programming language that is machine-dependent.

4. The concept of __________ is a good feature for avoiding data redundancy.

5. Java is an example of __________ programming language.

C. Short Answer type questions.

1. What is the use of inheritance?

2. What does POP stand for?

3. Define polymorphism with a real-life example.

4. What are the disadvantages of Procedure-Oriented Programming?


CHAPTER 1
5. What are the differences between POP and OOP?

Previous Years' Questions

SECTION A

1. The process of binding the data and method together as one unit is called as: [2022]
a. Encapsulation
b. Inheritance
c. Polymorphism
d. Dynamic binding
Ans: a. Encapsulation

2. The program code written in any high-level language to solve a problem is: [2022]
a. Object code
b. Source code
c. Bytecode
d. Machine code
Ans: b. Source code

3. Choose the odd one: [2022]


a. Robust
b. Platform Independent
c. Inheritance
d. Multithreading
Ans: c. Inheritance

4. Read the following case study and answer the questions below by choosing the correct
option: [2022]

Java compilation is different from the compilation of other high-level languages. Other
high-level languages use interpreters or compilers but in Java, the source code is first
compiled to produce an intermediate code called the bytecode. This bytecode is platform
independent and is a highly optimized set of instructions needed to be executed by Java
in the runtime system, called Java Virtual Machine (JVM). JVM is a Java interpreter
loaded in the computer memory as soon as Java is loaded. NM is different for different
platforms.

(i) Full form of NM is:


a. Java Visual Machine
CHAPTER 1
b. Joint Vision Mechanism
c. Java Virtual Machine
d. Java Virtual Mechanism
Ans: c. Java Virtual Machine

(ii) JAVA code is:


a. Compiled and interpreted
b. Only compiled
c. Only interpreted
d. Translated
Ans: a. Compiled and interpreted

(iii) JAVA source code is compiled to produce:


a. Object code
b. Bytecode
c. Final code
d. Machine code
Ans: b. Bytecode

(iv) NM in Java is an:


a. Interpreter
b. Compiler
c. Intermediate code
d. High-level language
Ans: a. Interpreter

5. Name any two basic principles of object-oriented programming. [2019]


Ans: Encapsulation and Inheritance.

6. Define abstraction. [2018]


Ans: Data abstraction is the property by which the essential features are shown without
knowing the background details.

7. What is inheritance? [2017]


Ans: Inheritance is the process of using the properties of a class in another class. It
allows you to use the attributes and behavior of a class into another class.
CHAPTER 1
8. Define encapsulation. [2016]
Ans: Encapsulation is one of the basic concepts in object-oriented programming. The
wrapping up of data members and member methods together into a single unit is called
encapsulation.

9. Name any two Object-Oriented Programming principles. [2016]


Ans:
i. Inheritance
ii. Encapsulation

10. State the Java concept that is implemented through: [2013]


i. A superclass and a subclass.
ii. The act of representing essential features without including background details.
Ans:
i. Inheritance
ii. Abstraction

You might also like