Question
1. Which of the following is a valid declaration of constant? a) Dim myName As Const=John b) Constant myName = John c) Const myName =
1. Which of the following is a valid declaration of constant?
a) Dim myName As Const="John"
b) Constant myName = "John"
c) Const myName = "John"
d) Dim Const = "John"
2. Is there is any difference in declaring a Constant and a Variable:
a) There is no difference
b) Unlike Constant you always have to initialize a Variable when you declare it
c) Unlike Variable you always have to initialize a Constant when you declare it
3. Which of these lines will give you the result "2004"? (Choose all possible answers)
a) MessageBox.Show ("20"+"04")
b) MessageBox.Show ("20","04")
c) MessageBox.Show ("20" and "04")
d) MessageBox.Show ("20" & "04")
4. Examine the following code. What will be the value of the variable myVar after execution?
Dim myVar As Boolean
myVar = True And False Or True
Answer__________________
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started