Beruflich Dokumente
Kultur Dokumente
3
Read each question carefully and select the answer or answers that
represent the best solution to the problem. You can find the answers at the end of
this section.
1. What is the maximum value you can store in an int data type?
a.
b.
c.
d.
Positive infinity
32,167
65,536
4,294,967,296
2. True or false: Double and float data types can store values with
decimals.
3. Which declaration can assign the default value to an int type?
a.
b.
c.
d.
new
int
int
int
int();
myInt = new int();
myInt;
myInt = new int(default);
string
string
string
string
name
name
name
name
=
=
=
=
Student.firstName;
Student.firstName();
Student(firstName);
Student.(firstName);
a.
b.
c.
d.
2
3
4
It has no numeric value.
7.
What are two methods with the same name but with different parameters?
a.
b.
c.
d.
Overloading
Overriding
Duplexing
Duplicate
a.
b.
c.
d.
Modified
Optional
Named
Default
9. When you create an abstract method, how do you use that method in a
derived class?
a.
b.
c.
d.
10. How do you enforce encapsulation on the data members of your class?
a.
b.
c.
d.
e.
Encapsulation
Converting a value type to a reference type
Converting a reference type to a value type
Creating a class to wrap functionality in a single entity
13.
Answers
1. D
2. A
3. B
4. A
5. A
6. B
7. A
8. B
9. B
10. A, C
11. B
12. A
13. B
14. C
15. B
The following questions are similar to the types of questions you will find
on Exam 70-483. Read each question carefully and select the answer or answers
that represent the best solution to the problem. You can find the answers at the end
of this document.
1. You want to create a type in your code that stores multiple values of
differing types but dont need the full facilities of a class file. What is
the value type that can serve your needs?
a.
b.
c.
d.
Array
Struct
Queue
Linked List
At the beginning
At the end
After any default parameters
Anywhere
Answers
1.
2.
3.
4.
5.
B
False
False
B
C
Private
Static
Public
Property