Tài liệu Questions to .NET and Programming in C# v2

Thảo luận trong 'Kế Toán - Kiểm Toán' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    167
    Điểm thành tích:
    0
    Xu:
    0Xu
    [TABLE=width: 607, align: left]
    [TR]
    [TD]102.
    [/TD]
    [TD=colspan: 13]If Parent is a base class and Child is its derived class then which of the following statements is not valid?
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]a)
    [/TD]
    [TD=colspan: 4]Parent p1=new Child();
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 4]Parent p1=new Parent();
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]b)
    [/TD]
    [TD=colspan: 4]Child c1=new Child();
    [/TD]
    [TD=colspan: 3]d)
    [/TD]
    [TD=colspan: 4]Child c1=new Parent();
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]103.
    [/TD]
    [TD=colspan: 13]Any class that contain one or more abstract methods must be declared as ____
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]a)
    [/TD]
    [TD=colspan: 4]Interface
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 4]Static
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]b)
    [/TD]
    [TD=colspan: 4]Abstract
    [/TD]
    [TD=colspan: 3]d)
    [/TD]
    [TD=colspan: 4]Private
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]104.
    [/TD]
    [TD=colspan: 13]Which of the following are correct statements for implementing an abstract class.
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]a)
    [/TD]
    [TD=colspan: 4]public abstract void class ClassA
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 4]abstract public ClassA
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]b)
    [/TD]
    [TD=colspan: 4]public abstract class ClassA
    [/TD]
    [TD=colspan: 3]
    [/TD]
    [TD=colspan: 4]
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD=colspan: 2]105.
    [/TD]
    [TD=colspan: 12]Which of the following methods can be called as an “operation”?
    //'ClassA.methodA()' : virtual or abstract members cannot be private
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD=colspan: 2]
    [/TD]
    [TD=colspan: 3]a)
    [/TD]
    [TD=colspan: 4]public void methodA(){}
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 2]void methodA();
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD=colspan: 2]
    [/TD]
    [TD=colspan: 3]b)
    [/TD]
    [TD=colspan: 4]public void methodA{}
    [/TD]
    [TD=colspan: 3]d)
    [/TD]
    [TD=colspan: 2]public void methodA();
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]106.
    [/TD]
    [TD=colspan: 13]Abstract methods holds only:
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]a)
    [/TD]
    [TD=colspan: 4]return type
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 4]name of method
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]b)
    [/TD]
    [TD=colspan: 4]return statements
    [/TD]
    [TD=colspan: 3]d)
    [/TD]
    [TD=colspan: 4]Parameters
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]107.
    [/TD]
    [TD=colspan: 13]A __ can be thought as a mould of a class.
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]a)
    [/TD]
    [TD=colspan: 4]abstract class
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 4]Interface
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]b)
    [/TD]
    [TD=colspan: 4]Delegates
    [/TD]
    [TD=colspan: 3]d)
    [/TD]
    [TD=colspan: 4]static class
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]108.
    [/TD]
    [TD=colspan: 13]Which of the following is a valid statement to implement class B in the class A.
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]a)
    [/TD]
    [TD=colspan: 4]class A implements B
    [/TD]
    [TD=colspan: 3]c)
    [/TD]
    [TD=colspan: 4]class A:B
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]
    [/TD]
    [TD=colspan: 2]b)
    [/TD]
    [TD=colspan: 4]class A implements class B
    [/TD]
    [TD=colspan: 3]d)
    [/TD]
    [TD=colspan: 4]class B:A
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD=colspan: 2]109.
    [/TD]
    [TD=colspan: 12]Properties provide the opportunity to protect a field in a class by reading and writing to it using accessors.
    [/TD]
    [TD][1.0]
    [/TD]
    [/TR]
    [TR]
    [TD=colspan: 2]
    [/TD]
    [TD=colspan: 4]a)
    [/TD]
    [TD=colspan: 2]True
    [/TD]
    [TD=colspan: 5]b)
    [/TD]
    [TD]False
    [/TD]
    [TD]
    [/TD]
    [/TR]
    [TR]
    [TD]110.
    [/TD]
    [TD=colspan: 13]
     

    Các file đính kèm:

Đang tải...