Download Microsoft.98-361.PracticeTest.2019-03-04.97q.vcex

Download Exam

File Info

Exam Software Development Fundamentals
Number 98-361
File Name Microsoft.98-361.PracticeTest.2019-03-04.97q.vcex
Size 1006 KB
Posted Mar 04, 2019
Download Microsoft.98-361.PracticeTest.2019-03-04.97q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

An application presents the user with a graphical interface. The interface includes buttons that the user clicks to perform tasks. Each time the user clicks a button, a method is called that corresponds to that button. 
Which term is used to describe this programming model?


  1. Functional
  2. Service oriented
  3. Structured
  4. Event driven
Correct answer: D



Question 2

The purpose of a constructor in a class is to:


  1. Initialize an object of that class.
  2. Release the resources that the class holds.
  3. Create a value type.
  4. Inherit from the base class.
Correct answer: A
Explanation:
Each value type has an implicit default constructor that initializes the default value of that type.
Each value type has an implicit default constructor that initializes the default value of that type.



Question 3

A class named Manager is derived from a parent class named Employee. The Manager class includes characteristics that are unique to managers. 
Which term is used to describe this object-oriented concept?


  1. Encapsulation
  2. Data modeling
  3. Inheritance
  4. Data hiding
Correct answer: C
Explanation:
Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all the public, protected, and internal members of the base class except its constructors and destructors. Incorrect:not A: Encapsulation is sometimes referred to as the first pillar or principle of object-oriented programming. According to the principle of encapsulation, a class or struct can specify how accessible each of its members is to code outside of the class or struct. Methods and variables that are not intended to be used from outside of the class or assembly can be hidden to limit the potential for coding errors or malicious exploits.
Classes (but not structs) support the concept of inheritance. A class that derives from another class (the base class) automatically contains all the public, protected, and internal members of the base class except its constructors and destructors. 
Incorrect:
not A: Encapsulation is sometimes referred to as the first pillar or principle of object-oriented programming. According to the principle of encapsulation, a class or struct can specify how accessible each of its members is to code outside of the class or struct. Methods and variables that are not intended to be used from outside of the class or assembly can be hidden to limit the potential for coding errors or malicious exploits.



Question 4

You create an object of type ANumber. The class is defined as follows. 
  
What is the value of _number after the code is executed?


  1. Null
  2. 0
  3. 3
  4. 7
Correct answer: C



Question 5

You need to allow a consumer of a class to modify a private data member. 
What should you do?


  1. Assign a value directly to the data member.
  2. Provide a private function that assigns a value to the data member.
  3. Provide a public function that assigns a value to the data member.
  4. Create global variables in the class.
Correct 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 declaredExample:class Employee2 { private string name = "FirstName, LastName"; private double salary = 100.0; public string GetName() {   return name; } public double Salary {   get { return salary; } } }
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 = "FirstName, LastName"; 
private double salary = 100.0; 
public string GetName() 
  return name; 
public double Salary 
  get { return salary; } 
}



Question 6

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?


  1. Internal
  2. Protected
  3. Private
  4. Public
Correct answer: C



Question 7

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?


  1. Console-based
  2. Windows Forms
  3. Windows Service
  4. ClickOnce
Correct answer: B
Explanation:
Use Windows Forms when a GUI is needed.
Use Windows Forms when a GUI is needed.



Question 8

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?


  1. Windows Forms
  2. Windows Service
  3. ASP. NET
  4. Console-based
Correct answer: C



Question 9

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?


  1. 2
  2. 3
  3. 6
  4. 7
Correct answer: B



Question 10

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. )


  1. If
  2. Do. . . While
  3. For
  4. While
Correct answer: CD
Explanation:
For and While constructs check at the start of each iteration.
For and While constructs check at the start of each iteration.









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files