






























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































How should you configure an application to consume a Web service? - answer Add a reference to the Web service in the application You are writing a Web application that processes room reservation requests. You need to verify that the room that a guest has selected is not already reserved by another guest. Which type of programming should you use to determine whether the room is still available when the request is made? - answer Server-side You are developing an application to display track and field race results. The application must display the race results twice. The first time it must display only the winner and runner-up. The second time it must display all participants. Fill in the blanks: private IEnumerable
________ "Nancy"; if (top2Only) ________ ; ________ "Chris"; } - answer yield return yield return yield break yield return A data warehouse database is designed to: - answer Enable business decisions by collecting, consolidating, and organizing data Which language was designed for the primary purpose of querying data, modifying data, and managing databases in a Relational Database Management System? - answer SQL What is SQL - answer A special-purpose programming language designed for managing data held in a relational database management system (RDBMS) Converting a value type to a reference type in an object is called: - answer Boxing
You have a Windows Service running in the context of an account that acts as a non- privileged user on the local computer. The account presents anonymous credentials to any remote server. What is the security context of the Windows Service? - answer LocalService Local Service: - answer runs in the context of an account that acts as a non-privileged user on the local computer, and presents anonymous credentials to any remote server The purpose of the Finally section in an exception handler is to: - answer Execute code regardless of whether an exception is thrown What happens when you use a finally block? - answer You can clean up any resources that are allocated in a try block, and you can run code even if an exception occurs in the try block. Typically, the statements of a finally block run when control leaves a try statement. The transfer of control can occur as a result of normal execution, of execution of a break, continue, goto, or return statement, or of
propagation of an exception out of the try statement. What are three valid SQL keywords? - answer FROM SELECT WHERE You are creating a variable for an application. You need to store data that has the following characteristics in this variable: ✑ Consists of numbers and characters ✑ Includes numbers that have decimal points Which data type should you use? - answer String In which order do the typical phases of the Software Development Life Cycle occur? - answer Requirements gathering Design Development Testing Which service can host an ASP.NET application? - answer Internet information services
telephoneNumber How can you retrieve only the first name, last name and telephone number for every student listed in the directory? - answer SELECT firstName, lastName, telephoneNumber FROM Students Arguments are passed to console applications as a _____ object. - answer String Array Your application must pull data from a database that resides on a separate server. Which action must you perform before your application can retrieve the data? - answer Establish a connection to the database by using the appropriate data provider You are migrating several HTML pages to your website. Many of these pages contain HTML
Transitional DTD contains all HTML elements and attributes 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? - answer Polymorphism What is often referred to as the third pillar of object-oriented programming? After what other two object-oriented programming? - answer Polymorphism.
This 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 A data dictionary that describes the structure of a database is called _____________ - answer metadata Which term is used to describe the relationship between Customer and Order? Customer --<- Order - answer One-to-Many You need to group all the style settings into a separate file that can be applied to all the pages in a Web application. What should you do? - answer Use a Cascading Style Sheet (CSS). A table whose attributes depend only on the primary key must be at least _________ normal form. - answer Second
Define 2nd Normal Form: - answer A database is in second normal form it it satisfies the following conditions: It is in first normal form All non-key attributes are fully functional dependent on the primary key A piece of text that is 4096 bytes or smaller and is stored on and retrieved from the client computer to maintain state is known as a __________.
Y/N: Both composition and inheritance allow you to create sub-objects. - answer Yes You are designing a Windows Store application. You need to design the application so that users can share content by connecting two or more devices by physically tapping the devices together. Which user experience (UX) guideline for Windows Store applications should you use? - answer Share and data exchange What is displayed when you attempt to access a Web service by using a Web browser? - answer A listing of methods that are available in the Web service You are creating an application for a priority help desk center. The most recent call must be handled first. Which data structure should you use? - answer Stack What are the three basic states that a Windows service can be in? - answer Running
Stopped Paused The following functions are defined: private static int Printer(int j) { for (var i = j; i > 0; i = Printer(i - 1)) { Console.Write(i); } return j; } What does the console display after the following line? Printer(2); - answer 211 Y/N: XHTML attribute names must be in uppercase.
Y/N: The primary goal of unit testing is to take the smallest piece of testable software in the application, isolate it from the remainder of the code, and determine whether it behaves exactly as expected. - answer YES Y/N: In unit testing, each unit is tested separately before integrating the units into modules to test the interfaces between modules - answer YES Y/N: The driver that you use in unit testing simulates a calling unit and the stub simulates a called unit - answer YES In the life cycle of an ASP. NET Web page, which phase follows the SaveStateComplete phase? - answer Render When is the SaveStateComplete event raised? - answer It is raised after the ViewState and ControlState of the page. The throw keyword is used to perform which two actions? - answer Raise exceptions Re-throw exceptions as a different type
You are building a web application that enables international exchange students to schedule phone calls with their prospective schools. The application allows students to indicate a preferred date and time for phone calls. Students may indicate no preferred time by leaving the date and time field empty. The application must support multiple time zones. Which data type should you use to record the student's preferred date and time? - answer DateTimeOffset? Simulating the final design of an application in order to ensure that the development is progressing as expected is referred to as: - answer Software testing Which language uses Data Definition Language (DDL) and Data Manipulation Language (DML)? - answer SQL A table named Student has columns named ID, Name, and Age. An index has been
You are creating an application that presents the user with a Windows Form. You need to configure the application to display a message box to confirm that the user wants to close the form. Which event should you handle? - answer FormClosing 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? - answer Windows Forms The purpose of a constructor in a class is to: - answer Initialize an object of that class. You need to create an application that processes data on a last-in, first-out (LIFO) basis. Which data structure should you use? - answer Stack You need to evaluate the following expression:
What is the value of this expression if A=3, B=4, C=4, and D=5? - answer False Which type of Windows application presents a parent window that contains child windows? - answer Multiple-document interface (MDI) When creating a site to utilize message queuing, the IP address must be configured to _________________ - answer Protocol You are creating an application for computers that run Windows XP or later. This application must run after the computer starts. The user must not be aware that the application is running. The application performs tasks that require permissions that the logged-in user does not have. Which type of application allows this behavior? - answer Windows Service application 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? - answer Event driven