K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which directive is used for looping in Angular templates? (A) *ngIf (B) *ngSwitch (C) *ngFor (D) ngLoop 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) *ngFor Explanation: *ngFor is used to iterate over a collection in templates.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which file is the root module of an Angular application? (A) main.ts (B) index.html (C) app.module.ts (D) app.component.ts 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (C) app.module.ts Explanation: app.module.ts is the root module that bootstraps the Angular app.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which service is used to make HTTP calls in Angular? (A) HttpService (B) HttpClient (C) WebClient (D) ApiService 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) HttpClient Explanation: HttpClient service is used for HTTP communication in Angular.
K Kartik Sharma 🎓 Tutor III ⭐ 8.30K Points 📊 Angular Q. Which operator is used to bind data from component to template? (A) () (B) [] (C) [()] (D) {} 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) [] Explanation: Property binding uses square brackets [] to bind data.
K Kanak Sharma 🎓 Tutor III ⭐ 6.13K Points 📊 Laravel Q. Which Laravel file defines web routes? (A) routes/api.php (B) routes/web.php (C) routes/console.php (D) routes/channels.php 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) routes/web.php Explanation: web.php contains routes for web interface.
K Kanak Sharma 🎓 Tutor III ⭐ 6.13K Points 📊 Laravel Q. Which Laravel file defines API routes? (A) routes/web.php (B) routes/api.php (C) routes/console.php (D) routes/services.php 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) routes/api.php Explanation: api.php contains stateless API routes.
K Kanak Sharma 🎓 Tutor III ⭐ 6.13K Points 📊 Laravel Q. Which Laravel command creates a controller? (A) php artisan make:model (B) php artisan make:controller (C) php artisan make:view (D) php artisan make:route 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) php artisan make:controller Explanation: Creates a controller class.
K Kanak Sharma 🎓 Tutor III ⭐ 6.13K Points 📊 Laravel Q. Which Laravel command creates a migration? (A) php artisan make:model (B) php artisan make:migration (C) php artisan migrate (D) php artisan db:migrate 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) php artisan make:migration Explanation: Creates a migration file.
K Kanak Sharma 🎓 Tutor III ⭐ 6.13K Points 📊 Laravel Q. Which Laravel method returns a view? (A) render() (B) view() (C) returnView() (D) loadView() 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) view() Explanation: view() returns a Blade view.
K Kanak Sharma 🎓 Tutor III ⭐ 6.13K Points 📊 Laravel Q. Which Laravel feature handles HTTP request filtering? (A) Controllers (B) Middleware (C) Policies (D) Guards 👁️ Show Answer 💬 Discuss 🔗 Share ✅ Correct Answer: (B) Middleware Explanation: Middleware filters HTTP requests.