Dumps4cert.com : Latest Dumps with PDF and VCE Files
2018 Aug Microsoft Official New Released 98-361
100% Free Download! 100% Pass Guaranteed!
Software Development Fundamentals
Question No: 61 HOTSPOT – (Topic 1)
You are reviewing the following code that saves uploaded images.
For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point.
Answer:
Explanation:
C:\Users\Kamran\Desktop\image.jpg
Question No: 62 – (Topic 1)
Which type of function can a derived class override?
-
a non-virtual public member function
-
a private virtual function
-
a protected virtual member function
-
a static function
Answer: C
Explanation: You can override virtual functions defined in a base class from the Visual Studio.
The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event.
Question No: 63 – (Topic 1)
The Dog class and the Cat class inherit from the Animal class. The Animal class includes a breathe() method and a speak() method. If the speak() method is called from an object of type Dog, the result is a bark. If the speak() method is called from an object of type Cat, the result is a meow.
Which term is used to describe this object-oriented concept?
-
multiple inheritance
-
polymorphism
-
data hiding
-
encapsulation
Answer: A
Explanation: Polymorphism is often referred to as the third pillar of object-oriented programming, after encapsulation and inheritance. Polymorphism is a Greek word that means quot;many-shapedquot; and it has two distinct aspects:
At run time, objects of a derived class may be treated as objects of a base class in places such as method parameters and collections or arrays. When this occurs, the object#39;s declared type is no longer identical to its run-time type.
Base classes may define and implement virtual methods, and derived classes can override them, which means they provide their own definition and implementation. At run- time, when client code calls the method, the CLR looks up the run-time type of the object, and invokes that override of the virtual method. Thus in your source code you can call a method on a base class, and cause a derived class#39;s version of the method to be executed.
Question No: 64 – (Topic 1)
You have a class named Glass that inherits from a base class named Window. The Window class includes a protected method named break().
How should you call the Glass class implementation of the break() method?
-
Window.break();
-
Glass.break();
-
this.break();
-
base.break();
Answer: A
Question No: 65 – (Topic 1)
Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as:
-
Analyzing requirements
-
Prototyping
-
Software testing
-
Flowcharting
Answer: C
Question No: 66 – (Topic 1)
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?
-
Windows Forms
-
Windows Service
-
ASP. NET
-
Console-based
Answer: C
Question No: 67 – (Topic 1)
You are creating the necessary variables for an application. The data you will store in these variables has the following characteristics:
->Consists of numbers
->Includes numbers that have decimal points
->Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used. Which data type should you use?
-
decimal
-
double
-
byte
-
float
Answer: B
Explanation: The double keyword signifies a simple type that stores 64-bit floating-point values.
Precision: 15-16 digits
Incorrect:
Not D: The float keyword signifies a simple type that stores 32-bit floating-point values. Precision: 7 digits
Question No: 68 – (Topic 1)
The elements of an array must be accessed by:
-
Calling the item that was most recently inserted into the array.
-
Calling the last item in the memory array.
-
Using an integer index.
-
Using a first-in, last-out (FILO) process.
Answer: C
Question No: 69 – (Topic 1)
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?
-
Internal
-
Protected
-
Private
-
Public
Answer: C
Question No: 70 – (Topic 1)
You need to allow a consumer of a class to modify a private data member. What should you do?
-
Assign a value directly to the data member.
-
Provide a private function that assigns a value to the data member.
-
Provide a public function that assigns a value to the data member.
-
Create global variables in the class.
Answer: C
Explanation: In this example (see below), the Employee class contains two private data members, name and salary. As private members, they cannot be accessed except by member methods. Public methods named GetName and Salary are added to allow controlled access to the private members. The name member is accessed by way of a public method, and the salary member is accessed by way of a public read-only property.
Note: The private keyword is a member access modifier. Private access is the least permissive access level. Private members are accessible only within the body of the class or the struct in which they are declared
Example:
class Employee2
{
private string name = quot;FirstName, LastNamequot;; private double salary = 100.0;
public string GetName()
{
return name;
}
public double Salary
{
get { return salary; }
}
}
100% Dumps4cert Free Download!
–98-361 PDF
100% Dumps4cert Pass Guaranteed!
–98-361 Dumps
Dumps4cert | ExamCollection | Testking | |
---|---|---|---|
Lowest Price Guarantee | Yes | No | No |
Up-to-Dated | Yes | No | No |
Real Questions | Yes | No | No |
Explanation | Yes | No | No |
PDF VCE | Yes | No | No |
Free VCE Simulator | Yes | No | No |
Instant Download | Yes | No | No |