English

Rupa Pandit solutions for Computer Applications [English] Class 10 ICSE chapter 6 - Encapsulation [Latest edition]

Advertisements

Chapters

Rupa Pandit solutions for Computer Applications [English] Class 10 ICSE chapter 6 - Encapsulation - Shaalaa.com
Advertisements

Solutions for Chapter 6: Encapsulation

Below listed, you can find solutions for Chapter 6 of CISCE Rupa Pandit for Computer Applications [English] Class 10 ICSE.


Exercises
Exercises [Pages 147 - 149]

Rupa Pandit solutions for Computer Applications [English] Class 10 ICSE 6 Encapsulation Exercises [Pages 147 - 149]

Choose the correct option.

1. (i)Page 147

The access specifier that gives visibility to the world and to the objects is ______.

  • default

  • private

  • public

  • protected

1. (ii)Page 148

The access specifier that gives visibility to the package and to all the subclasses and the objects is ______.

  • default

  • private

  • public

  • protected

1. (iii)Page 148

The access specifier that gives visibility to the class only is ______.

  • default

  • private

  • public

  • protected

1. (iv)Page 148

The access specifier that gives visibility to the package and to the objects is ______.

  • default

  • private

  • public

  • protected

1. (v)Page 148

The access specifier that is applicable in case of inheritance is:

  • default

  • private

  • public

  • protected

1. (vi)Page 148

Class variables ae also known as ______ variables.

  • publlic

  • instance

  • static

  • default

1. (vii)Page 148

Variables which are defined in a method are called ______ method.

  • local

  • formal

  • actual

  • argument

1. (viii)Page 148

The most restricted access specifier is:

  • default

  • private

  • public

  • protected

1. (ix)Page 148

The members under default can be accessed by the objects of the class.

  • True

  • False

1. (x)Page 148

The number of copies a static member makes is ______.

  • one

  • two

  • none

  • infnite

1. (xi)Page 148

A class encapsulate Data Members that contains the information necessary to represent the class and Member methods that perform operations on the data member.

What does a class encapsulate?

  • Information and operation

  • Data members and Member methods

  • Data members and information

  • Member methods and operation

Answer the following in brief.

2. (i)Page 148

What are access specifiers?

2. (ii)Page 148

Name the access specifiers provided by Java.

2. (iii)Page 148

What are class variables?

2. (iv)Page 148

What are instance variables?

2. (v)Page 148

What are local variables?

3. (i)Page 148

State True or False.

A local variable can exist outside its method as well.

3. (ii)Page 148

State True or False.

Member data and methods declared under protected access specifier are availlable to members of its own class and to its subclasses and not to any other class.

3. (iii)Page 149

State True or False.

Member data and methods declared under private access specifier are available to all other methods from any other class.

3. (iv)Page 149

State True or False.

Member data and methods declared under default access specifier are available to all other methods of the same class and other classes of the same package.

3. (v)Page 149

State True or False.

The members under protected access specifier cannot be accessed by the objects of the class.

4.Page 149

Given the following program, identify the local variable, instance variable and argument variable. 

importjava.util.*;
class Factor
{
    int N;
    void fnIsFactor(int f)
    {
       if (N%f =0)
       {
          System.out.print(f +" is a Factor of "+ N);
       }
       else
       {
          System.out.print(f + " is a Not a Factor of "+ N);}
       }
    }
    void fnAllFactors()
    {
       int r = 0;
       System.out.println("\n Factors of " + N);
       for(r = 1; r <=N; r++)
       {
         if (N % r =0)
         {
           System.out.print(r + "");
         }
       }
    }
    void main()
    {
         Scanner sc = new Scanner(System.in);
         System.out.println("Enter value for N :");
         N = sc.nextInt();
         System.out.println("Enter value for L :");
         int L = sc.nextInt();
         fnIsFactor(L);
         fnAllFactors();
    }
}

Solutions for 6: Encapsulation

Exercises
Rupa Pandit solutions for Computer Applications [English] Class 10 ICSE chapter 6 - Encapsulation - Shaalaa.com

Rupa Pandit solutions for Computer Applications [English] Class 10 ICSE chapter 6 - Encapsulation

Shaalaa.com has the CISCE Mathematics Computer Applications [English] Class 10 ICSE CISCE solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. Rupa Pandit solutions for Mathematics Computer Applications [English] Class 10 ICSE CISCE 6 (Encapsulation) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.

Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. Rupa Pandit textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.

Concepts covered in Computer Applications [English] Class 10 ICSE chapter 6 Encapsulation are .

Using Rupa Pandit Computer Applications [English] Class 10 ICSE solutions Encapsulation exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in Rupa Pandit Solutions are essential questions that can be asked in the final exam. Maximum CISCE Computer Applications [English] Class 10 ICSE students prefer Rupa Pandit Textbook Solutions to score more in exams.

Get the free view of Chapter 6, Encapsulation Computer Applications [English] Class 10 ICSE additional questions for Mathematics Computer Applications [English] Class 10 ICSE CISCE, and you can use Shaalaa.com to keep it handy for your exam preparation.

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×