Windows Error Correction

Source: Internet
Author: User

4: In a Windows application, you need to call the form's () method when you need to display the form as a modal dialog box.
(Select an item)
A:activate ()
B:showdialog ()
C:show ()
D:close ()
The correct answer is B, you're answering the D-answer error.
6: In the WinForms application, if you click a menu item in the Frmmain form object to open the Frmlist form object in a modal window, the code that is added to the response method for the menu item's Click event corresponds to ().
(Select an item)
A:frmmain frmmain=new frmmain ();
Frmmain.show ();
B:frmlist frmlist=new frmmain ();
Frmlist.show ();
C:frmmain frmmain=new Frmain ();
Frmmain.showdialog ();
D:frmlist femlist=new frmlist ();
Frmlist.showdialog ();
The correct answer is, D, you answered B.
8: In C #, to set a form as an MDI form, the property you need to set is ().
(Select an item)
A:ismdiparent
B:windowstate
C:showintoolbar
D:ismdicontainer
The correct answer is, D, you answered B.
11: In Winfroms, after executing the following statement, the user clicks the "No" button to close the dialog box, the return value of the statement is ().
MessageBox.Show ("Prompt", "Do you want to continue adding?", messageboxbuttons.yesno,messageboxicon.question);
(Select an item)
a:dialogresult.no;
B:dialogresult.cancel;
C:dialogresult.none;
D:null
The correct answer is a you answered B to answer the wrong
12: In C #, the following statement about enumerations is wrong ().
(Select an item)
A: Using enumerations can effectively avoid assignment errors caused by coding
B: Defining an enumeration type can not assign an initial value
C: You can define a property in an enumeration, but you cannot define a method
The D:enum.parse () method can help convert a string type to an enumeration type
The correct answer is C, you're answering the B-answer error.
13: In the WinForm development process, in order to achieve the run-time form to automatically maximize the display, the following settings for the form property is correct ().
(Select an item)
A:maximizebox set to True
B:windowstate set to Maximized
C:minimizebox set to False
D:maxinumsize set to True
The correct answer is B you answered C to answer the wrong
15: When the user taps the button in the message box, the message box returns the type of ().
(Select an item)
A:dialogbox
B:dialogvalues
C:dialogresult
D:messageresult
The correct answer is C, you answer the D-answer error.
17: In WinForms, the following applications that are not part of the SDI (single-document interface) application are ().
(Select an item)
A:microsoft Office Word
B:microsoft Office Excel
C:notepad (Notepad)
D:microsoft Office PowerPoint
The correct answer is B, you're answering the D-answer error.
18: In WinForms, if you need to set the distance of the TreeView control relative to the left edge of the form (the left margin is 0), you can do so by setting the () property.
(select two items)
A:margin
B:dock
C:anchor
D:padding
The correct answer is b,c you answer is a, b answer the wrong
21: In WinForms, a button binds the Click event, which has the following code in the response method of the event, so when the program runs, the Click event is triggered ().
(Select an item)
A: Do not display the message box, exit the program directly
B: The message box pops up after the program exits
C: Displays a message box, but the form does not close
D: Display a message box and exit the program
The correct answer is D, and you're answering C for the wrong answer.
27: In WinForms, the following description of the timer is wrong ().
(Select an item)
A:stop () means stop timer
B:start () indicates start timer
C:enabled can let the timer stop or run
D:interval indicates how often the timing event occurs, in seconds
The correct answer is D, you're answering a wrong answer.


(Select an item)
33
A:
B:
C:
D:
The correct answer is a you answered C to answer the wrong
35: In WinForms, assume that there is a public field name in Form2, to implement the value of the name passed from Form1 to Form2, generally fill in the () code in the event of FROM1.
(Select an item)
A:form2 f2=new Form2 ();
F2.naem= "Wei";
B:form1 f1=new Form1 ();
F1.name= "Wei";
F1. Show ();
C:form1 f1=new Form1 ();
F1.name= "Wei";
Form2 f2=new Form2 ();
F2. Show ();
D:form2 f2=new Form2 ();
Form2.name= "Wei";
F2. Show ();
The correct answer is a you answered C to answer the wrong
37: In the WinForms program, add the MDI child form code as follows, the wrong line of code has ().
Private viod Tslnewstudent_click (Object Sender,eventargs e) {
1 this. Ismdiparent=true;
2 frmeditstudnet frmeditstudnet=new frmeditstudent ();
3 frmeditstudent.parent=this;
4 Frmeditstudnet.show ();
}
(select two items)
A:1
B:2
C:3
D:4
The correct answer is a,c you answer is b,c answer the wrong

Windows Error Correction

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.