Computer Networking > QUESTIONS & ANSWERS > 98-361 MTA Software Development Fundamentals (All)

98-361 MTA Software Development Fundamentals

Document Content and Description Below

98-361 MTA Software Development Fundamentals What is the Main method? - ✔✔It serves as the entry point to a program. When runtime executes a program, it always starts at the Main method. What ... does the Switch statement do? - ✔✔It works like CASE, and allows for different options to run different code, which uncomplicates having to combine several if statements. Name the 4 C# control structures. - ✔✔while loop, do-while loop, for loop and foreach loop When does the do-while loop test the condition? - ✔✔At the bottom of the loop. What is the foreach loop useful for? - ✔✔Iterating through elements of a collection or array. What is recursion? - ✔✔A programming technique that causes a method to call itself in order to compute a result. How to you use a try-catch block? - ✔✔Put the code that could throw an exception in the try section, and place the code that catches exceptions in the catch section. What is the finally block used for? - ✔✔It is always executed regardless of whether an exception has been thrown, so you can put clean up code here such as disconnections. What is a Class? - ✔✔The template from which individual objects are created. What is a delegate? - ✔✔- Special type that is used to encapsulate a method with a specific signature. - Holds the method(s) reference in an object. - Referred to as a type safe function pointer. Properties are often referred to as "_____" fields because they can include code for checking data consistency or validity. - ✔✔Smart A property has two _________ - ✔✔Accessors, GET and SET Properties are often assigned with a ______ access modifier - ✔✔Public The usual programming pattern is that all the data fields of a class should be declared private, - ✔✔and that access to these private fields should be via public properties that check the data values for validity How do you make a read-only property accessor? - ✔✔Don't put in the set accessor What is an auto-implemented property? - ✔✔The simplified syntax for a property declaration, for example: public double length { get; set; } What does the THIS keyword do? - ✔✔It is used to access members from within constructors, methods and accessors of instance properties, which provides more flexibility in naming the method parameters Among many other applications, delegates form the basis for _______ - ✔✔event declarations Events are a way for a class to notify other classes or objects when something of interest happens. - ✔✔The class that sends the notification is called the publisher of the event, the class that receives the notification is called the subscriber. 2 pieces of information are needed to define an event: - ✔✔1. A delegate that connects the event with its handler methods 2. A class that contains the event data. This class is usually derived from the EventArgs class How is the EventHandler delegate defined? - ✔✔public delegate void EventHandler(Object sender, Eventargs e); The EventArgs class is - ✔✔used by events that do not pass any event-related information to an event handler. The EventArgs.Empty field - ✔✔represents an event with no event data. This is equivalent to having a read only instance of the class. A delegate is... - ✔✔a list of methods we can call at the same time and pass the same parameters to. Basically you create the delegate and add whatever methods to it, then call the delegate later and it will run the included methods with the parameter you give it. Unit testing - ✔✔Verifies the functionality of a unit of code Integration testing - ✔✔Tests the interface between software components System testing - ✔✔The overall testing of the software platform Acceptance testing - ✔✔Testing performed by the customers to determine if the software is ready Regression testing - ✔✔Testing previous issues to ensure they are still fixed Arrays work best when - ✔✔the number of items is fixed and fast access is required What are the 4 stack operations? - ✔✔Push, Pop, Peek and Contains What are the 4 queue operations? - ✔✔Enqueue, Dequeue, Peek and Contains How does the QuickSorting method work? - ✔✔It partitions the list into two sides, sorts each side then produces the final result. It is faster than BubbleSort. How does the BubbleSort method work? - ✔✔It compares the first two items, swaps if necessary, then moves on to the next two items, etc. It will do a maximum of X-1 passes, where X equals the number of items in the list/array. Comparison and Sort operations. What two types of Acceptance testing are typically used? - ✔✔Alpha testing and beta testing. What are the 2 main types of testing: - ✔✔White-box - Done by people with access to the source code Black-box - Done by people without inside access in order to check that all requirements are present What does ++ do: - ✔✔The increment operator (++) increments its operand by 1. The increment operator can appear before or after its operand: For a good example http://msdn.microsoft.com/en-us/library/36x43w8w.aspx Selection Statements - ✔✔IF and SWITCH Iteration Statements - ✔✔While, do, for, and foreach because they assist in executing embedded statements multiple times. Jump Statements - ✔✔Break, continue, and goto - because they assist in jumping to a specific statement within code. FOR loop - ✔✔Executes a statement, or a block of statements, based on the value of a control variable (also called a counter). for loop Example - ✔✔for (int i = 0; i < 10; i++) Console.WriteLine(i); while loop - ✔✔Executes a statement or block of statements repetitively based on a Boolean expression. while Example - ✔✔int i = 0; while (i < 10) { Console.WriteLine(i); i++;} do while - ✔✔Similar to a while loop, but the Boolean expression is not checked until after the code executes do while example - ✔✔int i = 0; do { Console.WriteLine(i); i++;} while (i < 10); When does the for loop work best - ✔✔When the number of iterations is known and is unlikely to change. How many times does a do..while loop execute? - ✔✔At least one time Exception - ✔✔An object that contains information about an error. When an exception occurs it is - ✔✔thrown catch - ✔✔attempt to catch any exceptions your program may encounter. Catch block - ✔✔executes if an exception occurs [Show More]

Last updated: 1 year ago

Preview 1 out of 4 pages

Add to cart

Instant download

document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Add to cart

Instant download

Reviews( 0 )

$10.00

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

REQUEST DOCUMENT
51
0

Document information


Connected school, study & course


About the document


Uploaded On

Aug 17, 2022

Number of pages

4

Written in

Seller


seller-icon
Nutmegs

Member since 3 years

578 Documents Sold


Additional information

This document has been written for:

Uploaded

Aug 17, 2022

Downloads

 0

Views

 51

Document Keyword Tags


$10.00
What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·