1. What would you do to enable edit and continue while in release mode?
- A. This is not possible, as edit and continue only works in debug mode.
- B. Attach the process using the debug menu option, and enable breakpoints.
- C. Load the symbols file for release debugging from the Microsoft Public Symbol server.
- D. Press F5 to run the app and attach the debugger.
2. How can you determine the base type of Type A
?
- A.Properties
- A.InheritType
- A.ObjectType
- A.BaseType
varA
with a value of 42. What happens when you run the following command in the Command window?- An exception is thrown because 42 is not being compared to anything else.
- 42 is duplicated to the watch window.
- 42 is printed to the debugger.
- varA changed to null.
4.
Why is it important to set the name of a class project when it is created?
- A. Because the name of the assembly and root namespace are tied to the name of the project
- B. Because the name of the dynamic-link library (DLL) file and the master workspace are tied to the project name
- C. Because the default class must be in the master namespace
- D. Because the default project must be in the class namespace
5.
What functionality does pasting JSON as a class provide?
- A. Data to XML Mapping
- B. JSON to XML Mapping
- C. JSON to library mapping
- D. Data to object Mapping
. 6. When using the class viewer, not all of your C# class methods are displayed. What could be the reason for this?
- A. The method has private members and the "Show Private Members" option is not turned on
- B. The class likely has methods that break syntax rules.
- C. The class viewer only shows methods the current object uses, the current object must not use all of the methods.
- D. The method is from an inherited class that overrides the hidden members.
7. What change would you make if you were only trying to find file names with the word "address" in them?
- A. Filter out any results in file contents and external files by using the dropdown in Solution Explorer.
- B. Use the indicator next to the file names you do not want to use and hide them.
- C. Filter out any results in file contents and external files by using the dropdown in the Options page.
- Right click on the Solution name, click on the Search option, and enter "address" in the pop-up window
8. If you want to find a specific error in the list of errors, what would you do?
- Use the search box in the error list toolbar.
- Use the filter option to filter on error type.
- Use conditional breakpoints to filter the errors registered.
- Use the extension "Advanced Error Messages" to search.
9.
When coding in Visual Studio, you realize that IntelliSense's auto-complete features do not suit your preference. How could you configure your environment to use IntelliSense the way you prefer?
- Update the settings.json file attributes.
- Download a NuGet package for IntelliSense to override the default
- Toggle IntelliSense off in the main menu
- Use a general text editor for writing code snippets and copy them into Visual Studio.
10.
When should you use exclude instead of unload when adding a class library to an existing .NET solution?
When a project must be disassociated from a solution.
When a solution must be disassociated from a workspace.
When an item must be disassociated from a workspace.
When a project must be disassociated from an item.
11.
Multiple engineers in your company have the same source code for a small project. You run code coverage and notice that most of the code is not covered by automated testing. Your coworker wants to see the code coverage results to help write automated tests. How can your code coverage be shared with them?
Export the code coverage as a
.resultsxml
file and instruct the other user to save that file into the Visual Studio project.
- Export the code coverage as a .resultsjson file and instruct the other user to save that file into Visual Studio.
- Export the code coverage as a .coveragejson file and instruct the other user to backup that file into their Visual Studio solution. When a project must be disassociated from an item.
- Export the code coverage as a
.coveragexml
file and instruct the other user to then import that file into Visual Studio.
12.
If you open a file and split mode is enabled, what can you do to return the screen to normal sized viewing?
- Use the Remove Split on the Window menu command.
- Use the Undo command in the top left corner.
- Use the Disable auto-split command.
- Use the Cancel Split on the Tools command.
13.
You have a breakpoint set in a class with inherited methods. One of the methods is throwing an unhandled exception, causing the application to terminate. How can you view and debug the source code of the failing method?
- Install the error handler NuGet plugin.
- View the error log stack trace in the debug terminal.
- Right click the failing method name and select "Peek Definition".
- Right click the failing method in the "go to definition" feature.
14.
In Visual Studio, what is the difference between tab groups and split screen?
- With tab groups you are viewing the same file twice on the same screen, while, with split screen, you are viewing two different files on the same screen.
- With tab groups, you are viewing two different files on the same screen, while with split screen you are viewing the same file twice on the same screen. Right click the failing method name and select "Peek Definition".
- Tab groups are only available through the Window menu item, while split screen is only available through a right click menu item.
- Tab groups are only available through the Window menu item, while split screen is only available by dragging the file name to the middle of the screen.
15.
What parameter can you use with the Add Existing Item command to specify which editor you want to open a file in?
- /d
- /f
- /t
- /e
16.
What package console command would show all available packages from the default NuGet source?
- Get-Package -ListAvailable
- Find-Package -ListAvailable
- Find-package | select *
- Get-package | First 50
17.
How can you add your existing Visual Studio project to version control?
- Click on the "Add to Source Control" menu on the bottom status bar.
- On startup, click on the "Add to Source Control" checkbox.
- Select create a new repository in the existing project wizard.
- Right click on the console that displays your code and select the "Add to Source Control" option.
18. You are releasing a build in Visual Studio, you copy the .cs and .txt file types and release them to your test server. However, your application is not responding on the server. What is likely the cause for this?
- The file types mentioned are not release assemblies.
- There is a syntax error in one of the .cs files.
- Some of the .cs files are missing in the release bundle.
- The server needs to be restarted to reflect the change.
No comments:
Post a Comment