Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A variable contains data whose value may be changed during the execution of a pr

ID: 643117 • Letter: A

Question

A variable contains data whose value may be changed during the execution of a project.

a.True

b.False

PROBLEM 2

If you are declaring a variable, you may use the string data type.

a.True

b.False

PROBLEM 3

Which of the following is a valid statement that can be used to declare a local variable that will store numbers as numeric values that are not necessarily integers?

a.Dim IndexFraction As Fraction

b.Dim IndexString As String

c.Dim IndexDecimal As Double

d.Dim IndexInteger As Integer

1

PROBLEM 4

Which of the following is a valid statement that can be used to declare a local variable that will store whole numbers?

a.Dim IndexWhole as Whole

b.Dim IndexString as String

c.Dim IntegerIndex as Index

d.Dim IndexInteger as Integer

PROBLEM 5

Where should the statement: Dim CounterInteger As Integer appear if you plan to use Coun- terInteger in only one event procedure?

a.The Declarations section of the form

b.The Form Load procedure

c.After the ?rst time the variable is used

d.The event procedure where CounterInteger will be used

PROBLEM 6

A

variable is declared inside a procedure.

a.namespace

b.module-level

c.local

d.block

PROBLEM 7

Variables declared within a button

PROBLEM 6

A

variable is declared inside a procedure.

Explanation / Answer

PROBLEM 1) :
a. True.
Reason: A constant contains data whose value may not be changed during the execution of a project, but variable can.
PROBLEM 2):
b. False.
Reason: If declaring a variable then should define the data type(int, double or string) also, otherwise it occurs compiler error in execution time.
PROBLEM 3):
c. Dim IndexDecimal As Double
PROBLEM 4):
d.Dim IndexInteger as Integer.
PROBLEM 5):
b.The Form Load procedure
PROBLEM 6):
c.local
PROBLEM 7):
a. local
PROBLEM 8):
a.Dim
PROBLEM 9):
d.convert data in a textbox to a numeric value with 2 decimal places
PROBLEM 10):
d.All of these are valid
PROBLEM 11):
c.47
PROBLEM 12):
c.61
PROBLEM 13):
b.11
PROBLEM 14):
c.TotalSalesDecimal.ToString(‘‘P2")
PROBLEM 15):
c.“Goodbye” in the message box titlebar and “Hello” in the body of the message box
PROBLEM 16):
b.False
PROBLEM 17):
a.True

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote