Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Question 1 of 60 · Introduction to .NET and its features · Easy
What is .NET primarily used for?
Not quite. Try another option.
Answer: Developing different types of applications
.NET is a software development platform used to build web, desktop, mobile, cloud, and other applications.
Question 2 of 60 · Introduction to .NET and its features · Easy
Which feature allows .NET applications to run on multiple operating systems?
Not quite. Try another option.
Answer: Cross-platform support
Modern .NET supports running applications on operating systems such as Windows, Linux, and macOS.
Question 3 of 60 · Difference between .NET Framework, .NET Core and .NET · Easy
Which platform was originally designed mainly for Windows applications?
Not quite. Try another option.
Answer: .NET Framework
.NET Framework is the original .NET implementation and is mainly associated with Windows.
Question 4 of 60 · Difference between .NET Framework, .NET Core and .NET · Easy
What is a major characteristic of .NET Core?
Not quite. Try another option.
Answer: It supports multiple operating systems
.NET Core was created as a cross-platform and open-source implementation of .NET.
Question 5 of 60 · .NET SDK and Runtime · Easy
What does the .NET SDK provide?
Not quite. Try another option.
Answer: Tools for building applications
The .NET SDK includes compilers, project templates, command-line tools, and other tools needed to develop applications.
Question 6 of 60 · .NET SDK and Runtime · Easy
What is the main purpose of the .NET Runtime?
Not quite. Try another option.
Answer: Running .NET applications
The .NET Runtime provides the components required to execute compiled .NET applications.
Question 7 of 60 · Common Language Runtime (CLR) · Easy
What does CLR stand for?
Not quite. Try another option.
Answer: Common Language Runtime
CLR stands for Common Language Runtime, which manages the execution of .NET programs.
Question 8 of 60 · Common Language Runtime (CLR) · Easy
Which service is commonly provided by the CLR?
Not quite. Try another option.
Answer: Automatic memory management
The CLR uses garbage collection to manage memory automatically for .NET applications.
Question 9 of 60 · .NET Class Library · Easy
What is the .NET Class Library?
Not quite. Try another option.
Answer: A collection of reusable classes
The .NET Class Library contains reusable types for tasks such as file handling, collections, networking, and text processing.
Question 10 of 60 · .NET Class Library · Easy
Which task can be supported by classes in the .NET Class Library?
Not quite. Try another option.
Answer: Reading and writing files
The .NET Class Library provides classes that simplify common programming tasks, including file input and output.
Question 11 of 60 · Setting up development environment using Visual Studio and VS Code · Easy
Which application is a full-featured IDE for .NET development?
Not quite. Try another option.
Answer: Visual Studio
Visual Studio is an integrated development environment that provides editing, debugging, project management, and other development features.
Question 12 of 60 · Setting up development environment using Visual Studio and VS Code · Easy
What is Visual Studio Code commonly described as?
Not quite. Try another option.
Answer: A lightweight source code editor
Visual Studio Code is a lightweight, extensible code editor that can support .NET development through extensions.
Question 13 of 60 · Introduction to .NET CLI and commonly used CLI commands · Easy
Which command creates a new .NET project?
Not quite. Try another option.
Answer: dotnet new
The dotnet new command creates a project using a specified template.
Question 14 of 60 · Introduction to .NET CLI and commonly used CLI commands · Easy
Which command builds a .NET project?
Not quite. Try another option.
Answer: dotnet build
The dotnet build command compiles the source code and creates the application build output.
Question 15 of 60 · Project structure in .NET applications · Easy
Which file commonly contains configuration for a .NET project?
Not quite. Try another option.
Answer: A project file with a .csproj extension
A C# project file uses the .csproj extension and stores project settings, target framework information, and references.
Question 16 of 60 · NuGet Package Manager · Easy
What is NuGet used for in .NET development?
Not quite. Try another option.
Answer: Managing reusable software packages
NuGet is the package manager for .NET and helps developers find, install, update, and remove libraries.
Question 17 of 60 · Building and executing .NET applications · Easy
Which command runs a .NET application from its project folder?
Not quite. Try another option.
Answer: dotnet run
The dotnet run command builds and runs a .NET application from its source project.
Question 18 of 60 · Introduction to C# · Easy
What type of programming language is C#?
Not quite. Try another option.
Answer: A general-purpose programming language
C# is a modern, general-purpose programming language commonly used to create .NET applications.
Question 19 of 60 · C# program structure · Easy
Which method is traditionally used as the starting point of a C# console program?
Not quite. Try another option.
Answer: Main
The Main method is the entry point where execution traditionally begins in a C# console application.
Question 20 of 60 · Introduction to Git and GitHub for source code management · Easy
What is Git mainly used for?
Not quite. Try another option.
Answer: Tracking changes in source code
Git is a version control system used to record, compare, and manage changes to files.
Question 21 of 60 · Introduction to .NET and its features · Medium
A development team wants to share business logic between applications running on Windows, Linux, and macOS. Which .NET feature most directly supports this requirement?
Not quite. Try another option.
Answer: Cross-platform application support
Modern .NET is cross-platform, allowing compatible applications and libraries to run on Windows, Linux, and macOS.
Question 22 of 60 · Introduction to .NET and its features · Medium
A C# application creates many temporary objects while processing requests. Which .NET feature automatically reclaims memory occupied by objects that are no longer reachable?
Not quite. Try another option.
Answer: Garbage collection
The .NET garbage collector automatically identifies unreachable managed objects and reclaims their memory.
Question 23 of 60 · Difference between .NET Framework, .NET Core and .NET · Medium
A company is starting a new cross-platform web service and wants the currently unified, actively developed .NET platform. Which platform should it choose?
Not quite. Try another option.
Answer: Modern .NET
Modern .NET is the unified successor to .NET Core and is the appropriate choice for new cross-platform applications.
Question 24 of 60 · Difference between .NET Framework, .NET Core and .NET · Medium
An existing application depends heavily on ASP.NET Web Forms and Windows-specific .NET Framework libraries. Which migration decision is most appropriate initially?
Not quite. Try another option.
Answer: Keep it on .NET Framework while assessing dependencies
ASP.NET Web Forms and some Windows-specific libraries are tied to .NET Framework, so compatibility must be assessed before migration.
Question 25 of 60 · .NET SDK and Runtime · Medium
A production server only needs to execute a framework-dependent .NET application and will never compile source code. What is the minimum appropriate installation?
Not quite. Try another option.
Answer: The matching .NET Runtime
The .NET Runtime contains what is needed to run an application, while the SDK additionally provides development and build tools.
Question 26 of 60 · .NET SDK and Runtime · Medium
A developer can run an existing .NET application but receives an error that the dotnet new command is unavailable. What is the most likely cause?
Not quite. Try another option.
Answer: Only the .NET Runtime is installed
dotnet new is an SDK command. A runtime-only installation can execute applications but does not provide project creation tools.
Question 27 of 60 · Common Language Runtime (CLR) · Medium
A C# project is compiled successfully, but its methods have not yet been translated into native processor instructions. What form is the compiled code typically in?
Not quite. Try another option.
Answer: Common Intermediate Language
C# compilation normally produces Common Intermediate Language, which the CLR later compiles into native code for execution.
Question 28 of 60 · Common Language Runtime (CLR) · Medium
When a managed .NET method is called for the first time, which CLR component commonly translates its intermediate code into native machine code?
Not quite. Try another option.
Answer: Just-in-time compiler
The just-in-time compiler translates intermediate language instructions into native code that the current processor can execute.
Question 29 of 60 · .NET Class Library · Medium
A developer needs to read a text file without writing operating-system-specific file access code. Which .NET class library type is the most appropriate starting point?
Not quite. Try another option.
Answer: System.IO.File
System.IO.File provides standard methods for reading, writing, and managing files through the .NET class library.
Question 30 of 60 · Setting up development environment using Visual Studio and VS Code · Medium
A developer is configuring VS Code for C# development on Linux. Which combination provides the essential compiler tools and editor language support?
Not quite. Try another option.
Answer: .NET SDK and a C# extension
The .NET SDK supplies project and compiler tools, while a C# extension adds language services such as completion and debugging support.
Question 31 of 60 · Introduction to .NET CLI and commonly used CLI commands · Medium
A developer wants to create a console project named InventoryApp in a new directory. Which command performs this task?
Not quite. Try another option.
Answer: dotnet new console -n InventoryApp
dotnet new console uses the console template, and -n InventoryApp sets the project and directory name.
Question 32 of 60 · Introduction to .NET CLI and commonly used CLI commands · Medium
A cloned project references several NuGet packages, but the package files are not available locally. Which command explicitly downloads the required dependencies?
Not quite. Try another option.
Answer: dotnet restore
dotnet restore resolves project dependencies and downloads the required NuGet packages.
Question 33 of 60 · Project structure in .NET applications · Medium
A developer needs to change a console application's target framework and enable nullable reference type analysis. Which file should be edited?
Not quite. Try another option.
Answer: The .csproj file
The project file stores build properties such as the target framework and the nullable reference type setting.
Question 34 of 60 · Project structure in .NET applications · Medium
After compiling a .NET project, a developer sees bin and obj directories. Which description correctly distinguishes them?
Not quite. Try another option.
Answer: bin holds final outputs, while obj holds intermediate files
bin contains build outputs such as assemblies, while obj contains intermediate files used during compilation.
Question 35 of 60 · NuGet Package Manager · Medium
A project requires the Newtonsoft.Json library, and the developer wants the dependency recorded in the project file. Which command should be used?
Not quite. Try another option.
Answer: dotnet add package Newtonsoft.Json
dotnet add package adds a NuGet package reference to the project and initiates dependency restoration.
Question 36 of 60 · NuGet Package Manager · Medium
Two developers restore the same project and should receive the same dependency graph when package versions have not changed. Which generated file helps NuGet use the resolved dependency information?
Not quite. Try another option.
Answer: obj/project.assets.json
project.assets.json records the dependency graph resolved by NuGet and is consumed by the build system.
Question 37 of 60 · Building and executing .NET applications · Medium
A developer has already built a project and wants to run it without triggering another build. Which command is most appropriate?
Not quite. Try another option.
Answer: dotnet run --no-build
dotnet run --no-build executes the previously built output without rebuilding the project.
Question 38 of 60 · Introduction to C# · Medium
A C# variable declared as int count = 5; must later store the value 5.75. Which change best preserves the fractional part?
Not quite. Try another option.
Answer: Change the type to double
double can represent fractional numeric values, whereas int stores only whole numbers.
Question 39 of 60 · C# program structure · Medium
Consider a traditional C# console application containing several classes. Which method signature can serve as its entry point?
Not quite. Try another option.
Answer: static void Main(string[] args)
In a traditional C# program, a static Main method with a valid return type and parameter form can act as the application entry point.
Question 40 of 60 · Introduction to Git and GitHub for source code management · Medium
A developer has modified Program.cs and wants to create a local Git snapshot before sending it to GitHub. Which command sequence is correct?
Not quite. Try another option.
Answer: git add Program.cs followed by git commit -m "Update program"
git add stages the file, and git commit records the staged change as a snapshot in the local repository.
Question 41 of 60 · Introduction to .NET and its features · Hard
A team needs to run the same application on Windows and Linux while preserving managed memory, type safety, asynchronous programming support, and access to a large standard library. Which .NET characteristic most directly enables this combination?
Not quite. Try another option.
Answer: Managed execution over a cross-platform runtime
The .NET runtime provides managed execution services and supports implementations across operating systems, while the class libraries provide common APIs.
Question 42 of 60 · Difference between .NET Framework, .NET Core and .NET · Hard
An existing ASP.NET application depends on System.Web and must remain hosted on IIS in a Windows-only environment. Which migration choice has the lowest compatibility risk?
Not quite. Try another option.
Answer: Keep it on a compatible version of .NET Framework
The unified modern .NET platform does not provide System.Web. Applications with that dependency generally remain on .NET Framework unless they are substantially rewritten.
Question 43 of 60 · .NET SDK and Runtime · Hard
A deployment server must execute a framework-dependent application but must not compile, restore, or create new projects. Which installation is normally sufficient?
Not quite. Try another option.
Answer: The matching .NET Runtime
A framework-dependent application requires the runtime and its shared frameworks to execute. The SDK is needed for development operations such as building and restoring.
Question 44 of 60 · Common Language Runtime (CLR) · Hard
A C# method allocates objects repeatedly, and no explicit deallocation occurs. Which CLR responsibility most directly prevents unreachable managed objects from remaining indefinitely in memory?
Not quite. Try another option.
Answer: Garbage collection
The CLR's garbage collector identifies managed objects that are no longer reachable and reclaims their memory automatically.
Question 45 of 60 · Common Language Runtime (CLR) · Hard
Two libraries written in different .NET languages exchange objects through public methods. Which CLR feature most directly makes this interoperability possible?
Not quite. Try another option.
Answer: A common type system
The Common Type System defines how types are represented and used, allowing different .NET languages to interoperate through compatible metadata and runtime types.
Question 46 of 60 · .NET Class Library · Hard
A project targets a modern .NET version and needs file access, collections, JSON serialization, and networking. Why can it use these APIs without implementing operating-system-specific versions of each feature?
Not quite. Try another option.
Answer: The .NET Class Library exposes standardized reusable APIs
The class library supplies reusable abstractions such as collections, file I/O, networking, and serialization while the runtime and platform implementation handle underlying details.
Question 47 of 60 · Setting up development environment using Visual Studio and VS Code · Hard
A developer can open a C# file in VS Code but receives unresolved project references and cannot run dotnet build. Which diagnosis is most accurate?
Not quite. Try another option.
Answer: The editor is installed, but the required SDK or extensions may be missing
VS Code is an editor. Building requires an installed compatible .NET SDK, and language features usually require an appropriate C# extension.
Question 48 of 60 · Setting up development environment using Visual Studio and VS Code · Hard
A Visual Studio solution opens successfully, but a web project lacks debugging support and cannot start with its expected profile. What is the most likely setup issue?
Not quite. Try another option.
Answer: The required Visual Studio workload or project components were not installed
Visual Studio workloads install project templates, SDK integrations, debugging tools, and related components. A missing workload can leave a project partially supported.
Question 49 of 60 · Introduction to .NET CLI and commonly used CLI commands · Hard
A developer wants to verify that a project compiles without producing output binaries in its normal output location. Which command best matches that intent?
Not quite. Try another option.
Answer: dotnet build --no-restore
dotnet build --no-restore builds the project while skipping the restore phase. The build still produces its normal artifacts, so the command verifies compilation but does not suppress all output.
Question 50 of 60 · Introduction to .NET CLI and commonly used CLI commands · Hard
A CI job must run an already-restored project and fail if a build is implicitly required. Which command expresses that requirement?
Not quite. Try another option.
Answer: dotnet run --no-build
dotnet run --no-build skips the build step and attempts to execute existing build output. It is useful when CI has already built the project.
Question 51 of 60 · Project structure in .NET applications · Hard
A project file contains a PackageReference, and the project has a Program.cs file but no manually maintained list of every source file. Which explanation is correct for modern SDK-style projects?
Not quite. Try another option.
Answer: The SDK implicitly includes conventional source files
SDK-style projects use default item inclusion, so files such as .cs files are normally included automatically unless the project changes that behavior.
Question 52 of 60 · Project structure in .NET applications · Hard
A project targets net8.0 and references a package that supports only net6.0. What is the most important compatibility question before assuming the reference will work?
Not quite. Try another option.
Answer: Whether the package has compatible assets or a compatible target framework
NuGet selects assets based on target-framework compatibility. A package targeting an older framework may work only when its assets are compatible with the consuming target.
Question 53 of 60 · NuGet Package Manager · Hard
A package reference is added to a project file, but a clean build on another machine fails because the package cannot be found. Which action is normally required before compilation?
Not quite. Try another option.
Answer: Run package restore
NuGet restore downloads the packages and resolves their dependency graph using project and lock information before compilation.
Question 54 of 60 · NuGet Package Manager · Hard
A project uses a package version range, and two developers restore it at different times and receive different transitive dependency versions. Which practice most directly improves reproducibility?
Not quite. Try another option.
Answer: Use a lock file and controlled package sources
A NuGet lock file can record the resolved dependency graph, while controlled sources reduce variation caused by changing or unintended feeds.
Question 55 of 60 · Building and executing .NET applications · Hard
A framework-dependent application is built on one machine and copied to another machine that lacks the required target runtime. What is the expected result when it is executed?
Not quite. Try another option.
Answer: The application usually fails because the required runtime is unavailable
Framework-dependent deployment expects the target machine to provide a compatible .NET runtime. It does not automatically package or install that runtime.
Question 56 of 60 · Building and executing .NET applications · Hard
A team wants a deployment artifact that can run on a target machine without requiring that machine to have the corresponding .NET runtime installed. Which approach is appropriate?
Not quite. Try another option.
Answer: Use a self-contained deployment
A self-contained deployment includes the required .NET runtime for a specified operating system and architecture, reducing runtime prerequisites on the target machine.
Question 57 of 60 · Introduction to C# · Hard
A method receives a string parameter and assigns a new string to that parameter. The caller's variable still refers to the original string. Which language behavior explains this result?
Not quite. Try another option.
Answer: Parameters are passed by value unless specified otherwise
A reference-type argument is passed by value by default, so the method receives a copy of the reference. Reassigning that copy does not change the caller's variable.
Question 58 of 60 · Introduction to C# · Hard
A nullable reference type warning appears when a value obtained from configuration is assigned to a non-nullable string. What does the warning primarily indicate?
Not quite. Try another option.
Answer: The compiler cannot prove that the value is non-null
Nullable reference type analysis is primarily a compile-time flow analysis. The warning indicates possible null use; it does not itself mean an exception has already occurred.
Question 59 of 60 · C# program structure · Hard
In a modern console project, a developer adds top-level statements and also declares a conventional static void Main() method. The project fails to compile. What is the most likely reason?
Not quite. Try another option.
Answer: Top-level statements generate an entry point, creating a conflict
Top-level statements are compiled into a generated entry-point type and method. Adding another entry point can make the startup method ambiguous or conflicting.
Question 60 of 60 · C# program structure · Hard
A file-scoped namespace declaration is followed by a second namespace declaration in the same file. Why is this invalid?
Not quite. Try another option.
Answer: A file-scoped namespace must be the only namespace declaration in its file
A file-scoped namespace applies to the remainder of the file and cannot coexist with another namespace declaration in that file.
That's unit 1
Answer a few questions and your score shows up here.
Nearly through. Did unit 1 of CSE253 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 1 of CSE253 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.