wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Windows Form Application

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.
Can you declare variables in Windows Form Applications?
a)
Yes
b)
No
2.
Is the title before or after the comma?
Messagebox.Show ("______ ,______")
a)
After
b)
Before
3.
Does the message go before or after the comma?
Messagebox.Show ("______ ,______")
a)
Before
b)
After
4.
What is the correct way of creating a message in Windows Form Applications?
a)
Console.Writeline
b)
MessageBox.Show
c)
Textwindow.Write
d)
Console.Readline()
5.
What message will be outputted if the box is checked 
 If RadioButton1.Checked Then            MessageBox.Show("Don't check me!")
a)
Don't check me!
b)
RadioButton1
c)
Hi!
d)
Good Morning!
6.
What would be the correct way of assigning the text box to the variable 'Name' 
Dim Name As String
 

a)
Name = Textbox.Text
b)
Name = Textbox
c)
Name = Mr Payne
d)
Name = "Hello!"
7.
You can't run a Windows Form Application
a)
True
b)
False
8.
The 'Name' and the 'Text' field are different things in a Windows Form Application
a)
True
b)
False
9.
Will the message box include what is saved in the name variable? 
Dim Name As String       
Name = TextBox.Text
MessageBox.Show("HI " & Name & "!")
a)
Yes!
b)
No..