Find Best Solution for Advanced Business with BPM Tool

Visual basic 2010 computer programming help?


p>Quiz C11
Question 1
In a three-layer application, the three layers are
Question 1 options:

the business layer, the middle layer, and the database layer

the presentation layer, the middle layer, and the database layer

the presentation layer, the access layer, and the database layer

the presentation layer, the middle layer, and the dataset layer
Question 2
When you design and develop business classes for an application, your goal is to
Question 2 options:

allow development to be spread among members of a development team

separate the business rules from the presentation and database logic

make the application easier to develop and maintain

all of the above
Question 3
A class defines the properties and methods of
Question 3 options:

a structure

a value

an object

a member
Question 4
The process of creating an object from a class is known as
Question 4 options:

instantiation

encapsulation

inheritance

modeling
Question 5
What feature are you taking advantage of when you call the ToDecimal method of the Convert class without knowing how it’s coded?
Question 5 options:

instantiation

encapsulation

inheritance

modeling
Question 6
The fields of a class
Question 6 options:

are the variables that are defined at the class level

must be instance variables

must be reference types

must be value types
Question 7
Two objects created from the same class can have different
Question 7 options:

fields

methods

data

properties
Question 8
To return the value of an instance variable named v from a get procedure, you code
Question 8 options:

Return v

v = value

Return value

Exit
Question 9
A read-only property consists of just
Question 9 options:

a get method

a set method

a set procedure

a get procedure
Question 10
Which of the following backing fields will Visual Studio generate for an auto-implemented property named LastName?
Question 10 options:

m_LastName

m_lastName

_LastName

_lastName
Question 11
Which method is an example of overloading the method that follows?
Public Function ParseNumber(ByVal numberString As String) As Integer
Question 11 options:

Public Function Parse(ByVal numberString As String) As Integer

Public Function ParseNumber(ByVal num As String) As Integer

Public Function ParseNumber(ByVal num As String, ByVal entry As String) _
As Integer

Public Function ParseNumber(ByVal num As String) As Decimal
Question 12
To begin the declaration for a constructor, you code the keywords Public Sub followed by
Question 12 options:

the keyword New

the data type of the class

the name of the class

the arguments
Question 13
What happens when this statement is executed?
Dim car As New Automobile(index)
Question 13 options:

An object of the Automobile class is created.

An object of the Automobile class is declared, but not created.

The default constructor in the Automobile class is called.
Question 14
When you’re entering the Visual Basic code for a form and want to refer to a shared method in another class, you start with
Question 14 options:

the name of the class that contains the shared method

the name of an object created from the class that contains the shared method

the name of the shared method

Question 15
The Generate From Usage feature lets you generate a code stub for a class or member from
Question 15 options:

the Solution Explorer

the Exception Assistant

the Generate From Usage wizard

the Error Correction Options window
Question 16
To review the members of two or more classes at the same time, you can use
Question 16 options:

the Class View window

the Class Details window

a class diagram
Question 17
To generate the starting code for a new member of a class, you can use
Question 17 options:

the Class View window

the Class Details window

a class diagram
Question 18
Which of the following is not true about a structure?
Question 18 options:

A structure requires less memory and instantiates faster than a class

You can code members for a structure just as you can for a class

You can code more than one constructor for a structure

A structure lets you instantiate a reference type just like a class

You might also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More