You are designing a class for an application. You need to restrict the availability of the member variable accessCount to the
base class and to any classes that are derived from the base class.
Which access modifier should you use?
C
You are creating an application that presents users with a graphical interface in which they can enter data. The application
must run on computers that do not have network connectivity.
Which type of application should you choose?
B
Explanation:
Use Windows Forms when a GUI is needed.
You are creating an application that presents users with a graphical interface. Users will run this application from remote
computers. Some of the remote computers do not have the . NET Framework installed. Users do not have permissions to
install software.
Which type of application should you choose?
C
The elements of an array must be accessed by:
C
Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to
as:
C
You have a stack that contains integer values. The values are pushed onto the stack in the following order: 2,4,6,8.
The following sequence of operations is executed:
Pop
Push 3
Pop
Push 4
Push 6
Push 7
Pop
Pop
Pop
What is the value of the top element after these operations are executed?
B
What are two methods that can be used to evaluate the condition of a loop at the start of each iteration? (Each correct
answer presents a complete solution. Choose two. )
C D
Explanation:
For and While constructs check at the start of each iteration.
You need to evaluate the following expression:
(A>B) AND (C<>
What is the value of this expression if A=3, B=4, C=4, and D=5?
D
Explanation:
A>B is false.
You are creating a variable for an application.
You need to store data that has the following characteristics in this variable:
Consists of numbers and characters
Includes numbers that have decimal points
Which data type should you use?
A
Explanation:
Need a string to store characters.
You execute the following code.
What will the variable iResult be?
C