0% found this document useful (0 votes)
58 views2 pages

final exam server side web programming - ٠٢٠٤٤٣

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
58 views2 pages

final exam server side web programming - ٠٢٠٤٤٣

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
: ination Fist AttemPE) 4g wn 74 2 (Second Semester 2022-2023) tae tr [18 06/2023 - me Gner: | Dr Hasen A.Mogaibel__| Subject: | Server side Web Programming Answer all the following questions: QU) Answer the following ques ns in details, Justify your answer with an example and figure a when it is required. (10 Marks) 1) What is the session and why the developer may need to use the session in web application? 2) What is the authentication and explain how the middleware can be used to protocet your web sit? tr 3) What is Database Seeding? And explain how it could be used for testing ? try — 4) How dynamic web pages are processed in traditional traditional and MVC2 Q2) Short Answer Questions (10 Marks) 1) What is the syntax for passing data to a Blade template from a controller? Provide with example — 2) List three main features of laravels? 3) What do you know about PHP artisan? Mention some artisan command with example — 4) Explain the purpose of Laravel’s fillable and guarded properties on Eloquent models. 5) What is the purpose of the @foreach directive in Blade templates? Q3) Write PHP and laravel code to do the following task: (10 Marks) 1)Create a controller in laravel by emd? 2)Retrieve a single record from a table in Laravel? 3) Redirection to different action in different controller 4) Display collection of data passed to the view as collection of models Add the submitted object to your shopping cart and make sure there is no duplicate entry in the cart before perform add operation Q4) Choose the correct answer (10 Marks) 1+ Which of the following is/are correct about Laravel’s Artisan command-line interface? a. To help with front-end development. )To manage database migrations. . To optimize server performance. 4. To automate machine learning tasks, 2. Used to define a URL path ~@ Route and associated HTTP request method b. Controller c. URL 4. Artisan command 3 __ used to defines 1 user iterface for displaying data, a. Controller b. HTML, ® View qd. MVC p 4. Where do we need (o set database connection (a) Env file 'b. Config.php cc. Setting.php d. Inseed file 5. View files in Larayel end i 4G) blade.php b. -php \ ©. php.blade g. -laravel.php 6. What is ORM in laravel? 4) Object-relational Mapping ’b. Object-Rotational Mechanisim ©. Object-related Modifier 4. Overloaded-relational Mapping 7. APHP script should start with and end with a. ce: €b.) <2php 2> 2 < 22> d. <%php 2> 8. Winich wo predefined vai a) SGET & $SET S_GET &$ SET ©) GET & SET. in which extension? ies are used to retrieve information from forms 4) NONE —_ 9. Which of the following is used to create an array in PHP? a.array() -@)0 c.Both A and B d. Neither A nor B 10. What are the ways to get the data from database in laravel? a. Query Builder b. Eloquent ORM —© Both A &B d. None of these #Good Luckit

You might also like