Assignment-Laravel Framework for Web Applications with PHP [2.0]-7062
Assignment-Laravel Framework for Web Applications with PHP [2.0]-7062
0 Sem2 LARAVEL
Book Name: Laravel Framework for Web Applications with PHP [2.0]
Q.1 In Laravel convention,________ are the preferred way to create records, not tables.
A. Keys B. Functions
C. Routes D. Strings
Correct Answer: Keys
Reference: Page no 33-34, Heading 2.3.4
Q.2 ________ act as a version control system for a database that includes many tables.
A. Database B. Storage
C. Chache D. Migration
Q.3 _Laravel uses the ________ design pattern to facilitate development of web application in a
quick and easy manner.
A. CakePHP B. Codelgniter
Q.4 Which of the following directories includes the views that will be used to
display the final Web pages as well as the un-compiled assests related to
JavaScript and CSS?
A. Bootstraps B. Resources
C. Storage D. Database
Q.5 Which of the following enables the user to add elements to the project that
follow the Laravel convention?
A. Expression and custom B. namespace and functions
Q.6 Although the Master Blade templates uses the ______ directive, it is replaced by the content in
the ______ directive of child templates.
Q.7 The main reason to use the query builder over writing SQL code manually is
because ______________.
B. it writes different SQL codes depending
A. it is rich in features
on the database being used
C. it has few SQLite directives D. it use configuration mode for migration
Correct Answer: it writes different SQL codes depending on the database being used
Q.8 Functions that are defined in the model and that replace by a long chain with a simple one are
called _______.
Q.9 The ________ file in the windows is the first file that is referenced when the operating system
tries to resolve a domain name.
A. hosts B. local
C. public D. .yaml
A. models B. views
C. scripts D. keys
Reference: Page no 38
Q.13 The ______ feature in the MVC design pattern eliminates the need to create
new files and multiple pages for a single application.
A. synchronizing B. formatting
C. collating D. editing
Q.14 Which of the following terms BEST describes the statement 'Codes can independent or
interchanged based on the requirement?
A. static B. modularity
C. irrevocable D. configuring
Q.12 The _______ method uses the URL, two arguments, and the closure
function that is executed in response to the URL.
A. put B. push
C. get D. set
A. Validation B. Pagination
C. Routing D. Authentication
Q.18. ________ acts as a version control system for a database that includes many tables.
A. Database B. Storage
C. Cache D. Migration
A. down B. up
C. create D. set
Q.20. The Bootstrap CSS framework uses the ________ helper function
A. get() B. sort()
C. pluck() D. asset()
Q.21. The basic contents of a Web application are written in the _________.
Q.22. When creating a record, it is necessary to include the ________ keyword array to prevent any
malicious attempt.
A. $fillable B. $rows
C. $columns D. $fields
C. get() D. all()
Q.24. Using which of the following methods can you select a column name?
A. retrieve() B. find()
C. all() D. get()
A. A collection object has multiple methods B. Defining the ID column during database
that return another collection object migration
Correct Answer: A collection object has multiple methods that return another collection
object
Reference: PAGE NO.83
Q.27. Which of the following enables the user to add elements to the project that follow the Laravel
convention?
A. Validation B. Pagination
C. Routing D. Authentication
Q.30. ________ acts as a version control system for a database that includes many tables.
A. Database B. Storage
C. Cache D. Migration
A. down B. up
C. create D. set
Correct Answer: up
Q.32. The Bootstrap CSS framework uses the ________ helper function
A. get() B. sort()
C. pluck() D. asset()
Q.33. The basic contents of a Web application are written in the _________.
Q.34. When creating a record, it is necessary to include the ________ keyword array to prevent any
malicious attempt.
A. $fillable B. $rows
C. $columns D. $fields
A. retrieve() B. find()
C. get() D. all()
Q.36. Using which of the following methods can you select a column name?
C. where D. find
A. retrieve() B. find()
C. all() D. get()
Correct Answer: A collection object has multiple methods that return another collection
object
Reference: PAGE NO.83
Q.39. Which of the following enables the user to add elements to the project that follow the Laravel
convention?
Q.40. Which of the following commands will help to verify that Composer is installed on the
computer?
A. GitBash B. ssh
C. cmd D. install
Q.41. A ________ is a case where the attributes of a model are blindly updated
Q.42. The _________ array enables a user to update any value in the same database.
A. $data B. $update
C. $revoke D. $edit
Q.43. The GNU License information appears when you install _______.
A. Composer B. Vagrant
C. Homestead D. GitBash