Docsity

Chapter 3 Test | CS - Visual Basic.NET Programming, Quizzes of Programming Languages

Toggle sidebar
bg1
TERM 1
How would you clear the following: lbl_input &
txt_input
DEFINITION 1
lbl_input.Clear()txt_input.Clear() or txt_input.Text =
Sting.Empty
TERM 2
How do you concatenate two
strings?
DEFINITION 2
& or &=
TERM 3
what is the focus method?
DEFINITION 3
controlName.Focus()
TERM 4
How do you assign an Access button? Give
and example.
DEFINITION 4
&E&xit
TERM 5
What is the prefix for a Boolean, Char,
Decimal, Integer, and String?
DEFINITION 5
bln, chr, dec, int, str
pf3
pf4

Partial preview of the text

Download Chapter 3 Test | CS - Visual Basic.NET Programming and more Quizzes Programming Languages in PDF only on Docsity!

How would you clear the following: lbl_input &

txt_input

lbl_input.Clear()txt_input.Clear() or txt_input.Text =

Sting.Empty

TERM 2

How do you concatenate two

strings?

DEFINITION 2

& or &=

TERM 3

what is the focus method?

DEFINITION 3

controlName.Focus()

TERM 4

How do you assign an Access button? Give

and example.

DEFINITION 4

&E&xit

TERM 5

What is the prefix for a Boolean, Char,

Decimal, Integer, and String?

DEFINITION 5

bln, chr, dec, int, str

How would you declare Miles as an

integer?

Dim intMiles As Integer

TERM 7

How do you declare and set a date called

"Birth"?

DEFINITION 7

Dim dtmBirth As DatedtmBirth = #5/1/

TERM 8

How do you call the current date and time

from the system?

DEFINITION 8

Dim dtmSystemDate As DatedtmSystemDate = Now

TERM 9

What are the three Functions of the Date

Module

DEFINITION 9

Now, TimeOfDay, Today

TERM 10

Declare a tax of 15% as a constant

DEFINITION 10

Const decTax As Decimal =.

How do you declare and format Dates and

times?

Dim strExample As String = dtmExample.ToString("X")d =

8/10/2010D = Tuesday, August 10, 2010t = 3:22 PMT =

3:22:00 PMF = Tuesday August 10, 2010 3:22:00 PM

TERM 17

How do you catch errors?

DEFINITION 17

Try (expression) (expression)Catch (Result if there is an

error) (often it is a MessageBox.Show("WRONG, YOU DID IT

WRONG")End Try

TERM 18

How do you create a Load event? Give an

example.

DEFINITION 18

Double-click any area of the form in the Designer window.

Private Sub Form1_Load...Handles MyBase.Load

MessageBox.Show("Pop Up")End Sub

TERM 19

How do you make the letters and box

different colors in lblExample?

DEFINITION 19

lblExample.BackColor =

Color.WhatevreYouWantItToBelblExample.ForeColor =

Color.WhateverYouWantItToBe