NEW QUESTION NO: 16
The following functions are defined:

What does the console display after the following line?
Printer(2)
A. 2121
B. 210
C. 211
D. 2101
Answer: C
NEW QUESTION NO: 17
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least once.
Which looping structure should you use?
A. For-Each
B. For
C. While
D. Do-While
Answer: D
Explanation/Reference:
In a Do..While loop the test is at the end of the structure, so it will be executed at least once.
NEW QUESTION NO: 18
You are creating a routine that will perform calculations by using a repetition structure. You need to ensure that the entire loop executes at least once.
Which looping structure should you use?
A. For
B. While
C. Do„While
D. For. „Each
Answer: C
Explanation/Reference:
In a Do..While loop the test is at the end of the structure, so it will be executed at least once.
NEW QUESTION NO: 19
You need to allow a consumer of a class to modify a private data member.
What should you do?
A. Assign a value directly to the data member.
B. Provide a private function that assigns a value to the data member.
C. Provide a public function that assigns a value to the data member.
D. Create global variables in the class.
Answer: C
Explanation/Reference:
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; }
}
}
NEW QUESTION NO: 20
All objects in .NET inherit from which item?
A. the System.Object class
B. a value type
C. a reference type
D. the System.Type class
Answer: A
Explanation/Reference:
The System.Object class supports all classes in the .NET Framework class hierarchy and provides low- level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
NEW QUESTION NO: 21
Which language allows you to dynamically create content on the client side?
A. Extensible Markup Language (XML)
B. Cascading Style Sheets (CSS)
C. Hypertext Markup Language (HTML)
D. JavaScript (JS)
Answer: D
Explanation/Reference:
JavaScript (JS) is a dynamic computer programming language. It is most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.
NEW QUESTION NO: 22
You have a class named Truck that inherits from a base class named Vehicle. The Vehicle class includes a protected method named brake ().
How should you call the Truck class implementation of the brake () method?
A. Vehicle. brake ();
B. This. brake ();
C. MyBase. brake();
D. Truck. brake ();
Answer: C
Explanation/Reference:
The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class.MyBase is commonly used to access base class members that are overridden or shadowed in a derived class.
NEW QUESTION NO: 23
Your database administrators will not allow you to write SQL code in your application.
How should you retrieve data in your application?
A. Script a SELECT statement to a file.
B. Query a database view.
C. Call a stored procedure.
D. Reference an index in the database.
Answer: C
Explanation/Reference:
The SQL will only be inside the stored procedure.
NEW QUESTION NO: 24
In which order do the typical phases of the Software Development Life Cycle occur?
A. Development, design, requirements gathering, and testing
B. Requirements gathering, design, development, and testing
C. Design, requirements gathering, development, and testing
D. Design, development, requirements gathering, and testing
Answer: B
NEW QUESTION NO: 25
HOTSPOT
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.
Hot Area:

Answer:

NEW QUESTION NO: 26
Which of the following must exist to inherit attributes from a particular class?
A. Public properties
B. A has-a relationship
C. An is-a relationship
D. Static members
Answer: A
Explanation/Reference:
There must be some public properties that can be inherited.