Start learning →

ICSE Class 10 Classes, Encapsulation and Scope — practice questions — page 3

Explore 144 free Classes, Encapsulation and Scope questions in ICSE Class 10 Computer Applications. Open each question or exercise to read its content, reference answers and available explanation.

Practise Classes, Encapsulation and Scope with Quill →

Classes, Encapsulation and Scope questions and exercises with answers

Showing questions 61–90 of 144.

How many keywords does Java use to express its four access modifiers?Read the answer and worked solution →Which modifier applies in Java when no access specifier is written?Read the answer and worked solution →To which classes is a public Java class accessible?Read the answer and worked solution →Which access modifier cannot be applied directly to a top-level class?Read the answer and worked solution →Which access modifier besides private cannot apply to an outer class?Read the answer and worked solution →What is lexical scope strictly defined as for a program identifier?Read the answer and worked solution →What issue is prevented by maintaining separate scopes in a program?Read the answer and worked solution →How is the scope of a variable mathematically related to its lifetime?Read the answer and worked solution →What term describes a local variable masking an outer one?Read the answer and worked solution →What happens in Java if an inner block re-declares an outer local variable?Read the answer and worked solution →What scoping strategy does the Java language use for variable resolution?Read the answer and worked solution →Where are member variables declared within a Java class structure?Read the answer and worked solution →Match primitive types: 1. int: p. 32-bit int 2. char: q. Unicode 3. bool: r. Logic valRead the answer and worked solution →Match control roles: 1. if: p. Branch test 2. while: q. Loop body 3. break: r. Stop loopRead the answer and worked solution →Match basic math ops: 1. Plus: p. Addition 2. Star: q. Multiply 3. Slash: r. DivisionRead the answer and worked solution →Match loop statements: 1. for: p. Counter 2. while: q. Pre-test 3. do: r. Post-testRead the answer and worked solution →Match integer types: 1. byte: p. 8 bits 2. short: q. 16 bits 3. long: r. 64 bitsRead the answer and worked solution →Match real types: 1. float: p. 32 bits 2. double: q. 64 bits 3. int: r. IntegerRead the answer and worked solution →Match comparison ops: 1. Equal: p. Equality 2. Less: q. Smaller 3. Bang: r. UnequalRead the answer and worked solution →Match jump keywords: 1. break: p. Stop loop 2. cont: q. Next cycle 3. ret: r. Send valueRead the answer and worked solution →Match logic concepts: 1. And: p. Both true 2. Or: q. Either true 3. Not: r. Invert valRead the answer and worked solution →Match switch elements: 1. case: p. Value tag 2. break: q. Stop fall 3. def: r. FallbackRead the answer and worked solution →Match literal kinds: 1. Text: p. String val 2. Char: q. One char 3. Num: r. Digit valRead the answer and worked solution →Match cast actions: 1. Cast: p. Explicit 2. Widen: q. Automatic 3. Trunc: r. Cut fracRead the answer and worked solution →Match operator roles: 1. Mod: p. Remainder 2. Plus: q. Sum values 3. Tern: r. Trio testRead the answer and worked solution →Match loop elements: 1. Init: p. Start val 2. Test: q. Condition 3. Step: r. Update varRead the answer and worked solution →Match source tokens: 1. Word: p. Keyword 2. Name: q. Variable 3. Mark: r. SeparatorRead the answer and worked solution →Match code scopes: 1. Block: p. Braces 2. Local: q. Method 3. Field: r. Class varRead the answer and worked solution →Match bit operators: 1. Amp: p. Bit AND 2. Pipe: q. Bit OR 3. Caret: r. Bit XORRead the answer and worked solution →Match shift kinds: 1. Left: p. Double val 2. Right: q. Sign bit 3. Zero: r. Fill zeroRead the answer and worked solution →

Worked practice questions

How many keywords does Java use to express its four access modifiers?

  1. Three keywords
  2. Four keywords
  3. Five keywords
  4. Two keywords
Show answer and solution

Correct answer: A. Three keywords

Java defines four access levels using only three explicit keyword specifiers.

Open this question →

Which modifier applies in Java when no access specifier is written?

  1. package-private
  2. protected modifier
  3. public modifier
  4. private modifier
Show answer and solution

Correct answer: A. package-private

Omitting an access specifier in Java defaults member access to package-private.

Open this question →

To which classes is a public Java class accessible?

  1. Same file classes
  2. Subclasses only
  3. All other classes
  4. Native classes
Show answer and solution

Correct answer: C. All other classes

A public class is accessible to classes within its own package and across other packages.

Open this question →

How to practise

  1. Choose a Classes, Encapsulation and Scope question and try to work out your answer.
  2. Open the question to check the correct answer and read its worked solution.
  3. Continue in the app for bite-sized lessons, explanations and review with Quill. You can start without creating an account.

Put it into practice

Continue with Classes, Encapsulation and Scope practice for ICSE Class 10. Read explanations as you go. No signup form needed to start.

Practise Classes, Encapsulation and Scope →

More Computer Applications topics