0% found this document useful (0 votes)
11 views8 pages

ASP - Core Quiz

The document consists of a series of questions related to various .NET technologies, including .NET Framework, .NET Core, and ASP.NET versions. It covers topics such as platform capabilities, configuration files, design patterns, and hosting methods. The questions aim to assess knowledge on the differences and features of these technologies.

Uploaded by

yasir lashari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views8 pages

ASP - Core Quiz

The document consists of a series of questions related to various .NET technologies, including .NET Framework, .NET Core, and ASP.NET versions. It covers topics such as platform capabilities, configuration files, design patterns, and hosting methods. The questions aim to assess knowledge on the differences and features of these technologies.

Uploaded by

yasir lashari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

1. Which platform is Windows-only and used for legacy enterprise applications?

A) .NET Core
B) .NET Framework
C) .NET 8
D) ASP.NET Core

2. What is the final version of the classic .NET Framework?


A) .NET 5
B) .NET Core 3.1
C) .NET Framework 4.8
D) .NET 6

3. Which platform introduced cross-platform capabilities in 2016?


A) .NET Framework
B) ASP.NET
C) .NET Core
D) Xamarin

4. Which .NET version unified .NET Core, Xamarin, and .NET Framework?
A) .NET Core 3.0
B) .NET 4.8
C) .NET 6
D) .NET 5

5. What is the latest LTS version of unified .NET mentioned?


A) .NET 6
B) .NET 7
C) .NET 8
D) .NET Core 3.1

6. Which .NET technology is modular, lightweight, and fast?


A) .NET Framework
B) .NET Core
C) ASP.NET
D) MVC

7. ASP.NET (Classic) runs on which platform?


A) .NET Core
B) .NET 5
C) .NET Framework
D) .NET 8

8. Which hosting method does ASP.NET (Classic) support?


A) Apache
B) Kestrel
C) IIS
D) Nginx

9. What configuration file does ASP.NET (Classic) use?


A) settings.ini
B) Web.config
C) appsettings.json
D) config.xml

10. Which technology has limited support for dependency injection (DI)?
A) ASP.NET Core
B) ASP.NET (Classic)
C) .NET 8
D) Razor Pages

11. ASP.NET Core supports which type of hosting?


A) IIS only
B) Apache only
C) Self-hosting with Kestrel
D) Windows Services only

12. What configuration file is used in ASP.NET Core?


A) Web.config
B) appsettings.json
C) settings.xml
D) launch.json

13. Which ASP.NET version is cross-platform and high-performance?


A) ASP.NET Classic
B) ASP.NET MVC 3
C) ASP.NET Core
D) .NET Framework

14. What design pattern does MVC follow?


A) Singleton
B) Observer
C) Model-View-Controller
D) Strategy

15. In MVC, which part is responsible for handling user input?


A) Model
B) View
C) Controller
D) Middleware
16. What does the Model in MVC handle?
A) HTML Layout
B) Routing
C) Business Logic and Data
D) Authentication

17. What is the main purpose of the View in MVC?


A) Handle user requests
B) Display data
C) Manage sessions
D) Control routes

18. In MVC, what communicates between user and system?


A) Razor
B) Controller
C) Middleware
D) Tag Helper

19. What is the correct flow in MVC architecture?


A) View → Controller → Model → Response
B) User → View → Controller → Model
C) User → Controller → Model → View → Response
D) Model → View → Controller

20. What is Razor used for in MVC?


A) Routing
B) Styling
C) Displaying dynamic HTML
D) Managing database

21. Which .NET version is cloud-ready and cross-platform?


A) .NET Framework
B) .NET Core 2.2
C) .NET 5+
D) ASP.NET Classic

22. What does LTS stand for?


A) Long-Term Support
B) Light Technical Stack
C) Limited Testing Software
D) Latest Technical Solution

23. What is Kestrel?


A) A database engine
B) A testing framework
C) A cross-platform web server
D) A config file format

24. Which of the following is NOT cross-platform?


A) .NET Core
B) .NET 8
C) ASP.NET Classic
D) ASP.NET Core

25. What is the entry point for handling user requests in MVC?
A) Razor page
B) Controller
C) Model
D) View

26. What does the Grade property in the Model class represent?
A) A calculated property
B) A database column
C) A service
D) A Razor tag

27. In the real-life example, which platform is used for a cloud-hosted student portal?
A) .NET Framework
B) ASP.NET Classic
C) ASP.NET Core
D) MVC3

28. Which version of ASP.NET supports mobile API development easily?


A) Classic
B) ASP.NET Web Forms
C) ASP.NET Core
D) MVC 2

29. What language is typically used in the View file?


A) Java
B) Razor + HTML
C) SQL
D) XML

30. Which ASP.NET version uses Web.config for settings?


A) ASP.NET Core
B) ASP.NET Classic
C) .NET 8
D) MVC 6
31. What kind of apps is .NET Framework mainly used for?
A) Mobile
B) Legacy enterprise
C) Microservices
D) Console-only

32. Which .NET version is suitable for Linux-based deployment?


A) .NET Framework
B) ASP.NET
C) .NET Core
D) Web Forms

33. Which platform was introduced in 2020 to unify .NET technologies?


A) .NET Core
B) .NET Framework
C) .NET 5
D) ASP.NET Core

34. What is the main file used for configuration in modern .NET Core apps?
A) Web.config
B) App.config
C) appsettings.json
D) config.sys

35. Which design pattern helps in separation of concerns?


A) MVVM
B) MVC
C) Singleton
D) Factory

36. What is the return type of the controller method in the example?
A) IActionResult
B) JsonResult
C) Task
D) string

37. What platform does the example StudentResult class belong to?
A) Web Forms
B) Razor Pages
C) MVC
D) Blazor

38. What does Razor use to embed server-side code?


A) $
B) #
C) @
D) %

39. What is a key feature of ASP.NET Core regarding performance?


A) Heavy runtime
B) Slower request handling
C) High-performance
D) Tied to IIS

40. What platform is ideal for building microservices?


A) .NET Framework
B) ASP.NET Classic
C) .NET Core / .NET 5+
D) Web Forms

41. What does DI stand for in software architecture?


A) Direct Integration
B) Data Injection
C) Dependency Injection
D) Dynamic Inheritance

42. Which component of MVC holds business logic?


A) View
B) Model
C) Razor
D) Tag Helper

43. In ASP.NET Core, what replaces Web.config?


A) config.js
B) websettings.config
C) appsettings.json
D) razor.config

44. What does “self-hostable” mean in ASP.NET Core?


A) Requires cloud services
B) Runs only in IIS
C) Can run without IIS
D) Requires Windows

45. What’s one benefit of .NET Core over .NET Framework?


A) Supports only Windows
B) Slower performance
C) Modular and fast
D) No cross-platform support
46. What is the output type of a View file in MVC?
A) PDF
B) XML
C) HTML
D) JSON

47. What is a real-world use of ASP.NET Core mentioned in the PDF?


A) POS system
B) Library system
C) Student portal + API
D) Blogging platform

48. What is combined into unified .NET?


A) ASP.NET + Razor
B) Razor + MVC
C) .NET Core + Xamarin + .NET Framework
D) MVC + Web API + Web Forms

49. Which .NET version replaced .NET Core?


A) .NET Framework
B) .NET 6
C) .NET 5+
D) Xamarin

50. What does the Controller return in the example code?


A) JSON object
B) API response
C) View with Model
D) Empty string

51. What does “Unified .NET” refer to?


A) ASP.NET Core framework
B) .NET Core versioning
C) Combined modern .NET
D) Mono for Linux

52. MVC is most closely associated with which type of application?


A) Desktop
B) Console
C) Web
D) Mobile

53. Razor is used to create what kind of content?


A) SQL queries
B) JSON APIs
C) HTML + C# dynamic views
D) CSS styling

54. What does the "Grade" property use in its logic?


A) Regex
B) if-else
C) Ternary operator
D) Exception handling

55. Which component updates the model and returns a response?


A) Model
B) View
C) Controller
D) Service

56. Which file type contains Razor syntax?


A) .html
B) .cshtml
C) .json
D) .xml

57. .NET Core was officially replaced by which platform?


A) .NET Framework
B) .NET 8
C) ASP.NET Core
D) .NET (Unified)

58. Which platform allows hosting on macOS?


A) ASP.NET Classic
B) .NET Framework
C) .NET Core
D) MVC 3

59. In the MVC code example, how is the status of a student determined?
A) From database
B) Using if statements
C) Through a Grade property
D) From Razor input

60. What is a key trait of modern .NET platforms like .NET 8?


A) Windows-only
B) Combines legacy systems
C) Unified and cross-platform
D) Lacks DI support

You might also like