wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MVC Framework

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the purpose of the Model component in the MVC framework?

a)

Retrieve, add, and alter data from the database

b)

Handle user requests and manipulate data

c)

Render the user interface for the application

d)

Interact between the View and Controller components

2.

Which component in the MVC framework is responsible for the user interface?

a)

Model

b)

View

c)

Controller

d)

Database

3.

What is the role of the Controller component in the MVC framework?

a)

Retrieve, add, and alter data from the database

b)

Handle user requests and manipulate data

c)

Render the user interface for the application

d)

Interact between the Model and View components

4.

What are the benefits of using the MVC framework?

a)

Separation of business logic and presentation

b)

Changing/Updating of model and view independently

c)

Code reusability

d)

All of the above

5.

Which programming language is commonly used with the ASP.NET MVC framework?

a)

C#

b)

Python

c)

Ruby

d)

PHP

6.

Which MVC framework uses Python as its programming language?

a)

ASP.NET

b)

Django

c)

Ruby on Rails

d)

Laravel

7.

Which MVC framework is known for its high speed development?

a)

ASP.NET

b)

Django

c)

Ruby on Rails

d)

Laravel

8.

Which programming language is used in the Laravel framework?

a)

C#

b)

Python

c)

Ruby

d)

PHP

9.

What is the purpose of the CSRF protection in Laravel?

a)

Prevent unauthorized commands on behalf of an authenticated user

b)

Prevent cross-site scripting attacks

c)

Prevent SQL injection attacks

d)

Prevent denial of service attacks

10.

Which component in the MVC framework interacts between the Model and View?

a)

Model

b)

View

c)

Controller

d)

Database

11.

What is the purpose of the Eloquent ORM in Laravel?

a)

Handle HTTP requests

b)

Render the user interface

c)

Interact with the database

d)

Handle authentication

12.

Which folder in the Laravel framework contains the configuration files?

a)

app

b)

config

c)

public

d)

resource

13.

What is the purpose of the CSRF token in Laravel?

a)

Authenticate the user

b)

Encrypt sensitive data

c)

Prevent cross-site scripting attacks

d)

Prevent cross-site request forgeries

14.

What is the purpose of the Eloquent Relationships in Laravel?

a)

Manage and work with database relationships

b)

Handle user authentication

c)

Render the user interface

d)

Handle HTTP requests

15.

Which folder in the Laravel framework contains the routes?

a)

app

b)

config

c)

public

d)

routes