1. Select fill in blank questions (2 points for each blank question, totally 60 points)
1. Select () when operating the SQL Server database ().
A) SQL Server. NET Framework data provider;
B) OLE DB. NET Framework data provider;
C) ODBC. NET Framework data provider;
D) Oracle. NET Framework data provider;
2. Among the following options, () is the reference type.
A) Enum type
B) struct type
C) string type
D) int type
3. Which of the following statements about the hidden code files in ASP. NET is true ()
A) the logic of a web form page program consists of Code. The Code is created to interact with the form. The programming logic is unique in a file that is different from the user interface. This file is called a "code hidden" file. If it is created in C #, it will have the ". ascx. cs" extension.
B) The code hidden files on all web forms pages in the project are compiled into. EXE files.
C) The code hidden files of all web forms pages in the project are compiled into the dynamic link library (. dll) file of the project.
D) None of the above are correct.
4. Which of the following statements is false ()
A) abstract classes are supported in C ++ but not in C.
B) In C ++, class members can be declared in header files and class members can be defined in CPP files. in C #, class members are declared and defined at the same place without header files.
C) in C #, you can use the new modifier to explicitly hide the members inherited from the base class.
D) in C #, override must be added before the virtual functions of the base class to be redefined in the derived class.
5. C # data types include ()
A) value type and call type;
B) Value Type and reference type;
C) reference type and link type;
D) link type and call type;
6. Which of the following statements is false ()
A) the class cannot be inherited multiple times, but the interface can;
B) abstract classes can define members, but interfaces cannot;
C) abstract classes and interfaces cannot be instantiated;
D) A class can have multiple base classes and multiple base interfaces;
7. How to load an XML document in the DOM ()
A) Save Method
B) Load Method
C) loadxml Method
D) Send Method
8. Which of the following statements about constructors is true ()
A) constructors can declare the return type.
B) The constructor cannot be modified using private.
C) The constructor must be the same as the class name.
D. The constructor cannot contain parameters.
9. The following are some enumeration definitions in C #. The incorrect usage is ()
A) Public Enum var1 {Mike = 100, Nike = 102, Jike}
B) Public Enum var1 {Mike = 100, Nike, Jike}
C) Public Enum var1 {Mike =-1, Nike, Jike}
D) Public Enum var1 {Mike, Nike, Jike}
10. int [] [] myarray3 = new int [3] [] {New int [3] {5, 6, 2}, new int [5] {6, 9, 7, 8, 3 }, new int [2] {3, 2 }}; the value of myarray3 [2] [2] is ().
A) 9
B) 2
C) 6
D) Cross-border
11. An interface is a reference type. You can declare () in the interface, but cannot declare public domains or private member variables.
A) methods, attributes, indexers, and events;
B) methods, attribute information, and attributes;
C) Indexer and field;
D) Events and fields;
12. In the ASP. NET Framework, server controls are specially designed to work with web forms. There are two types of server controls ()
A) HTML controls and Web controls
B) HTML controls and XML controls
C) XML controls and Web controls
D) HTML controls and IIS controls
13. In ASP. NET, register a user control on the web forms page and specify the control name as "Mike". The correct registration command is ()
A) <% @ register tagprefix = "Mike" tagname = "space2" src = "myx. ascx" %>
B) <% @ register tagprefix = "space2" tagname = "Mike" src = "myx. ascx" %>
C) <% @ register tagprefix = "SpaceX" tagname = "space2" src = "Mike" %>
D) None of the above
14. In ADO. net, the following statements about the executenonquery () method and executereader () method of the command object are false ().
A) SQL statements for insert, update, delete, and other operations are mainly executed using the executenonquery () method;
B) executenonquery () method returns the number of rows affected by SQL statement execution.
C) the SQL statement of the select operation can only be executed by the executereader () method;
D) The executereader () method returns a datareder object;
15. The following ASP. NET Statement (B) correctly creates a connection with the SQL Server 2000 database.
A) sqlconnection con1 = new connection ("Data Source = localhost; Integrated Security = sspi; initial catalog = mydb ");
B) sqlconnection con1 = new sqlconnection ("Data Source = localhost; Integrated Security = sspi; initial catalog = mydb ");
C) sqlconnection con1 = new sqlconnection (Data Source = localhost; Integrated Security = sspi; initial catalog = mydb );
D) sqlconnection con1 = new oledbconnection ("Data Source = localhost; Integrated Security = sspi; initial catalog = mydb ");
16. Which of the following statements about the properties and events of the Toolbar Control in winform is false ().
A) The buttons attribute indicates all toolbar buttons of the Toolbar Control.
B) The buttonsize attribute indicates the size of the toolbar buttons on the toolbar control, such as the height and width.
C) The dropdownarrows attribute indicates whether to display the down arrow keys next to the toolbar button (which has a column value that needs to be displayed in the following PULL mode ).
D) The buttonclick event is triggered when you click anywhere on the toolbar.
17. When executing a stored procedure in ADO. net, if you want to set the output parameters, you must set both the direction and () of the parameters and the parameter size if necessary.
A) size;
B) upper limit;
C) Initial value;
D) type;
18. If you set formboderstyle of the form to none ().
A) The form does not have borders and cannot be adjusted;
B) The form does not have a border but can be adjusted;
C) The form has borders but cannot be adjusted;
D) The form is transparent;
19. If you want to set the form to transparent ()
A) set the formboderstyle attribute to none;
B) set the opacity attribute to a value smaller than 100%;
C) set the locked attribute to true;
D) set the enabled attribute to true;
20. Which of the following statements about the indexer in C # is true ()
A) The index must have two or more parameters.
B) The indexer parameter type must be integer.
C. The indexer has no name.
D) None of the above
21. Which of the following statements is false ().
A) The form is also a control;
B) The form is also a class;
C) controls are inherited from forms;
D) The parent class of the form is the control class;
22. To operate the registry, you must include ().
A) system. componentmodel namespace;
B) system. Collections namespace;
C) system. Threading namespace;
D) Microsoft. Win32 namespace;
23. To create a multi-document application, set the () attribute of the form to true.
A) drawgrid;
B) showintaskbar;
C) enabled;
D) ismdicontainer;
24. If treeview1 = new Treeview () is set, treeview1.nodes. Add ("Root Node") returns a value of the () type.
A) treenode;
B) int;
C) string;
D) Treeview;
25. Which of the following statements about XML is false ().
A) XML provides a method to describe structured data;
B) XML is a simple, platform-independent and widely used standard;
C) XML documents can carry various types of information;
D) XML is only used to generate structured documents;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.