.net full stack foundation coursera week 1 answers
.Net Core Basics - Practice Quiz
1. What is .NET Core?
- A web framework
- A mobile application development platform
- A cross-platform, open-source framework for building modern, cloud-based, and internet-connected applications
- An operating system for Microsoft Windows
2. What is the difference between .NET Framework and .NET Core?
- .NET Framework is open-source while .NET Core is closed source.
- .NET Framework can run on multiple operating systems while .NET Core is limited to only Windows.
- .NET Framework is primarily used for Windows desktop applications while .NET Core is designed for modern, cloud-based, and internet-connected applications.
- There is no difference between .NET Framework and .NET Core.
3. What is .NET Core Version History?
- .NET Core has only been released in one version.
- .NET Core has been released in multiple versions, with the latest being .NET 7.0.
- .NET Core has been discontinued and is no longer being updated.
- .NET Core is only available as a beta release.
4. How do you set up a development environment for .NET Core using Visual Studio or VS Code?
- Install the .NET Core SDK and then use any text editor to write code.
- Install Visual Studio or VS Code and then install the .NET Core SDK.
- You cannot use Visual Studio or VS Code to develop .NET Core applications.
- You only need to install the .NET Core runtime to develop .NET Core applications.
5. What are some features of .NET Core?
- .NET Core is designed only for Windows-based applications.
- .NET Core is only used for desktop applications.
- .NET Core is open-source, cross-platform, and includes support for modern application development features like containerization and microservices.
- .NET Core is closed-source and only available for enterprise-level applications.
Architecture & CLI Practice Quiz
6. What is the .NET CLI?
- A programming language used to build .NET applications.
- A command-line interface for working with .NET Core.
- A graphical user interface for working with .NET Core.
- A database management tool for working with .NET applications.
7. What command is used to create a new .NET Core console application using the .NET CLI?
- dotnet new classlib
- dotnet new mvc
- dotnet new console
- dotnet new web
8. What is the Core CLR?
- A compiler for the C# programming language.
- A framework for building Windows desktop applications.
- A component of the .NET Core platform that provides the runtime environment for .NET Core applications.
- A command-line interface for working with .NET Core.
9. What command is used to build a .NET Core application using the .NET CLI?
- dotnet run
- dotnet publish
- dotnet build
- dotnet restore
10. What is the purpose of the dotnet new command in .NET CLI?
- To build a .NET Core console application.
- To run a .NET Core console application.
- To compile a .NET Core console application.
- To create a new project or file based on a specified template.
ASP .NET - Graded Quiz
11. What is .NET CLI?
- A software library used for developing desktop applications.
- A command-line interface used for developing, building, and managing .NET projects and applications.
- A programming language used for developing web applications.
- A tool used for database management in .NET applications.
12. Which of the following is not a .NET CLI command?
- dotnet new
- dotnet run
- dotnet test
- dotnet stop
13. What is the .NET Core platform?
- A platform for developing desktop applications in .NET.
- A platform for developing web applications in .NET.
- A platform for developing mobile applications in .NET.
- All of the above.
14. Which of the following is not part of the .NET Core platform?
- Language compilers.
- Core CLR.
- JavaFX.
- coreFx.
15. What is a .NET Core console application?
- An application that runs in the web browser.
- An application that runs on the server.
- An application that runs on the desktop.
- A command-line application that runs on the .NET Core platform.
16. What is the .NET CLI used for?
- To build and run .NET applications.
- To create and manage virtual machines.
- To develop mobile applications.
- To manage network infrastructure.
17. What is the command used to create a new .NET Core console application?
- dotnet run
- dotnet new
- dotnet new console
- dotnet build
19. What is the command used to restore dependencies for a .NET Core project?
- dotnet run
- dotnet restore
- dotnet build
- dotnet new
20. Which of the following is a command used to create a new .NET Core console application with the .NET CLI?
- dotnet restore
- dotnet build
- dotnet run
- dotnet new console
21. What is the .NET Core platform?
- A software library for building web applications.
- A cloud-based platform for building and deploying .NET applications.
- A platform for managing database systems in .NET applications.
- A platform that includes language compilers, the Core CLR, and coreFx.
22. What is the .NET CLI command to create a new console application in C#?
- dotnet new mvc
- dotnet new webapi
- dotnet new classlib
- dotnet new console
23. What is the .NET CLI command to build a .NET Core project?
- dotnet run
- dotnet publish
- dotnet build
- dotnet clean
24. Which of the following is not a language compiler supported by .NET Core?
- C#
- Visual Basic
- F#
- Java
25. Which of the following is a component of the .NET Core platform that provides a set of APIs for building applications?
- .NET Core CLI
- Core CLR
- coreFx
- Both B and C