.NET pen test
Name: Date:
1. Fill in the blank: (1) Object-oriented language has ________ 性, ________, ________.
(2) The object that can be used to traverse access to access needs to the _______________________________________.
(3) list five main objects in ADO.NET _______________________________________________________________________.
2. Unscheduled items:
(1) The following narrative is correct:
A. You can have virtual methods in the interface. B. A class can implement multiple interfaces. C. The interface cannot be instantiated. D. The implementation of the implementation can be included in the interface.
(2) Read the record from the database, the methods you may use are:
A. ExecutenonQuery B. ExecuteScalar
C. Fill D. EXECUTEREADER
3. Briefly describe the access rights of private modes of Private, Protected, Public, and Internal.
4. Write a SQL statement: Take out the 31nd to 40th record in Table A (SQLServer, with automatic growth ID as the primary key, note: ID may not be continuous.)
5. Enumerally list several ways to pass the value between the ASP.NET page.
6. Write the output result of the program
Class class1 {private string str = "class1.str"; private int i = 0; static void stringconvert (string stringconvert) {str = "string being control.";} static void stringconvert (class1 c) {C.STR = " STRING BEING Converted. "} static void add (INT i) {i ;} static void addwithref (Ref INT i) {i ;} static void main () {INT I1 = 10; INT I2 = 20;