Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
328 Cards in this Set
- Front
- Back
You want to declare an integer variable called myVar and assign it the value 0. How can you accomplish this? a. declare myVar as 0; b. myVar = 0; c. int myVar = 0 d. int myVar = 0; |
d |
|
You need to make a logical comparison where two values must return true in order for your code to execute the correct statement. Which logical operator enables you to achieve this? a. AND b. | c. & d. &&
|
c, d |
|
What kind of result is returned in the condition portion of an if statement? a. Boolean b. Integer c. Double d. String |
a |
|
If you want to iterate over the values in an array of integers called arrNumbers to perform an action on them, which loop statement enables you to do this? a. foreach (int number in arrNumbers) |
a |
|
What is the purpose of break; in a switch statement? |
b |
|
What are the four basic repetition structures in C#? |
c |
|
How many times will this loop execute? |
b |
|
What are the keywords supported in an if statement? |
b |
|
In the following code sample, will the second if structure be evaluated? if(condition) |
a |
|
Which of the following is NOT a comparison operator? |
b |
|
Which of the following is the correct syntax for executing the following statements in an if statement? |
b |
|
Which of the following looping structures must end with a semicolon? |
c |
|
How do you handle multiple switch statements with one condition in a switch structure? |
d |
|
In a for statement, when does the incrementing of the counter take place? |
b |
|
When can you assign a value to a variable? |
c |
|
How can you tell when a statement has ended in C#? |
d |
|
What is a declaration statement used for in C#? |
b |
|
Which of these is not a valid C# statement? |
c |
|
What is one common characteristic of complex statements? |
b |
|
In a complex if, else if structure, what keyword can be used to denote the final condition? |
d |
|
What is the maximum value you can store in an int data type? |
d |
|
True or false: Double and float data types can store values with decimals. |
true |
|
Which declaration can assign the default value to an int type? |
b |
|
True or false: structs can contain methods. |
true |
|
What is the correct way to access the firstName property of a struct named Student? |
a |
|
In the following enumeration, what will be the underlying value of Wed? |
b |
|
What are two methods with the same name but with different parameters? |
a |
|
What is the parameter in this method known as? |
b |
|
When you create an abstract method, how do you use that method in a derived class? |
b |
|
How do you enforce encapsulation on the data members of your class? |
a, c |
|
Boxing refers to: |
b |
|
What is one advantage of using named parameters? |
a |
|
What is an advantage of using generics in .NET? |
b |
|
What does the designator indicate in a generic class? |
c |
|
How are the values passed in generic methods? |
b |
|
You want to create a type in your code that stores multiple values of differing types but don’t need the full facilities of a class file. What is the value type that can serve your needs? |
b |
|
You can change the increment of Enumerations. True or false? |
false |
|
Overloading a method can be accomplished by changing only the order of the parameters. True or false? |
false |
|
Optional parameters in a method must exist where in the parameter list? |
b |
|
What modifier is used on the properties of a class? |
c |
|
To parse a string that might contain a currency value such as $1,234.56, you should pass the Parse or TryParse method which of the following values? |
c |
|
Which of the following statements is true for widening conversions? |
d |
|
Which of the following statements is true for narrowing conversions? |
b |
|
Assuming total is a decimal variable holding the value 1234.56, which of the following statements displays total with the currency format $1,234.56? |
c |
|
Which of the following statements generates a string containing the text "Veni, vidi, vici"? |
c |
|
If i is an int and l is a long, which of the following statements is true? |
a |
|
Which of the following methods is the best way to store an integer value typed by the user in a variable? |
d |
|
The statement object obj = 72 is an example of which of the following? |
c |
|
If Employee inherits from Person and Manager inherits from Employee, which of the following statements is valid? |
a |
|
Which of the following is not a String method? |
c |
|
Which of the following techniques does not create a String containing 10 spaces? |
d |
|
Which of the following statements can you use to catch integer overflow and underflow errors? |
a |
|
Which of the following techniques should you use to watch for floating point operations that cause overflow or underflow? |
c |
|
Which of the following are narrowing conversions? |
b, f, g |
|
Which of the following are widening conversions? |
a, c, d, e, h |
|
If the Manager class inherits from the Employee class, and the Employee and Customer classes both inherit from the Person class, then which of the following are narrowing conversions? |
a, b, f . (In a sense you could technically consider g and h to be considered narrowing conversions, but actually they are just invalid conversions.) |
|
If the Manager class inherits from the Employee class, and the Employee and Customer classes both inherit from the Person class, then which of the following are widening conversions? |
c, d, e |
|
During which of the following conversions might there be a loss of precision? |
a, b, e, f |
|
Suppose the Customer class inherits from the Person class, cust is a Customer variable that holds a reference to a Customer object, and person is a Person variable that holds a reference to a Person object. Then which of the following statements will fail at design time? |
a |
|
Suppose the Customer class inherits from the Person class, cust is a Customer variable that holds a reference to a Customer object, and person is a Person variable that holds a reference to a Person object. Then which of the following statements will fail at run time? |
c |
|
Which of the following methods enables a program to parse an integer entered in a TextBox by the user? |
a, b, e |
|
Which of the following string methods breaks a delimited string into pieces? |
b |
|
Which of the following string methods combines an array of values into a single delimited string? |
c |
|
Which of the following statements correctly casts a float into an int? |
b |
|
Which of the following methods does not convert a floating point value into an integer type value? |
d |
|
Which of the following methods lets you retrieve four 16-bit values that are packed into a 64-byte value returned by an API function? |
d |
|
Which of the following methods converts a 32-bit integer value into an array of bytes? |
b |
|
In the following two statements, where does boxing occur? |
c |
|
After executing the following two C# statements, which of the following is true? |
d |
|
When working with API functions, a variable with a name that begins with lpsz has what data type? |
a |
|
What purpose does a dynamic data type serve? |
c |
|
Which of the following methods formats the variable amount as currency? |
a |
|
Which of the following methods converts the current date into a string that is appropriate for the user’s locale? |
b, c, d |
|
Which the following statements about the base keyword is false? |
c |
|
Which the following statements about the this keyword is false? |
b |
|
Suppose you have defined the House and Boat classes and you want to make a HouseBoat class that inherits from both House and Boat. Which of the following approaches would not work? |
a |
|
Suppose the HouseBoat class implements the IHouse interface implicitly and the IBoat interface explicitly. Which of the following statements is false? |
b |
|
Which of the following is not a good use of interfaces? |
d |
|
Suppose you want to make a Recipe class to store cooking recipes and you want to sort the Recipes by the MainIngredient property. In that case, which of the following interfaces would probably be most useful? |
b |
|
Suppose you want to sort the Recipe class in question 6 by any of the properties MainIngredient, TotalTime, or CostPerPerson. In that case, which of the following interfaces would probably be most useful? |
c |
|
Which of the following statements is true? |
c |
|
A program can use the IEnumerable and IEnumerator interfaces to do which of the following? |
a |
|
Which of the following statements about garbage collection is false? |
d |
|
Which of the following statements about destructors is false? |
c |
|
If a class implements IDisposable, its Dispose method should do which of the following? |
d |
|
If a class has managed resources and no unmanaged resources, it should do which of the following? |
b |
|
If a class has unmanaged resources and no managed resources, it should do which of the following? |
a |
|
1. What keyword do you use to make a constructor invoke a base class constructor? |
a |
|
2. What keyword do you use to make a constructor invoke a different constructor in the same class? |
d |
|
3. Suppose the Person class provides two constructors that do different things and you derive the Student class from Person. Suppose you want to make a Student constructor that does what both of the Person constructors do. Which of the following strategies would give you this result? |
b, d |
|
4. Suppose you have created Boat and Car classes, and you want to make an AquaticCar class. Which of the following approaches would work? |
b, c, d |
|
5. Suppose you have created a Boat class that contains several hundred lines of code and a Car class that contains only a few dozen lines of code. Now suppose you want to make an AquaticCar class. Rank the following approaches so that the best approach comes first. |
b, c, d |
|
6. Suppose you’re building a network application. The Node and Link classes represent a network’s nodes and connecting links. Assuming both of those classes use managed resources, which of the following tasks should the classes do to manage those resources? |
a, b |
|
7. Suppose the Polygon class uses managed resources. Which of the following tasks should the class do to manage its resources? |
a, b |
|
8. Suppose the PriceData class uses unmanaged resources. Which of the following tasks should the class do to manage its resources? |
a, b, c |
|
9. After freeing resources, which of the following should the Dispose method do? |
b |
|
10. Under which of the following circumstances should a program not call an object’s Dispose method? |
a, b |
|
11. If you make a Person class and a Student class with the obvious inheritance relationship, then the Person class is which of the following? |
b, e |
|
12. If you make a Person class and a Student class with the obvious inheritance relationship, then the Student class is which of the following? |
a, c, d |
|
13. If you define a class, how many parent classes can you define for it? |
a, b |
|
14. If you define a class, how many child classes can you define for it? |
d |
|
15. If you define a class, what is the maximum number of interfaces that it can implement? |
d |
|
16. If you define an interface, what is the maximum number of classes that can implement it? |
d |
|
17. Suppose the IStudent interface defines the method PrintGrades. If the TeachingAssistant class explicitly implements the interface, then which of the following statements is true? |
b, e |
|
18. Suppose the IStudent interface defines the method PrintGrades. If the TeachingAssistant class implicitly implements the interface, then which of the following statements is true? |
a, c, e |
|
19. The Array.Sort method can sort an array of objects if their class implements which of the following interfaces? |
b |
|
20. A List object’s Contains method returns true if a particular object is in the List but only if the object’s class implements which method? |
d |
|
Which of the following is a valid delegate definition? |
d |
|
Which of the following statements is not true of delegate variables? |
a |
|
If the Employee class inherits from the Person class, covariance lets you do which of the following? |
b |
|
If the Employee class inherits from the Person class, contravariance lets you do which of the following? |
c |
|
In the variable declaration Action processor, the variable processor represents which of the following? |
b |
|
In the variable declaration Func processor, the variable processor represents which of the following? |
a |
|
Suppose F is declared by the statement Func F. Then which of the following correctly initializes F to an anonymous method? |
d |
|
Suppose the variable note is declared by the statement Action note. Then which of the following correctly initializes note to an expression lambda? |
c |
|
Suppose the variable result is declared by the statement Func result. Which of the following correctly initializes result to an expression lambda? |
d |
|
Which of the following statements about statement lambdas is false? |
b |
|
Suppose the MovedEventHandler delegate is defined by the statement delegate void MovedEventHandler(). Which of the following correctly declares the Moved event? |
d |
|
Suppose the Employee class is derived from the Person class and the Person class defines an AddressChanged event. Which of the following should you not do to allow an Employee object to raise this event? |
b |
|
Which of the following statements subscribes the myButton_Click event handler to catch the myButton control’s Click event? |
a |
|
Suppose the Car class provides a Stopped event that takes as parameters sender and StoppedArgs objects. Suppose also that the code has already created an appropriate StoppedArgs object named args. Then which of the following code snippets correctly raises the event? |
c
guys, we think b may also work. What do you think? I know c is the standard. |
|
Which of the following statements about events is false? |
c |
|
Which of the following statements about inheritance and events is false? |
a |
|
Which of the following statements about exception handling is true? |
a |
|
Which of the following methods can you use to catch integer overflow exceptions? |
d |
|
Which of the following returns true if variable result holds the value float.PositiveInfinity? |
d |
|
Which of the following statements about throwing exceptions is false? |
b |
|
Which of the following should you not do when building a custom exception class? |
c |
|
Which of the following statements creates a delegate type named MyFunc that represents a method that takes a parameter that is an array of decimal values and returns a decimal result? |
d |
|
If rate is a delegate variable that takes a float parameter and returns a float result, which of the following statements will work assuming x is a float variable? |
b, d |
|
If rate is a delegate variable that refers to the method Rate, then what is the practical difference between calling rate or Rate? |
d |
|
Which of the following can you do with delegate variables? |
a, b, c, d |
|
Which of the following statements about delegates is true? |
b, c, d |
|
Which of the following is a built-in delegate type that represents a method that returns void? |
c |
|
Which of the following is a built-in delegate type that represents a method that returns a value? |
b |
|
If variable note is declared as a delegate variable that takes no parameters and returns no value, which of the following statements could you use to initialize note? |
a |
|
If variable note is declared as a delegate variable that takes a string parameter and returns no value, which of the following statements could you use to initialize note? |
c, d |
|
Which of the following statements about expression lambdas is true? |
a, b |
|
Which of the following statements about statement lambdas is true? |
c, d |
|
Which of the following correctly declares a variable notify so that it can hold a reference to a method that takes no parameters and returns no result? |
a |
|
Which of the following correctly declares a variable fxy so that it can hold a reference to a method that takes two floats as parameters and returns a float result? |
c |
|
When you declare an event, which of the following is always required? |
c
guys we think it may need to be b also. What do you think? |
|
When you define an event, Microsoft recommends which of the following? |
a, b, d |
|
If you have defined an appropriate LostEventType delegate type and the LostEventArgs class, which of the following statements could you use to declare the Lost event?
|
a, b, d |
|
The finally section in a try-catch-finally block executes under which of the following conditions? |
a, b, c, d, e, f |
|
If a try-catch-finally block’s catch section throws an exception, which of the following might occur (if the appropriate code is in place)? |
a, b, d |
|
In a try-catch-finally block, the catch sections are examined in which order? |
e |
|
Which of the following could happen after a catch section executes (assuming the appropriate code is in place)? |
b, c |
|
Which of the following constructs could you use to make a particular piece of code to execute repeatedly until it succeeds? |
a |
|
You are a developer at company xyx. You have been asked to improve the responsiveness of your WPF application. Which solution best fits the requirements? |
a |
|
How do you execute a method as a task? |
d |
|
Which of the following is not a locking mechanism? |
d |
|
How can you schedule work to be done by a thread from the thread pool? |
c, d |
|
Which of the following are methods of the Parallel class? |
b, c, d |
|
Which method can you use to cancel an ongoing operation that uses CancelationToken? |
b |
|
Which method would you call when you use a barrier to mark that a participant reached that point? |
c |
|
What code is equivalent with lock(syncObject){…}? |
c |
|
In a multithreaded application how would you increment a variable called counter in a lock free manner? Choose all that apply. |
c, e |
|
Which method will you use to signal and EventWaitHandle? |
c |
|
You are given an assignment to create a code generator to automate the task of creating repetitive code. Which namespace contains the types needed to generate code? |
d |
|
Which code can create a lambda expression? |
c |
|
You are consulting for a company called Contoso and are taking over an application that was built by a third-party software company. There is an executable that is currently not working because it is missing a DLL that is referenced. How can you figure out which DLLs the application references? |
b |
|
You are a developer for a finance department and are building a method that uses reflection to get a reference to the type of object that was passed as a parameter. Which syntax can be used to determine an object’s type? |
d |
|
You are asked to create a custom attribute that has a single property, called Version, that allows the caller to determine the version of a method. Which code can create the attribute? |
b |
|
Which class in the System.Reflection namespace would you use if you want to determine all the classes contained in a DLL file? |
b |
|
Which method of the Assembly class allows you to get all the public types defined in the Assembly? |
c |
|
Which property of the Assembly class returns the name of the assembly? |
d |
|
Which method of the Assembly class returns an instance of the current assembly? |
a |
|
Which syntax will Load an Assembly? (Choose all that apply) |
a, b, c, d |
|
Which method should you call if you want the .NET Framework to look in the load-context to load an Assembly? |
c |
|
Which method should you call if you want the .NET Framework to look in the load-from context? |
b |
|
Which line creates an instance of a DataTable using reflection? |
a |
|
Which class would you create if you wanted to determine all the properties contained in a class using reflection? |
d |
|
How can you determine if a class is public or private? |
a |
|
Which class in the System.Reflection namespace is used to represent a field defined in a class? |
b |
|
Which property of the Type class can you use to determine the number of dimension for an array? |
d |
|
Which statement will returns a private, instance field called "myPrivateField" using reflection? Assume the myClass variable is an instance of a class. |
a |
|
Which method of the MethodInfo class can be used to execute the method? |
b |
|
Which statement uses reflection to execute the method and passes in two parameters given the following code block? |
c |
|
Which class name follows the standard naming convention for a custom attribute class? |
b |
|
How can you limit the scope of a custom attribute that you are creating so that it can be used only by a class? |
b |
|
If you have created a custom attribute class called DataMappingAttribute and have used it in a class called Person, which statement will return all the DataMappingAttributes that have been applied to the Person class? |
d |
|
Which class in the CodeDOM is the top-level class that is the container for all other objects within the class? |
b |
|
Which statement generates a namespace statement using the CodeDOM? |
c |
|
Which class in the CodeDOM is used to create a statement that declares a class? |
c |
|
Which statement should be added to the following block of code to set a field’s type to a double using the CodeDOM? |
a |
|
Which property of the CodeMemberProperty class should be set to true to tell the compiler to generate a set accessor using the CodeDOM? |
b |
|
Which class in the CodeDOM is used to represent either the this keyword in C# or the Me keyword in VB.NET? |
d |
|
Which property of the CodeConditionStatement is used to add statements to the true path of logic using the CodeDOM? |
b |
|
Which class in the CodeDOM is used to call a method? |
b |
|
Which class in the CodeDOM is used to generate a class file? |
a |
|
You are looking at the output of a file generated using the CodeDOM. The file is in C# and you notice that the brackets for all your methods are not on separate lines. Which property of the CodeGeneratorOptions class can you use to force the brackets to be on separate lines, and what should the property be set to? |
c |
|
Which statement is a valid expression lambda? |
b (Answer b is an expression lamba; answer c is a statement lambda) |
|
Which statement should be on the left side of a goes to operator if you want to pass two parameters to a lambda expression? |
b |
|
What is the correct delegate declaration for the following method? |
b |
|
True or false? You can reference local variables that are not passed as parameters in an anonymous method. |
a |
|
Which method of the CodeDOMProvider generates a code file? |
c |
|
Which class in the CodeDOM is used to create a method declaration statement? |
c |
|
Which is the => syntax referred to as in a lambda expression? |
b |
|
Which object does the variable mySet inherit from? |
c |
|
Which type should you use to store objects of different types but do not know how many elements you need at the time of creation? |
d |
|
If you create a custom class that is going to be used as elements in a List object and you want to use the Sort method of the List object to sort the elements in the array, what steps must you take when coding the custom class? |
b |
|
Which collection would you use if you need to process the items in the collection on first-in-first-out order? |
b |
|
Which collection would you use if you need to process the items in the collection on a last-in-first-out order? |
c |
|
Which collection would you use if you need to quickly find an element by its key rather than its index? |
a, c |
|
Which ADO.NET object is used to connect to a database? |
b |
|
Which properties of an ADO.NET Command object must you set to execute a stored procedure? |
c |
|
Which Command object’s method would you use to execute a query that does not return any results? |
a |
|
Which Command object’s method would you use to execute a query that returns only one row and one column? |
c |
|
Which ADO.NET object is a forward only cursor and is connected to the database while the cursor is open? |
a |
|
Which ADO.NET Command object’s property would you use when a query returns the SUM of a column in a table? |
c |
|
Which ADO.NET object is a fully traversable cursor and is disconnected from the database? |
c |
|
Which method of a DataAdapter is used to populate a DataSet? |
b |
|
Which property of an ADO.NET DataAdapter is used to insert records in a database? |
c |
|
Which ADO.NET Command object’s property would you use when a query returns the SUM of a column in a table? |
c |
|
When using the ADO.NET Entity Framework you create a Model that represents the object in the database. What class does the Model inherit from? |
a |
|
How are stored procedures represented in the ADO.NET Entity Framework? |
b |
|
Which code uses the ADO.NET Entity Framework to add a record to the database? db.Categories.Add(category); db.Categories.Add(category); db.Categories.Insert (category); db.Categories.Insert(category); |
a |
|
Which code uses the ADO.NET Entity Framework to update a record in the database? c. d. |
c |
|
Which code uses the ADO.NET Entity Framework to delete a record? |
b |
|
When you create a WCF Data Service, what two steps must you take to expose an Entity? |
a, b |
|
What is the default form of the data returned from a WCF Data Service? |
c |
|
What querystring parameter can you use to select only records from the Categories table where the CategoryName is equal to Beverages? |
d |
|
What querystring can you use to select the Category record with a primary key of 1? |
b, d |
|
What querystring parameter can you use to select the CategoryName for the record with a primary key of 1? |
a, c |
|
Which code creates an instance of the NorthwindsEntities data model that is exposed as a WCF Data Service? |
b |
|
Which code adds a record using WCF Data Services? db.Categories.Add(category); db.AddToCategories(category); db.Categories.Add(category); db.AddToCategories(category); |
b |
|
Which code is used to update a record using a WCF Data Service? db.UpdateObject(category); db.SaveChanges(); db.UpdateObject(category); db.UpdateObject(category); |
c |
|
Which code can delete a record using a WCF Data Service? |
d |
|
Which object is a static class that enables you to perform operations on a file? |
b |
|
What method on the DirectoryInfo object can return all subdirectories within the directory? |
c |
|
Which class is used to read and write data to and from a file? |
a |
|
Which FileMode enumeration would you use if you want to create a new file or overwrite an existing file? |
b |
|
Which FileMode enumeration would you use if you want to create a new file to open the file if it exists? |
a, d |
|
Which FileMode enumeration would you use if you want to create a new file or throw an exception if the file already exists? |
a |
|
Which FileAccess enumeration would you use if you want to read and write to a file? |
d |
|
Which FileShare enumeration would you use if you do not want to allow any other process to access the file while you have it open? |
d |
|
Which method of the StreamReader object reads the next character in the file? |
a |
|
Which keyword is used to modify a method that contains a call to an asynchronous method? |
b |
|
Which keyword is used to call a method and suspend execution until that method returns? |
a |
|
Which object serialized an object to binary format? |
b |
|
Which attribute must be set for a class for it to be serialized? |
c |
|
Which code can serialize the Person object in binary format? |
c |
|
Which class can you use to serialize an object to XML? |
b |
|
Which attribute can you use to prevent a property from being serialized to XML? |
d |
|
Which attribute must you place before the declaration of a class to allow it be serialized as JSON? |
c |
|
Which attribute must be placed before a property for it to be serialized as JSON? |
b |
|
Which object is used to serialize an object to JSON? |
c |
|
Which attribute must you use if you want to perform custom serialization? |
a, b, c, d |
|
Which interface can you implement if you want to implement custom serialization? |
a |
|
Which two steps must you take to implement custom serialization when implementing the ISerializable interface? |
a, d |
|
Which answer has the correct order of keywords for a LINQ query expression? |
c |
|
Which where clause can select all integers in the myList object that are even numbers given the following from clause? |
c |
|
Which line of code executes the LINQ query? |
d |
|
Which method can you use to find the minimum value in a sequence? |
a |
|
Which methods can you use to find the first item in a sequence? |
b, d |
|
Which where clause returns all integers between 10 and 20? |
b |
|
Which clause orders the state and then the city? |
c |
|
Which statement selects an anonymous type? |
c |
|
Which on statement joins two sequences on the StateId property? |
a |
|
Which two keywords must you use in a join clause to create an outer join? |
b |
|
Which join clause uses a composite key? |
a |
|
Which statement groups a sequence by the State property? |
c |
|
Which answers return the count of all even numbers? |
a, b |
|
Which types can be queried using LINQ? |
a, c, d |
|
Which keyword is used to create an implicitly typed variable? |
c |
|
Which syntax is a valid from clause in a LINQ query expression? |
c |
|
Which statement is a proper where clause in a LINQ query expression? |
b |
|
Which answer contains the predicate clause? |
b |
|
True or false? The where clause can appear anywhere in a LINQ query expression except the first and last clause? |
a |
|
Which clause in a LINQ query expression can sort the results? |
b |
|
What is selecting a limited number of properties or transforming the result into a different type referred to as? |
d |
|
What is an object that contains read-only properties that is not explicitly declared referred to as? |
b |
|
Which type does a groupby clause return from a LINQ query expression? |
a |
|
Which method-based query is used to filter a sequence? |
d |
|
Which method-based query can be used to sort elements in a sequence descending? |
b |
|
Which method-based query can be used to project the results of a sequence? |
a |
|
Which method-based query would you use to perform an outer join on two sequences? |
c |
|
15. Which method-based query can be used to group elements of a sequence? |
b |
|
Which method-based query can concatenate two sequences similar to how a UNION clause works in a SQL statement? |
d |
|
Which method-based query can be used return all elements in a sequence after a specified index? |
a |
|
Which method-based query limits the number of elements returned from a sequence? |
b |
|
Which class can be used to transform a sequence to XML? |
b |
|
Which method-based query can be used to select a unique list of elements in a sequence? |
c |
|
If the user is typing data into a TextBox and types an invalid character, which of the following actions would be inappropriate for the program to take? |
d |
|
If the user types an invalid value into a TextBox and moves focus to another TextBox, which of the following actions would be inappropriate for the program to take? |
a
guys, we are not real sure about this answer. What do you think? |
|
If the user enters some invalid data on a form and then clicks the form’s Accept button, which of the following actions would be appropriate for the program take? |
d |
|
Which of the following methods returns true if a regular expression matches a string? |
b |
|
Which of the following regular expressions matches the Social Security number format ###-##-#### where # is any digit? |
c |
|
Which of the following regular expressions matches a username that must include between 6 and 16 letters, numbers, and underscores? |
b |
|
Which of the following regular expressions matches license plate values that must include three uppercase letters followed by a space and three digits, or three digits followed by a space and three uppercase letters? |
a |
|
Which of the following statements about assertions is true? |
d |
|
Which of the following statements about the Debug and Trace classes is true? |
b |
|
Which of the following statements about builds is true by default? |
a, b, d |
|
Which of the following statements about PDB files is false? |
b |
|
Which of the following statements about tracing and logging is false? |
d |
|
Which of the following methods would probably be the easiest way to find bottlenecks in a program if you had no idea where to look? |
a |
|
What of the following is the best use of performance counters? |
b |
|
Which of the following events occurs if a program sets the Validating event’s e.Cancel value to true? |
a, d |
|
Which of the following can a program use to verify that the user has entered a value in the FirstNameTextBox. |
c, e |
|
3. Which of the following methods should you use to verify that a TextBox should contain an integer value? |
d |
|
How could you determine that values such as “-.” are valid initial pieces of a valid floating point value? |
d |
|
Which of the following string methods returns the index of the first occurrence of a string within another string? |
c |
|
Which of the following string methods can you use to remove a particular character from a string? |
b |
|
Which of the following string methods can you use to remove characters in a particular location in a string? |
a |
|
Which of the following string methods can you use to get characters from a particular position in a string? |
d |
|
Which of the following regular expression methods returns true if a string matches a particular pattern? |
c |
|
Which of the following regular expressions matches any number of vowels? |
b |
|
Which of the following regular expressions matches between 1 and 3 uppercase letters? |
b |
|
Which of the following regular expressions matches either of the strings true or false? |
a |
|
Which of the following matches a 7-digit U.S. phone number? |
b, d |
|
Which of the following form events lets a program validate the entries on the form and refuse to close if they are incorrect? |
b |
|
Which of the following statements about the Debug and Trace classes are true? |
a, c |
|
Which of the following statements about Debug and Trace listeners is true? |
a, b, c, d, e |
|
Which of the following statements about system event logs is true? |
a, d |
|
When Visual Studio’s profiler uses the CPU sampling method, how does it measure an application’s performance? |
a |
|
When Visual Studio’s profiler uses the instrumentation method, how does it measure an application’s performance? |
b |
|
For which of the following would performance counters be helpful? |
b, d |
|
You are a developer at company xyx. You have been asked to implement a method to safely save and restore data on the local machine. What kind of algorithm best fits the requirements? |
a |
|
You are a developer at the company xyx. You have been asked to implement a method to safely send data to another machine. What kind of algorithm best fits the requirements? |
b |
|
You are a developer at the company xyx. You have been asked to implement a method to handle password encryption without offering the possibility to restore the password. What kind of algorithm best fits the requirements? |
c |
|
Which of the following code snippets will you use to calculate the secure hash of a byte array called userData? If you already have created an algorithm object called sha. |
b |
|
Which of the following code snippets will you use to encrypt an array called userData that can be decrypted by anyone logged in on the current machine, and without using any entropy? |
b |
|
Which of the following code will you use to encrypt an array called encryptedData that can be encrypted by the current user, and without using any entropy? |
a |
|
What describes a strong name assembly? |
f |
|
How can you deploy a strong named assembly? |
a, b, d |
|
How can you deploy a private assembly? |
b, c |
|
What is a strong name assembly? |
e |