MTA 98-361 evens

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

bool parent = false; bool mother = false; bool brother = false; string salutation = "Hello"; if (parent == true) { if (mother == true) { salutation = "Hi mom!"; } Else { Salutation = "Hi, Dad!"; } } else { if (brother == true) { salutation = "Hey Bro!" } else { salutation = "Hey Sis!"; } when the code in the exhibit has been executed, what will the value of the variable salutation be?

"hey Sis!"

you are a C# web developer for a managed service provider. you used visual studio 2015 to design an ASP.NET web application for one of your clients. you need to deliver the complete web application to the client in package format so they can easily deploy the web application to their internal IIS web server. you decide to use the publish web wizard to create the deployment package. which three actions should you perform in sequence? to answer, move the appropriate actions from the list of possible actions to the answer area and arrange them in the correct order -give the .publishsettings file for the website to the client -select the debug configuration profile -deliver the package to the client -choose the web deploy package publish method -select the release configuration profile -choose the web deploy publish method

1. choose the web deploy package publish method 2.select the release configuration profile. 3.deliver the package to the client

you are a web developer for a consulting business. one of your clients asks for a website that meets the following business requirements: -Form input validation -the ability to play video without the need for a separate plug-in -responsive design that adapts to screen size -secure connection you need to use the proper web development technologies to deliver the right solution for your client which technologies should you use? to answer, drag the most appropriate web technology to each business requirement. A web technology may be used once, more than once, or not at all 1. Form input validation 2.video without a plug-in 3.responsive design 4.secure connection

1. javascript 2.HTML 3.CSS 4.HTTPS

you are a C# programmer for an educational software company. you need to define a new class that allows students to work with rectangle shapes. your class definition is as follows: class Rectangle { private double width; private double length; public rectangle(double w, double I) { width = w; lenght = l } public double Findarea() { return width * length } } for each statement, select yes if the statement is true. otherwise, select no. 1. the length and width data fields do not limit access to their values 2. FINDAREA() is a class method. 3.the values 3.14 and 42.22 can be used as length and width values for the Reactangle class.

1.no 2.yes 3.yes

you are a C# programmer for an educational software company. you define the following class for use in a basic geometry application. class Rectangle:shape {public override FindArea() { return width * length; } } for each statement, select Yes if the statement is true. otherwise, select no. 1. Rectangle is a derived class 2. the FindArea() method is an example of polymorphism 3. Shape is a child class

1.yes 2.yes 3.no

Exhibit 2 int i + 0; int x=0; for(I=1; I<10; I = I+3) { X = I*2 }

14

the following integers are added to a stack in this order: 3, 8, 4, 6, 1. you perform the following operations on the stack: push 7 pop push 2 what is at the bottom of the stack after yo perform these operations?

3

how many bytes does the int32 type allocate

4

you need to define a JavaScript function on a web-page. In which HTML tag should you enclose the function

<scipt>

what term is used to describe a class that serves as a starting point for new classes?

Base class

which type of application typically does not have a graphical user interface(GUI) and is often invoked from a command prompt?

Console-Based

you need to model an "is a" relationship. what should you do?

Create a class that inherits from another class

a class contains a pubic method named ComputeSalesTax that computes the sales tax based on specified a state abbreviation and a dollar amount. this eliminates the need for client code to know the sales tax rates for each state. which object-oriented feature is this called?

Encapsulation

which tool or application is used to host web sites?

Internet information services (IIS)

which of the following is a weakly typed, client-side scripting language?

Javascript

a database contains two tables named Employees and Payrecords. the two tables are joined on the EmployeeID field common to both tables the EmployeeID uniquely identifies each employee. each pay period a record is entered into the table Payrecords for every employee that is paid which term describes the relationship between Employees and Payrecords?

One-to-Many

the AUtoEventWireup attribute of the @ page directive is set to true for a page. which method should you implement in the code-behind file to be called whenever the page loads?

Page_Load

a relational database table named product contains the following fields: ID Name Price Category you need to return only the Name and Category fields sorted by category. Which SQL statement should you use?

SELECT Name, Category FROM Product ORDER BY Category

a database table named book has the following fields: ISBN Title DatePublished PublisherID you need to retrieve the value of the publisherID for all records where thr ISBN field begins with 0972 which SQL statement should you use?

SELECT PublisherID WHERE ISBN LIKE '0972%'

you want to return values from all fields and all rows in a table named Suggestions. which structured query language (SQL) query should you use?

SELECT* FROM Suggestions

In the lifecycle of an ASP.NET web page . which phase follows the PreRenderComplete phase?

SaveStateComplete

your company uses the waterfall development life cycle. in which phase are software bugs discovered and fixed?

Testing

What is unit testing?

Testing to ensure that each small unit of code behaves as expected.

you need to develop an application that provides a rich graphical user interface and that runs locally on users' desktops. which type of application should you create?

Windows Forms

you need to write a block of code that will log user activity in a text file, but it does not need to return a value to the code that is executing. What type of code block should you write?

a method with a return type of void.

you have an employee class. you need to expose a class member to hold the value of each employee's department. what should you create?

a public property

you are creating an application that will process ticket sales for a theater. ticket requests must be taken in the same order in which they were received. which data structure should you use?

a queue

the primary purpose of internet information sevices (IIS) is to:

host ASP.NET web applications

you are a C# programmer for a healthcare management organization. you have been asked to author a three-tier web application that performs complex business logic. after drafting your application flowchart, you determine the need to code decision structures to meet the following program requirements. -take action if an expression evaluates to boolean true. -take action if an expression evaluates to boolean true or false. -perform efficient multi-way branching between several conditions, depending on expression results. -execute a block of statements until an expression evaluates to boolean false which decision structures should you use? to answer drag the appropriate decision structures to each program requirement. a decision structure may be used once, more than once, or not at all.

if = action if expression evaluates to true if else = action if expression evaluates to true or false switch = efficient multi-way branching while = action until expression evaluates to false.

a class named employee contains a protected member named salary. a class named manager does not define the salary member, but the manager class can access the salary member in the employee class which object-oriented feature does this represent?

inheritance

a class named per is derived from a class named animal. the dog class is derived from the pet class and includes attributes belonging to the pet class and the animal class what object oriented programming term best describes this concept?

inheritance

in a try-catch-finally block, where do you put code that must execute when a specific exception occurs?

inside a catch block

which tool should you use to install a windows service application in the service control manager (SCM)?

installer tool (InstallUtil.exe)

the process of creating an object is called

instantiation

which of the following is a possible advantage of creating an index on a SQL server database table?

it allows queries to execute more quickly

which of the following characteristics does a console application have?

it can run with minimal user interaction without mouse input

which of the following is a characteristic of a web service?

it exposes functionality to users and applications over the internet.

what is the purpose of a data source name (DSN)?

it stores and centralizes connection information for a data source.

which of the following is a relational database management system (RDBMS)?

microsoft SQL Server

the tricycle class and the bicycle class are both derived from the ToysWithWheels class. both inherit the WheelNumber property from the ToysWithWheels class. when an instance of the Tricycle class is instantiated, Wheel number = 3. when an instance of the bicycle class is instantiated, Wheelnumber = 2. which object-oriented programming term describes this concept?

polymorphism

you want the members of a class to be accessible only to code that is within the same class. which access modifier should you use.

private

in software development, a model that is created during the planning and specification phase is called a:

prototype

you are creating an application that routes technical support requests to employees. the application must route the requests in the order in which they were received. which data structure should you use to store the requests?

queue

you want a web control event to be processed on the computer that hosts the application. which attribute setting should you include in the web control?

runat="server"

which communication protocol is used to describe messages in a web service?

simple object access protocol (SOAP)

notepad is an example of a:

single-document interface (SDI) application

three concrete classes named circle, square, and triangle all inherit from a base class named shape. the three concrete classes provide different implementations of a method named CalculateArea. which is defined in the shape class. which concept is representative of polymorphism?

the different implementations of the CalculateArea method

int a = 6; int b = 4; int c = 1; bool_result; Single answer; _result = (a%b>c); you execute the code shown in the exhibit. what is the value of the variable result when the code has executed?

true

you anticipate that an exception might occur in a block of code. which type of statement should you use to handle the exception?

try-catch-finally

an application has a graphical user interface (GUI) and runs on individual computers that do not have network connectivity. what type of application is it?

windows forms

what type of application presents no user interface?

windows service

you need to create an application that runs in the background and has no user interface. which type of application should you create?

windows service

planning, developing, testing, and deploying are all aspects of:

application lifecycle management

a .NET data provider is a:

bridge between an application and a data source.

which statement about classes and structures is true?

classes are allocated on the heap, and structures are allocated on the stack

the purpose of the a data warehouse id to:

collect, consolidate, and organize data.

what must you use to instantiate a class

constructor

a requirements document contains the following information: A customer has one or more accounts. an account can belong to only one customer. Which class or classes should you create to model the requirements and minimize the number of classes?

customer and account

a class constructor has no paramaters. what type of constructor is this?

default

you need to execute a set of statements once, test for a condition, and then repeat execution only if the condition is true. which loop should you use?

do

you need to represent a number that has decimal places requiring 15 digits of precision. which numeric data types could you use?(choose 2)

double and float

you create an if statement that specifies a condition. you need to include code that should execute if the condition is not true. what should you use?

else

you need to configure a web application to consume a web service. what should you do?

add a reference to the web service in the application.

the finally block of an exception handler is:

always executed when the code leaves any part of the try statement. except when a StackOverflowException is thrown


Ensembles d'études connexes

RE: Mortgage Lending Tax Impacts

View Set

American History Activity questions Unit 2

View Set