1. How users will be retrieved and authenticated?
A. driver
B. model
C. table
D. password
2. Authentic table Contract defines an interface for obtaining the user's unique identifier?
a. True.
b. False.
3. Which property identifies the columns that can be inserted or updated by way of the mass assignment?
a. $column
b. $hidden.
c. $fill able.
d. $table
4. $ Which property is used to identify columns that should not be passed into JSON or arrays?
a. $column
b. $hidden.
c. $fill able.
d. $table
5. A contract defines an interface to a particular implementation of a set of features
a. True.
6. How can you cache clear using artisan command?
a. $ PHP artisan route: cache
b. $ php artisan route: clear
c. $ php artisan route: remove
d. $ php artisan route: destroy
7. Within which file we can Config our database connectivity?
a. Config/database.php
b. Routes/web.php
c. Database/Model factory.php
d. App/address.php
8. Which artisan command use encoding and sterilizing cache in routes
a. $ PHP artisan route: cache
b. $ php artisan route: class
c. $ php artisan route: complied
d. $ php artisan route: cached
9. You shall migration the database in laravel?
a. True b
. False
10. What purpose of laravel forges in laravel?
a. Conjunction with another hosting service
b. Connection with the database.
c. Loading the full application.
11. Laravel currently supports several databases?
a. True
b. False
12. The _______ directory contains your project’s cache, session, and log data.
a. Database
b. Resources
c. Storage
d. Public
13. Which file is responsible for the application URL, time zone, and locale auto load service provider?
a. auth.php
b. app.php
c. cache.php
d. compile.php
14. Which file is responsible for user authentication?
a. auth.php
b. app.php
c. cache.php
d. compile.php
15. Which file allows you to define additional class files?
a. auth.php
b. app.php
c. cache.php
d. compile.php
16. Which file is needed to configure to use third-party service such as Mandrill for e-mail delivery?
a. filesystems.php
b. mail.php
c. services.php
d. session.php
17. Which file defines the default location of your project’s view?
a. filesystems.php
b. mail.php
c. config.php
d. view.php
18. Which directory contains “robot.txt” file?
A. app
B. public
C. Config
D. storage
19. The dd() is a
A. helper function
B. controller function
C. session function
D. none
20. Using Homestead, you don’t need to install laravel?
a. True
b. False
21. Which middleware is used to confirm a user is signed in to the application. If not, the user is redirected to the login page. ?
A. Authenticated.php
B. RedirectIfAuthenticated.php
C. VerifyCsrfToken.php
D. AuthenticatedRedirect.php
22. Which middleware is used to manage CSRF protection?
A. TokenVerifyCsrf.php
B. RedirectIfAuthenticated.php
C. VerifyCsrfToken.php
D. RedirectCsrfToken.php
23. Which middleware is used to confirm a user is not signed in to
The application if so the user is redirected to the homepage?
A. Authenticate::class
B. Authenticate With Basic Auth:: class
C. RedirectIfAuthenticated.php
D. Authenticated.php
24. How many types of middleware in laravel?
A. 1
B. 2
C. 3
D. 4
25. There are three types of middleware in laravel?
A. True
B. False
26. On Delete Cascade means deleting a user from the database will automatically delete corresponded data?
a. True
b. False
27. Keyword “Has Many” means
a. One to one relationship
b. One to many relationship
c. Many to many relationship
d. Belongs to relationship
28. The sync () method can accept an array?
a. True
b. False
29. How many parameters accept by Mail:: send method?
a. Two
b. Three
c. Four
d. Five
30. Which method is used when “edit” a record in Restful service?
a. Get
b. Post
c. Put
d. Delete
31. Which method is used when “destroy” a record in Restful service?
a. Get
b. Post
c. Put
d. Delete
32. How many parameters accept by Form:: select method?
a. Two
b. Three
c. Four
d. Five
. Helper
b. Library
c. Third party
d. None
34. The cross-site request forgery stored randomly generated value and also in a cookie
a. True
b. False
35. How to open a form in Laravel?
a. Form:: open
b. Form:: opens
c. Forms:: open
d. Forms:: opens
No comments:
Post a Comment