Online Exam Quiz

questionQuestion  1 to 30

In MVC, how are changes in the Model reflected in the View?

  • Direct access
  • Events and data binding
  • AJAX calls
  • Direct updates
Mark for review

What does the View depend on in MVC?

  • Model
  • Controller
  • Service
  • Database
Mark for review

What is the role of the View in MVC?

  • Handles user input
  • Displays data
  • Manages business logic
  • Manages application state
Mark for review

Which of the following is a disadvantage of MVC?

  • Easier to manage complexity
  • Facilitates parallel development
  • Overhead of maintaining separation
  • Improves readability
Mark for review

Which of the following is an example of an MVC framework?

  • AngularJS
  • Django
  • React
  • Laravel
Mark for review

In MVC, where is the user input processed?

  • Model
  • View
  • Controller
  • Database
Mark for review

Which of the following best describes the MVC architecture?

  • Modular design
  • Linear workflow
  • Layered structure
  • Event-driven architecture
Mark for review

Which of the following is a correct usage of logic

  • <logic
  • <logic
  • <logic
  • <logic
Mark for review

What is a common challenge when using MVC?

  • Increased development speed
  • Easy to understand
  • Maintaining separation of concerns
  • Improved performance
Mark for review

How does the View access data from the Model?

  • Direct method calls
  • Through the Controller
  • Data binding
  • AJAX requests
Mark for review

How does the Model communicate with the View?

  • By calling View's methods
  • By updating data
  • By raising events or notifications
  • By sending HTTP responses
Mark for review

How does the MVC architecture enhance modularity?

  • By merging components
  • By separating concerns
  • By using global variables
  • By minimizing code reuse
Mark for review

What is the purpose of the Model in MVC?

  • Handle user input
  • Render the UI
  • Manage application data and rules
  • Manage sessions
Mark for review

What is the main purpose of the Controller in MVC?

  • Handle user input and update the Model
  • Display data
  • Manage database connections
  • Handle exceptions
Mark for review

What does the Controller send to the View in MVC?

  • Data
  • Commands
  • Events
  • Models
Mark for review

In MVC, where is the business logic implemented?

  • Model
  • View
  • Controller
  • Service
Mark for review

How do MVC frameworks usually handle user sessions?

  • In the View
  • In the Model
  • In the Controller
  • In the Database
Mark for review

What does the Controller update in MVC?

  • Model
  • View
  • Database
  • Session
Mark for review

Which layer in MVC handles data validation?

  • Model
  • View
  • Controller
  • Database
Mark for review

What is the main drawback of the traditional MVC architecture?

  • High maintainability
  • High scalability
  • Increased complexity in coordination
  • Low readability
Mark for review

In the context of MVC, what does "separation of concerns" mean?

  • Combining business logic and UI
  • Separating business logic, user interface, and input control
  • Merging data access with business logic
  • Integrating all components together
Mark for review

What is the role of the Controller in MVC?

  • Updates the View
  • Handles user input
  • Manages database
  • Handles exceptions
Mark for review

Which of the following is not an advantage of MVC?

  • Separation of concerns
  • Easy to test
  • Increased complexity
  • Better organization
Mark for review

Which of the following is a correct statement in struts-config.xml?

  • <message-resources parameter="com.example.resources.ApplicationResources" />
  • <messageResources parameter="com.example.resources.ApplicationResources" />
  • <resource-bundle parameter="com.example.resources.ApplicationResources" />
  • <resources parameter="com.example.resources.ApplicationResources" />
Mark for review

In which layer are user interfaces developed in MVC?

  • Model
  • View
  • Controller
  • Business Logic
Mark for review

Which of the following can be a disadvantage of using MVC?

  • Improved testability
  • Increased complexity
  • Clear separation of concerns
  • Enhanced maintainability
Mark for review

How do you forward a request to another action in Struts?

  • Using ActionForward
  • Using RequestDispatcher
  • Using ActionMapping
  • Using HttpServletRequest
Mark for review

Which of the following frameworks uses MVC architecture?

  • Flask
  • Spring
  • Express
  • Backbone.js
Mark for review

What type of pattern is typically used in the Controller of an MVC framework?

  • Factory
  • Adapter
  • Command
  • Singleton
Mark for review

What does MVC stand for?

  • Model View Controller
  • Model View Command
  • Module View Controller
  • Model Version Controller
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review