TAILIEUCHUNG - Questions to .NET and Programming in C# Part 2: 101-235

Questions to .NET and Programming in C# Part 2: 101-235 101. interface intA: one, two,three{ } Which of the following statements are true for the above code? a) one ,two ,three must be c) one, two, three can be classes. classes or interfaces. b) Above code will generate an d) one, two, three must be error as multiple values after interfaces. the : is not allowed in C#. If Parent is a base class and Child is its derived class then which of the following statements is not valid? a) Parent p1=new Child(); c) Parent p1=new Parent(); b) Child c1=new Child();. | Questions to .NET and Programming in C Part 2 101- 235 101. interface intA one two three Which of the following statements are true for the above code a one two three must be classes. c one two three can be classes or interfaces. b Above code will generate an error as multiple values after the is not allowed in C . d one two three must be interfaces. 102. If Parent is a base class and Child is its derived class then which of the following statements is not valid a Parent p1 new Child c Parent p1 new Parent b Child c1 new Child _d_ Child c1 new Parent 103. Any class that contain one or more abstract methods must be declared as _ a Interface c Static b Abstract d Private 104. Which of the following are correct statements for implementing an abstract class. a public abstract void class ClassA c abstract public ClassA b public abstract class ClassA 105. Wh C ich of the following methods can be called as an operation virtual or abstract members cannot be private a public void methodA c void methodA b public void methodA d public void methodA 106. Abs tract methods holds only a return type c name of method bi return statements di Parameters 107. A __ can be thought as a mould of a class. a abstract class c Interface b Delegates d static class 108. Which of the following is a valid stat class A. ement to implement class B in the a class A implements B c class A B b class A implements class B d class B A 109. Properties provide the opportunity to protect a field in a class by reading and writing to it using accessors. a 1 True b False 110. 1. using Syst em 2. public class Parent 3. public virtual void Count 4. Console. WriteLine 100 5. 6. 7. public class Child Parent 8. 9. public override void Count 10. 1000 11. 12. public static void Main 13. Parent p new Child 14. 15. What will be the output of the above program 114. What error does the following code generates when compiled 1. abstract class

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.