Student Center
|
Instructor Center
|
Information Center
|
Home
Intro to VB.NET
Projects
Comprehensive Projects
Choose a Chapter
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter Objectives
PowerPoint Presentations
Multiple Choice Quiz
True or False
Examples from the Text
Feedback
Help Center
Learning Programming Using Visual Basic.Net
Bill Burrows, University of Washington
Joe Lanford, University of Rochester
Representing Data - Constants and Variables
Multiple Choice Quiz
1
These are considered facts or quantities that describe things and that are process by your program.
A)
"Givens"
B)
Methods
C)
Data Items
D)
Classes
2
The scope of a data item refers to:
A)
The relative freshness of the information in the data item
B)
The domain of procedures that are allowed to access the date item
C)
The size of the data item in relation to the rest of your program
D)
None of the above
3
_____ data contains only numbers, while ______ data may contain any symbol.
A)
Numeric, string
B)
String, numeric
C)
Constant, variable
D)
None of the above
4
This term describes a data element whose value is set at design time and can not change during your program's execution.
A)
Invariable
B)
Constant
C)
Variable
D)
Staionary
5
Which one of the following is a valid constant definition statement:
A)
Constant BODYTEMPERATURE = "98.6"
B)
Const PI As Integer = "3.14159"
C)
Const myAddress = "123 Sycamore St."
D)
Const Sub As String = 34
6
Which of the following statements is
not
true about variables:
A)
They can be set only once during your program's execution
B)
Their names have a limit of 255 characters
C)
The first character of their name must be a letter
D)
They may contain either numeric or string data
7
How many predefined data types does Visual Basic .NET define for use in your programs?
A)
None
B)
2 (Numeric and String)
C)
12
D)
None of the above
8
How many bytes of storage does a String variable use?
A)
4
B)
2 times the number of characters in the string
C)
0
D)
None of the above
9
What value is stored in a variable of type Single if we try to assign the variable to the value 634?
A)
634
B)
634.0
C)
0.00634
D)
6.34
10
Which of the following is a valid variable declaration statement?
A)
ZIPCODE = 64323
B)
Dim DiskSpace As String = "30 Gigabytes"
C)
Dim $BankBalance As String = 10
D)
Dimension YourAge As Integer
2003 McGraw-Hill Higher Education
Any use is subject to the
Terms of Use
and
Privacy Policy
.
McGraw-Hill Higher Education
is one of the many fine businesses of
The McGraw-Hill Companies
.