After defining a class you can instantiate one or more _____
1. Objects
2. Classes
3.Attributes
4.Methods
An object is the ________ of the class.
1.Instance
2.Class
3.Object
4.users
The convention is to use _____ case for classname.
1. Upper
2.Lower
3.Pascal
4. Mixed
The file to which data is write is referred to as _______
1.Input file
2.Output file
3.Random access file
4.Sequential file
To traverse two dimensional array you require ________________ loops.
1.One
2.Two
3.Three
4.Zero
A class ______________ all the behavior and attributes of an object.
1. Encapsulates
2.Abstracts
3.Inherits
4. Instantiate
A constructor is a ______
1.A function procedure
2.A sub procedure
3.Either a function procedure or a sub procedure
4.A property procedure
A structure variable named address contains a member variable named strStreet. Which of the following statements assigns the string “Maple†to the member variable?
1.address&strStreet = “Mapleâ€
2. address.strStreet = “Mapleâ€
3.strStreet.address = “Mapleâ€
4.strStreet&address=â€Mapleâ€
A _________ variable is the instance of the String class.
1.Button
2.String
3.Character
4.Array
A __________ resembles a table.
1.One-dimensional array
2.Two-dimensional array
3. Three-dimensional array
4.N-dimensional array
An application uses a structure named Employee. Which of the following statements declares a five-element array of Employee structure variables?
1.Dim workers(4) As Employee
2.Dim workers(5) As Employee
3.Dim workers As Employee(4)
4.Dim workers As Employee(5)
An array is declared using the statement Dim inventory(4) As Product. Which of the following statements assigns the number 100 to the intQuantity member variable contained in the last array element?
1.inventory.intQuantity(4) = 100
2. inventory(4).Product.intQuantity = 100
3.inventory(3).intQuantity = 100
4. inventory(4).intQuantity=100
An object’s _______________ include methods and events.
1.Attribute
2.Behavior
3. Instance
4.Methods
Class is defined using _______
1. Class statement
2.Object statement
3. Access specifier statement
4. Instance statement
Each element in a two-dimensional array is identified by a unique combination of _______
1.One subscript
2.Two subscripts
3. Three subscripts
4. Zero subscript
Each object used in a object oriented programming is created from ______
1.Class
2.Object
3. Instance
4.users
Files that are read by computer are called as ______
1.Input file
2.Output file
3.Random access file
4.Sequential file
Files that contain lines of text are known as _______
1.Binary files
2.Text files
3.Character files
4.Array files
Files that read and write in consecutive order are known as _____
1.Input files
2.Output files
3.Sequential access file
4. Random access file
If the elements in two arrays are related by their subscripts, the arrays are called as ______arrays.
1. associated
2. coupled
3.matching
4. parallel
In most applications, the code to define a user-defined data type is entered in the form’s.
1.Declarations section
2.Definition section
3.Load event procedure
4.User-defined section
In Visual Basic, you use _________ to write a stream of characters.
1.StreamWriter object
2. StreamWriter class
3.StreamReader object
4.StreamReader class
Objects are represented by _____________ variables and ______________ properties.
1.Private, Public
2.Public, Private
3.Protected, Public
4.Protected, Private
Objects are ____________ from a class.
1.Instantiated
2. Evaluated
3.Printed
4.Outdated
Programmers refer to the sequence of character as _________
1. Stream of tokens
2. Stream of characters
3.Stream of bits
4.Stream of bytes
Programmers use _____ when they need to pass a group of related variables.
1.Structure variable
2. Variable
3.Auto variable
4. Constant variable
Programmers use ________ when they need to store related items in an array, even though the members have different data type.
1.Structure variable
2. Variable
3. Auto variable
4. Constant variable
Reading data from a file is referred to as _______
1.Reading a file
2.Writing a file
3.Appending a file
4.Executing a file
The behavior are represented by _______
1.Methods
2.Attributes
3.Values
4. Numbers
The class statement groups _______________ item in one unit.
1.Related
2.Different
3.Same access specifier items
4.Different access specifier items
The computer creates the object when it processes the statement containing ____________ keyword.
1.Class
2.Object
3. New
4.Private
The intSales array is declared as follows: Dim intSales(,) As Integer = {{1000, 1200, 900, 500, 2000}, {350, 600, 700, 800, 100}}. The intSales(1, 3) = intSales(1, 3) + 10 statement will ______
1.replace the 900 amount with 910
2.replace the 500 amount with 510
3.replace the 700 amount with 710
4.replace the 800 amount with 810
The name of the class file ends with ______
1. .cla
2. .class
3. .cla
4..vb
The strStates and strCapitals arrays are parallel arrays. If Illinois is stored in the second element in the strStates array, where is its capital (Springfield) stored?
1.strCapitals(1)
2. strCapitals(2)
3.strCapitals(0)
4.strCapitals(3)
The subscripts are _________ than the row and column in which the element is located.
1. One number less
2.One number more
3.Two number less
4.Two number more
The _____________ in a two-dimensional array specifies the elements row and column position.
1.Superscript
2.Subscript
3.Row number
4.Column number
Variables declared using a structure is known as __________
1.Variables
2.Auto variables
3.Structure variables
4.Constant variables
We can determine number of elements in two-dimensional array by ______
1.Multiplying number of rows and number of columns
2. Adding number of rows and number of columns
3.Multiplying number of rows and number of rows
4.Adding number of columns and number of columns
Which of the following declares a two-dimensional array that has three rows and four columns?
1.Dim decNums(2, 3) As Decimal
2.Dim decNums(3, 4) As Decimal
3.Dim decNums(3, 2) As Decimal
4.Dim decNums(4, 3) As Decimal
Which of the following statements is false?
1. A class can have only one constructor
2.A class can have multiple constructors
3.An object created from a class is referred to as instance of the class
4. An instance of a class is considered an object
Which statement is used to create a user-defined data type?
1.Declare
2. Define
3.Struct
4.UserType
Writing data to a file is referred to as ________
1.Reading a file
2. Writing a file
3.Appending a file
4.Executing a file
You refer to the member variable by preceding its name with the name of the _______ in which it is defined.
1.Variable
2.Auto variable
3.Structure variable
4.Constant variables
You refer to the structure variable by its ______
1.Name
2. Data type
3.Dot operator
4.Member name
_____ are operations that the object is capable of performing.
1.Methods
2.Events
3. Instances
4.Attributes
_____ are the characteristics that describe the object.
1. Classes
2.Attributes
3.Objects
4.Instances
______ are the actions to which an object can respond.
1.Methods
2.Events
3.Instances
4.Attributes
______ is a programming language that allows the programmer to use objects to accomplish his goals.
1.Structured programming language
2.Object-oriented programming language
3.Top-down programming language
4.Bottom-up programming language
________ is used to open the sequential file access for append.
1.CreateText method
2.AppendText method
3.OpenText method
4.WriteText method
__________ is used to open a sequential access file for output.
1.CreateText method
2. AppendText method
3.OpenText method
4.WriteText method