0% found this document useful (0 votes)
8 views4 pages

Laravel Paper 4

This document is a question paper for a B.Tech examination on Full-Stack Web Development using Laravel with Vue.JS at the Noida Institute of Engineering and Technology. It includes multiple choice questions and subjective questions divided into three sections, covering topics such as database migration, RESTful APIs, and Vue.js components. The exam is structured to assess students' understanding of Laravel and Vue.js concepts and their practical application.

Uploaded by

shuklaankit45470
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)
8 views4 pages

Laravel Paper 4

This document is a question paper for a B.Tech examination on Full-Stack Web Development using Laravel with Vue.JS at the Noida Institute of Engineering and Technology. It includes multiple choice questions and subjective questions divided into three sections, covering topics such as database migration, RESTful APIs, and Vue.js components. The exam is structured to assess students' understanding of Laravel and Vue.js concepts and their practical application.

Uploaded by

shuklaankit45470
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/ 4

.

Printed Page:- 04 Subject Code:- ACSE0612


Roll. No:

NOIDA INSTITUTE OF ENGINEERING AND TECHNOLOGY, GREATER NOIDA


(An Autonomous Institute Affiliated to AKTU, Lucknow)
B.Tech
SEM: VI - THEORY EXAMINATION (2023- 20 24 )
Subject: Full-Stack Web Development using Laravel with Vue.JS
Time: 3 Hours Max. Marks: 100
General Instructions:
IMP: Verify that you have received the question paper with the correct course, code, branch etc.
1. This Question paper comprises of three Sections -A, B, & C. It consists of Multiple Choice
Questions (MCQ’s) & Subjective type questions.
2. Maximum marks for each question are indicated on right -hand side of each question.
3. Illustrate your answers with neat sketches wherever necessary.
4. Assume suitable data if necessary.
5. Preferably, write the answers in sequential order.
6. No sheet should be left blank. Any written material after a blank sheet will not be
evaluated/checked.
.
SECTION-A 20
1. Attempt all parts:-
1-a. Select command to make migration in Laravel. (CO1)
2 4 1
(a)
(b)
php artisan migration table
php artisan make:migration create_tags_table 2 0
(c)
(d)
php artisan make-migration digit
None of these L Y
1-b.
J U
Select the purpose of a Restful Resource Controller. (CO1) 1
(a)
P .
To provide a way to authenticate users in a RESTful API.
(b)
(c)
(d)
O
To provide a way to manage resources in a RESTful API.

C
To provide a way to connect to a database in a RESTful API.
To provide a way to generate documentation for a RESTful API.
1-c. Choose the directive which is used to listen to an event on an element in Vue.js. 1
(CO2)
(a) v-on
(b) v-bind
(c) v-show
(d) v-model
1-d. Select the HTTP method which is used to partially update data on a server in 1
Inertia.js. (CO2)
(a) GET
.
Page 1 of 4
.

(b) POST
(c) PUT
(d) PATCH
1-e. Choose how we can override the default Laravel authentication configuration. 1
(CO3)
(a) By modifying the .env file
(b) By modifying the config/auth.php file
(c) By modifying the routes/web.php file
(d) By modifying the resources/views/auth/login.blade.php file
1-f. Select the command that is used to install Laravel Faker in a Laravel application. 1
(CO3)
(a) composer require laravel/faker
(b) composer install faker
(c) composer add faker/laravel
(d) composer faker/laravel require
1-g. Choose function from given option that is used to retrieve values from the 1
configuration file in Laravel (CO4)
(a) config()
(b) retrieve()
(c) settings()
2 4
1-h.
(d) get()

2 0
In Laravel, select a query event that is fired after a query is executed. (CO4) 1
(a)
(b)
L Y
Illuminate\Database\Events\QueryExecuted
Illuminate\Database\Events\QueryBuilding

JU
(c) Illuminate\Database\Events\QueryExecuting

1-i.
(d)

P.
Illuminate\Database\Events\QueryStarted
Choose which of the following command that is used to generate a new Laravel 1
controller. (CO5)
(a)
CO
php artisan generate:controller
(b) php artisan controller:make
(c) php artisan make:controller
(d) php make:controller
1-j. Choose the correct default location of the optimized autoload files in Laravel 1
Forge. (CO5)
(a) /vendor/autoload.php
(b) /vendor/composer/autoload.php
(c) /vendor/composer/autoload_real.php
(d) None of these

.
Page 2 of 4
.

2. Attempt all parts:-


2.a. Define purpose of Composer in Laravel. (CO1) 2
2.b. Define HTTP method which is used to retrieve data from a server in Inertia.js. 2
(CO2)
2.c. Discuss the authentication methods available in Laravel. (CO3) 2
2.d. Write steps to test if your Laravel application is properly connected to the 2
database. (CO4)
2.e. Differentiate deploying with Vapor and traditional hosting methods. (CO5) 2
SECTION-B 30
3. Answer any five of the following:-
3-a. Discuss the steps that how does Laravel handle database migration and schema 6
management. (CO1)
3-b. Define the role of the app/Providers directory in Laravel, and how can you add 6
custom service providers to your application. (CO1)
3-c. Give an example of how you would bind a value to the href attribute of an anchor 6
tag. What is the difference between using v-bind:href and :href. (CO2)
3-d. Elaborate how do you use the v-show directive to conditionally show an element 6
in Vue.js. (CO2)
3.e. Discuss Repository pattern in Laravel and how is it used. (CO3) 6
3.f.
4
Describe the difference between a "raw" query and a "compiled" query in Laravel
2
6

3.g.
Query Builder. (CO4)

2 0
Explain how you set up a production database for a Laravel application. (CO5) 6
SECTION-C
4. Answer any one of the following:-
L Y 50

4-a.

. JU
Explain terminable Middleware in Laravel and how does it work. Discuss the key
features of Terminable Middleware and how it differs from standard Middleware
10

4-b.
in Laravel. (CO1)

O P
Discuss the various benefits of using Method Injection, such as enabling optional 10

C
dependencies, facilitating method chaining, and simplifying the configuration of
dynamic dependencies. (CO1)
5. Answer any one of the following:-
5-a. Create a Vue.js application with a component that takes user input and displays it 10
in real-time. Use template syntax and expressions to achieve this functionality.
(CO2)
5-b. Implement a Vue.js component that displays a form with two input fields: 10
username and password. Use v-if and v-else to conditionally show different parts
of the form based on whether the user is already logged in or not. (CO2)
6. Answer any one of the following:-
6-a. Discuss how you can allow users to login using either their username or email in 10
.
Page 3 of 4
.

Laravel authentication. (CO3)


6-b. Explain how you can display an error message if the user enters an incorrect 10
username or email during login. (CO3)
7. Answer any one of the following:-
7-a. Elaborate the process for setting up a database connection in Laravel, and the 10
required configuration settings that need to be defined in Laravel's configuration
files. (CO4)
7-b. Show all the steps involved in creating and modifying database tables using 10
Laravel's migration system, and how does this system differ from traditional SQL
scripts. (CO4)
8. Answer any one of the following:-
8-a. Define some best practices for deploying a Laravel application to a cloud-based 10
hosting provider like AWS or Azure. (CO5)
8-b. Explain the concept of view caching in Laravel in detail, including its benefits and 10
limitations. Also, discuss how you can implement view caching in Laravel
applications. (CO5)

2 4
2 0
L Y
. JU
O P
C

.
Page 4 of 4

You might also like