.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.

Leave a Reply