niusouti.com

单选题You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()APublicBPrivateCProtectedDTransientENo access modifier is required

题目
单选题
You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()
A

 Public

B

 Private

C

 Protected

D

 Transient

E

 No access modifier is required.


相似考题
更多“You want a class to have access to members of another class ”相关问题
  • 第1题:

    Which two are benefits of fully encapsulating a class?()  

    • A、 Performance of class methods is improved.
    • B、 Implementation details of the class are hidden.
    • C、 Access modifiers can be omitted on class data members.
    • D、 Code that uses the encapsulation class can access data members directly.
    • E、 Internal operation of the class can be modified without impacting clients of that class.

    正确答案:B,E

  • 第2题:

    You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()  

    • A、 public
    • B、 private
    • C、 protected
    • D、 transient
    • E、 default access

    正确答案:B

  • 第3题:

    You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?()  

    • A、 public
    • B、 private
    • C、 protected
    • D、 transient
    • E、 default access

    正确答案:C

  • 第4题:

    You are creating a job class. You want access to the detailed information for all the runs of each job in the class and every operation performed on every job in the class. Which setting will you use for the LOGGING_LEVEL parameter?()

    • A、 LOGGING_OFF
    • B、 LOGGING_RUNS
    • C、 LOGGING_FULL
    • D、 LOGGING_NULL

    正确答案:C

  • 第5题:

    You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below. * Name * AisleNumber * OnDiscount You are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?()

    • A、 public class ShoppingList : ICollection {// Class implementation }
    • B、 public class ShoppingList : IEnumerator, IEnumerable {// Class implementation }
    • C、 public class ShoppingList : Ilist {// Class implementation }
    • D、 public class ShoppingList : Enum {// Class implementation }

    正确答案:B

  • 第6题:

    单选题
    You want subclasses in any package to have access to members of a superclass. Which is the mostrestrictive access modifier that will accomplish this objective?()
    A

     Public

    B

     Private

    C

     Protected

    D

     Transient

    E

     No access modifier is qualified


    正确答案: A
    解析: 暂无解析

  • 第7题:

    单选题
    You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()
    A

     Public

    B

     Private

    C

     Protected

    D

     Transient

    E

     No access modifier is required


    正确答案: B
    解析: 暂无解析

  • 第8题:

    单选题
    You are creating a job class. You want access to the detailed information for all the runs of each job in the class and every operation performed on every job in the class. Which setting will you use for the LOGGING_LEVEL parameter?()
    A

     LOGGING_OFF

    B

     LOGGING_RUNS

    C

     LOGGING_FULL

    D

     LOGGING_NULL


    正确答案: D
    解析: 暂无解析

  • 第9题:

    多选题
    Which statements about static inner classes are true?()
    A

    A static inner class requires a static initializer.

    B

    A static inner class requires an instance of the enclosing class.

    C

    A static inner class has no reference to an instance of the enclosing class.

    D

    A static inner class has access to the non-static members of the outer class.

    E

    Static members of a static inner class can be referenced using the class name of the static inner  class.


    正确答案: C,E
    解析: 暂无解析

  • 第10题:

    单选题
    If you want to learn something, you had better pay()in class.
    A

    care

    B

    respect

    C

    attention

    D

    notion


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    You are securing a network for TestKing and want to apply an ACL (access control list) to an interface of a router. Which one of the following commands would you use?()
    A

    permit access-list 101 out

    B

    ip access-group 101 out

    C

    apply access-list 101 out

    D

    access-class 101 out

    E

    ip access-list e0 out


    正确答案: E
    解析: 暂无解析

  • 第12题:

    多选题
    Which two are benefits of fully encapsulating a class?()
    A

    Performance of class methods is improved.

    B

    Implementation details of the class are hidden.

    C

    Access modifiers can be omitted on class data members.

    D

    Code that uses the encapsulation class can access data members directly.

    E

    Internal operation of the class can be modified without impacting clients of that class.


    正确答案: A,D
    解析: 暂无解析

  • 第13题:

    Which statements about static inner classes are true?()

    • A、 A static inner class requires a static initializer.
    • B、 A static inner class requires an instance of the enclosing class.
    • C、 A static inner class has no reference to an instance of the enclosing class.
    • D、 A static inner class has access to the non-static members of the outer class.
    • E、 Static members of a static inner class can be referenced using the class name of the static inner  class.

    正确答案:C,E

  • 第14题:

    You want to limit access to a method of a public class to members of the same class. Which access modifier accomplishes this objective?()  

    • A、 Public
    • B、 Private
    • C、 Protected
    • D、 Transient
    • E、 No access modifier is required

    正确答案:B

  • 第15题:

    You want to provide a tool that allows users quick access to form modules, by listing them in an Explorer-style interface. Which reusable component do you use?()

    • A、ActiveX controls 
    • B、Calendar Class 
    • C、Standard Object Library 
    • D、Picklist Class 
    • E、Wizard Class 
    • F、Navigator Class

    正确答案:F

  • 第16题:

    You are creating a Windows Forms application by using the .NET Framework 3.5. You plan to develop a new control for the application.The control will have the same properties as a TextBox control.You need to ensure that the control has a transparent background when it is painted on form.You want to achieve this goal by using the minimum amount of development effort.What should you do?()

    • A、Create a new class that is derived from the Control class.Call the SetStyle method in the constructor.
    • B、Create a new class that is derived from theTextBox control class.Override the OnPaint method in the constructor.
    • C、Create a new class that is derived from the Control class.Set the BackColor property of the control to Transparent.Call the SetStyle method in the constructor.
    • D、Create a new class that is derived from theTextBox control class.Set the BackColor property of the control to Transparent in the constructor.Call the SetStyle method in the constructor.

    正确答案:D

  • 第17题:

    You want a class to have access to members of another class in the same package. Which is the most restrictive access modifier that will accomplish that will accomplish this objective?()

    • A、 Public
    • B、 Private
    • C、 Protected
    • D、 Transient
    • E、 No access modifier is required.

    正确答案:E

  • 第18题:

    单选题
    You want to provide a tool that allows users quick access to form modules, by listing them in an Explorer-style interface. Which reusable component do you use?()
    A

    ActiveX controls 

    B

    Calendar Class 

    C

    Standard Object Library 

    D

    Picklist Class 

    E

    Wizard Class 

    F

    Navigator Class


    正确答案: D
    解析: 暂无解析

  • 第19题:

    单选题
    You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access modifier that will accomplish this objective?()
    A

     Public

    B

     Private

    C

     Protected

    D

     Transient

    E

     No access modifier is qualified.


    正确答案: B
    解析: 暂无解析

  • 第20题:

    单选题
    You want to limit access to a method of a public class to members of the same class. Which access accomplishes this objective?()
    A

     public

    B

     private

    C

     protected

    D

     transient

    E

     default access


    正确答案: C
    解析: 暂无解析

  • 第21题:

    单选题
    You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below. * Name * AisleNumber * OnDiscount You are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?()
    A

     public class ShoppingList : ICollection {// Class implementation }

    B

     public class ShoppingList : IEnumerator, IEnumerable {// Class implementation }

    C

     public class ShoppingList : Ilist {// Class implementation }

    D

     public class ShoppingList : Enum {// Class implementation }


    正确答案: D
    解析: 暂无解析

  • 第22题:

    单选题
    You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?()
    A

     public

    B

     private

    C

     protected

    D

     transient

    E

     default access


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?()
    A

     public

    B

     private

    C

     protected

    D

     transient

    E

     default access


    正确答案: E
    解析: 暂无解析