Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions