Online Exam Quiz

questionQuestion  1 to 30

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

  • AngularJS
  • Django
  • React
  • Laravel
Mark for review

What principle does MVC promote to enhance application maintainability?

  • Tight coupling
  • Single responsibility
  • Open-closed principle
  • High cohesion
Mark for review

What kind of data does the View in MVC usually handle?

  • Raw database records
  • Processed data ready for display
  • Configuration data
  • User input only
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 MVC contribute to the testability of an application?

  • By separating concerns
  • By combining business logic and UI
  • By using singletons
  • By using tight coupling
Mark for review

How does MVC facilitate parallel development?

  • By allowing developers to work on separate components simultaneously
  • By merging all components together
  • By using the same codebase for all components
  • By avoiding code reviews
Mark for review

Which component handles user-generated events in MVC?

  • Model
  • View
  • Controller
  • Database
Mark for review

How do you ensure that the View in MVC does not handle business logic?

  • By using strong typing
  • By employing strict separation principles
  • By integrating all layers
  • By using inline code
Mark for review

Which of the following is a correct usage of logic

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

In MVC, where is the user input processed?

  • Model
  • View
  • Controller
  • Database
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

How does the MVC architecture enhance modularity?

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

Which of the following is a benefit of using MVC?

  • Reduces code duplication
  • Makes the code less readable
  • Increases the application's complexity
  • Limits scalability
Mark for review

Which part of MVC is typically responsible for updating the user interface?

  • Model
  • View
  • Controller
  • Service
Mark for review

What does the Controller update in MVC?

  • Model
  • View
  • Database
  • Session
Mark for review

tag in Struts?

  • name="list" property="items">
  • list="items" name="list">
  • name="list" items="property">
  • property="list" items="items">
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

In which layer are user interfaces developed in MVC?

  • Model
  • View
  • Controller
  • Business Logic
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

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

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

In MVC, where is the business logic implemented?

  • Model
  • View
  • Controller
  • Service
Mark for review

What is the main function of the View in MVC?

  • Interact with the database
  • Perform calculations
  • Render the user interface
  • Handle user input
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

In MVC, what does the Model notify the View about?

  • User inputs
  • Changes in data
  • Session states
  • HTTP responses
Mark for review

Which component in MVC architecture handles the HTTP requests?

  • Model
  • View
  • Controller
  • Middleware
Mark for review

What is the role of the Model in MVC?

  • Manages data and business logic
  • Manages user interface
  • Manages requests
  • Manages session state
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 do you forward a request to another action in Struts?

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

How does the Controller interact with the Model?

  • By directly modifying data
  • By updating the user interface
  • By sending commands to the Model
  • By handling events
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