To adjust the opacity of an element, Bootstrap utilizes the 'opacity-___' class.
- 75
- 1
- 5
- 2
The 'opacity-{number}' class in Bootstrap is used to adjust the opacity of an element, where the number can be between 0 and 1. For example, 'opacity-0.5' sets the opacity to 50%.
Describe how the 'position' utility classes are used in Bootstrap.
- Sets the position of an element to static
- Positions an element absolutely within its containing element
- Aligns an element to the center of the viewport
- Floats an element to the left
The 'position' utility classes in Bootstrap are employed to control the positioning of elements. The class 'position-static' sets the position to static, while 'position-absolute' positions an element absolutely within its containing element. This flexibility is crucial for achieving desired layouts and designs in a Bootstrap-based project.
You have just started with ASP.NET Core and are looking at some code. You notice @Model.Name. In the context of Razor views, what is the @Model referencing?
- Controller Action Method
- Database Table
- CSS Class
- JavaScript Function
In Razor views, @Model is referencing the data provided by the corresponding Controller Action Method. It's a way to pass data from the controller to the view for rendering. @Model.Name would typically access the 'Name' property of the model passed from the controller.
You're building a custom registration form for an ASP.NET Core application, and you want to ensure that users provide a strong password. Which configuration in ASP.NET Core Identity should you adjust?
- Password Length
- Password Complexity
- Password Expiry
- Password Hashing
To ensure strong passwords, you should adjust the Password Complexity configuration in ASP.NET Core Identity. This configuration allows you to specify requirements like uppercase letters, digits, special characters, etc., making passwords more secure.
One of the features of ASP.NET Core is its ability to run on _________ platforms.
- Android
- Linux
- Windows
- macOS
One of the key features of ASP.NET Core is its ability to run on Linux platforms, in addition to Windows and macOS. This cross-platform compatibility makes it a versatile choice for web application development, allowing deployment on a wide range of server environments.
Which attribute is typically used to identify a custom Tag Helper in Razor Views?
- [TagHelper]
- [CustomTag]
- [Tag]
- [Helper]
The correct attribute typically used to identify a custom Tag Helper in Razor Views is [TagHelper]. This attribute marks a class as a Tag Helper, allowing it to be recognized and used in Razor Views. It's a crucial part of creating custom HTML elements or attributes that the Razor View Engine can process on the server-side.
For command-line operations in ASP.NET Core development, the _________ is an indispensable tool.
- dotnet CLI
- Visual Studio
- Sublime Text
- IntelliJ IDEA
For command-line operations in ASP.NET Core development, the dotnet CLI (Command Line Interface) is an indispensable tool. It allows developers to perform tasks like project creation, building, testing, and publishing without relying on an IDE. The CLI is essential for cross-platform development and automation.
To ensure users do not use easily guessable passwords like "password123," you'd implement the _________ option in ASP.NET Core Identity.
- Password Complexity
- Two-Factor Authentication
- Account Lockout
- Password Strength
Implementing the "Password Complexity" option in ASP.NET Core Identity helps enforce strong password policies, preventing users from setting easily guessable passwords. It typically includes requirements for length, character types, and complexity to enhance security.
Which of the following files replaced project.json in .NET Core 2.0 and later versions?
- .csproj
- .config
- .jsonproj
- .xmlproj
The project.json file was replaced by the .csproj file in .NET Core 2.0 and later versions. .csproj files use XML to define project structure and dependencies, replacing the simpler JSON-based project.json format.
In attribute routing, the [Route("products/{id}", Order = 2)] attribute will prioritize this route ______ other routes with no order specified.
- over
- above
- before
- instead of
In attribute routing, when specifying the 'Order' property, a lower value indicates a higher priority. So, the route with 'Order = 2' will prioritize this route above other routes with no order specified. This allows you to control the order in which routes are matched and executed.