Package & Interfaces

Package & Interfaces

5th Grade

10 Qs

quiz-placeholder

Similar activities

iGCSE ICT: Chapter 1

iGCSE ICT: Chapter 1

KG - University

12 Qs

WD Backend Level 1 Quiz

WD Backend Level 1 Quiz

5th - 8th Grade

12 Qs

React 2

React 2

1st - 5th Grade

12 Qs

Computer Science Very Hard

Computer Science Very Hard

1st - 12th Grade

10 Qs

Animation Class 5

Animation Class 5

1st - 6th Grade

9 Qs

AppsLab_Q3

AppsLab_Q3

1st Grade - Professional Development

12 Qs

Flutter Basics

Flutter Basics

KG - University

15 Qs

Computer Expert?

Computer Expert?

KG - Professional Development

10 Qs

Package & Interfaces

Package & Interfaces

Assessment

Quiz

Created by

Goutam Dhar

Computers

5th Grade

20 plays

Hard

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which option is correct for creating a package named s3cs ?

create package s3cs;

package s3cs;

define package 3cs;

s3cs;

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which is true about package?

packages can appear in a hierarchy.

package help to control the visibility of the program.

package helps to group related classes and interfaces.

All of the above

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

To use a class or a package from the library which keyword is used

include

package

import

export

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

A class member can be accessed only by a class in the same package. Which is the suitable access specifier?

public

default

private

protected

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

A class member cannot be accessed by any other class inside or outside the package. Which is the suitable access specifier?

private

public

default

protected

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following help to access all the classes in the package p1?

import p1;

import p1.*;

import p1.all;

import p1.A;

7.

MULTIPLE SELECT QUESTION

5 mins • 1 pt

Which of the following help to use class Sample from package adm? (choose all appropriate options)

import admSample;

import adm.Sample;

import Sample;

import adm.*;

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?