A software contest programming problem (turn)

Source: Internet
Author: User

You can do it first, the answer is at the bottom ~ ~

One, single choice (10 small questions total 20.0 points)

1. The correct output of the following JavaScript code is: ().

123456789 <script type= " Text/javascript " > i = 1; function  fun1 () { &NBSP;&NBSP;&NBSP;&NBSP; window.alert (i); &NBSP;&NBSP;&NBSP;&NBSP; var  i=2; &NBSP;&NBSP;&NBSP;&NBSP; } fun1 (); window.alert (i); </SCRIPT>

A. undefined,1 B. 2,2 E. 2,1, C. D.

Knowledge Reference: http://www.cnblogs.com/lhb25/archive/2011/09/06/javascript-scope-chain.html

Reference: http://blog.csdn.net/hch126163/article/details/6022557

2. In the following options, the CSS stylesheet does not implement the function: ().

A. Separating the format and structure B. One CSS file controls multiple pages

C. Controlling the exact position of the picture D. Compatible with all browsers

Knowledge Reference: http://www.divcss5.com/rumen/r30.shtml

3. The result of the following code output is: ().

123456789101112 classProgram{         constintbb = aa * 10;         constintaa = 10;         staticreadonlyint dd = cc * 10;         staticreadonlyintcc = 10;         staticvoidMain(string[] args)         {                   Console.WriteLine("aa={0},bb={1},cc={2},dd={3}", aa, bb,cc,dd);                   Console.ReadKey();         }}

A. aa=10,bb=100,cc=10,dd=0 B. aa=10,bb=0,cc=10,dd=0

C. aa=10,bb=100,cc=10,dd=10 D. aa=10,bb=0,cc=10,dd=100

Reference knowledge: http://www.cnblogs.com/royenhome/archive/2010/05/22/1741592.html

4. The result of the following code output is: ().

1234567891011121314151617181920212223242526272829 classFather{         publicvirtualvoidShowA(int i)         {                   Console.Write(i);         }         publicvoidShowB(Father a)         {                   a.ShowA(1);                   ShowA(5);         }}classSon : Father{         publicoverridevoidShowA(inti)         {                  base.ShowA(i + 1);         }}staticvoidMain(string[] args){         Father a = newFather();         Son b = newSon();         a.ShowB(a);         a.ShowB(b);         b.ShowB(a);         b.ShowB(b);         Console.ReadKey();}

A. 15151626 B. 15251526 c. 15251625 D. 15151526 E. 15251626

Reference knowledge: http://www.cnblogs.com/cuishao1985/archive/2010/05/18/1738140.html

5. A Student performance management system (built on SQL Server) has the following three tables, the structure of the table and some of the following data:

Table structure and Relationship diagram:

Tb_student part of the data is as follows:

Tb_course part of the data is as follows:

Tb_score part of the data is as follows:

There is also a data table for querying statistics Tb_studentscore, structure and data as follows:

Where the score column content is empty, write out the SQL statement to populate the contents of the score column full, the following options are correct: ().

A. UPDATE Tb_studentscore SET Score=b.score

From Tb_studentscore A joins Tb_score B on a.studentid = B.studentid

and A.courseid = B.courseid

B. UPDATE Tb_studentscore SET Score=b.score

From Tb_studentscore A joins Tb_score B on a.studentid = B.studentid

C. UPDATE Tb_studentscore SET Score=b.score

WHERE Studentid,courseid in

(SELECT Studentid,courseid from Tb_score S

WHERE S.studentid = StudentID and S.courseid = CourseID)

D. UPDATE Tb_studentscore SET Score=s.score

WHERE StudentID in

(SELECT StudentID from Tb_score S

WHERE S.studentid = StudentID)

Reference knowledge: http://www.cnblogs.com/BoyceYang/p/3145279.html

6. ASP. NET, register a user control on the Web Forms page, specify the control's name as "Mike", and the correct registration instruction is ().

A. <% @Register TagPrefix = "Mike" TagName = "Space" SRC = "Myx.ascx"%>

B. <% @Register TagPrefix = "Space" TagName = "Mike" SRC = "Myx.ascx"%>

C. <% @Register TagPrefix = "space" TagName = "space" SRC = "Mike"%>

D. <% @Register TagPrefix = "Space" TagName = "Mike" SRC = "Mike"%>

7. ASP. The correct order of the net life cycle pipeline is: ().

A. HttpModule, HttpHandler, Page, HttpModule

B. HttpHandler, HttpModule, Page, HttpModule

C. HttpModule, HttpHandler, HttpModule, Page

D. Page, HttpModule, HttpHandler, HttpModule

Reference knowledge: http://www.cnblogs.com/knowledgesea/archive/2013/03/20/2935933.html

8. For the page class, the following options describe the error: ().

A. The full namespace of the Page class is System.Web.UI.Page.

B. The new. aspx page is inherited from the page class by default.

The C. Page class also inherits from the control class.

D. Page is a sealed class, users cannot customize the class to inherit from the page class.

9. In the following navigation methods, the target page will be invoked using the Post method: ().

A. <asp:button id= "B1" runat= "Server" postbackurl= "~/navigatetest2.aspx" text= "Goto"/>

B. Location.href = "navigatetest2.aspx";

C. <asp:hyperlink id= "HYPERLINK1" runat= "Server" navigateurl= "~/navigatetest2.aspx" >goto</asp:hyperlink >

D. Response.Redirect ("navigationtest2.aspx");

10. In a SQL Server database, if the initial value of the identity column ID is 1 and the increment is 2, then after entering three rows of data, the next two rows are deleted and the identity value will be: () when the data row is entered again.

A. 6 B. 3 c. 5 D. 7

=====================================

Answer: A D a E a

6~10 B a D a D

A software contest programming problem (turn)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.