Posts

Accenture React Interview Experience

Recently, I appeared for an Accenture Frontend / React Developer interview . The interview covered JavaScript, React, accessibility, and performance optimization. Sharing some of the key questions and topics that were discussed. Introduction & Project Tell me about yourself. Explain your project, role, and responsibilities. Explain your project architecture. What challenges have you faced in your project? JavaScript What is Hoisting ? Give an example. What is a Closure ? Explain with an example. What is the difference between var, let, and const ? Explain the Event Loop . What are Promises and how do they work? Accessibility / WCAG What is WCAG ? Why is accessibility important? How do you make a React application accessible? What are ARIA attributes ? React What are React Hooks ? Difference between useState() and useRef() . Explain useEffect() . What is the difference between Context API and Redux ? What are Controlled and Uncontrolled Components ? Explain React rendering and reco...

Angular Developer Interview Questions

 If you are preparing for an Angular Developer interview , these are some common questions that cover JavaScript, HTML, CSS, TypeScript, Angular, Signals, APIs, testing, and coding . I have kept the questions simple and practical so they are easy to use for interview preparation. JavaScript Questions Why were Arrow Functions introduced when traditional functions already existed? Explain how the JavaScript Event Loop works. What are Callback Functions ? Explain Hoisting in JavaScript. What is the difference between var, let, and const ? What is the difference between map(), filter(), reduce(), and forEach() ? What is localStorage ? How is it different from sessionStorage ? Explain Prototype in JavaScript. HTML & CSS Questions What is the difference between relative, absolute, fixed, and sticky positioning? What are Semantic and Non-Semantic HTML elements ? Angular Questions Explain Angular Component Lifecycle Hooks . In which lifecycle hook should you call an API, and why? ...

TCS React.js Interview Questions

I recently appeared for a React.js / Frontend Developer interview at TCS . The interview was mainly focused on real-world scenarios, project experience, and problem-solving rather than only theoretical questions. I’m sharing some of the questions that were asked. These may help others who are preparing for React.js interviews. Project Discussion Explain your current project and your responsibilities. How is your application structured from frontend to backend? How do different modules communicate with each other? Tell me about a production issue you faced and how you fixed it. React.js Questions If changing one filter causes the whole page to re-render, how would you find and fix the issue? How would you manage a large form with multiple sections and validations? How would you prevent users from clicking Submit multiple times and creating duplicate API requests? For a real-time dashboard, would you use polling or WebSockets? Why? If a React component has become 1,000+ lines, how would...

Be 10x 10 tools from sessions

 gamma.app  create ppt paywallhub.com sci-hub.se ui.playground.ai  for creating images with prompt  app.yoodli.ai   for job search resume practice for your speech ChatGPT codedamn.com/ai    help to find out the bug in your code Gemini formula.dog creates the formula for Excel

Send email by Outlook in php Mailer

1. Enable Less Secure Apps Access (Not Recommended - Security Risk): Warning: This approach is generally not recommended due to security concerns. It allows access from any less secure app, including potentially malicious ones. Consider alternative methods (2 or 3) if possible. Sign in to your Microsoft account and navigate to Security Settings:  https://account.microsoft.com/account/manage-my-account Under "Advanced Security," select "Turn on two-step verification" (recommended for overall account security). Then, enable "Less secure apps" access ( use with caution ). 2. Use an App Password (Recommended): Generate an app password specifically for PHPMailer in your Microsoft account security settings. This password will be used in place of your regular Outlook password for enhanced security. 3. Configure PHPMailer: PHP <?php require 'vendor/autoload.php' ; // Assuming you have Composer installed use PHPMailer \ PHPMailer \ PHPMailer ; ...

Laravel Join with two coloums

 <?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Support\Facades\DB; class UserController extends Controller {     public function getUserOrders()     {         // Using Eloquent with inner join (default)         $usersWithOrders = User::join('orders', function ($join) {             $join->on('users.id', '=', 'orders.user_id');             $join->on('users.email', '=', 'orders.email'); // Additional join condition         })->get();         // Using DB facade with a more complex join (optional)         $complexJoin = DB::table('users')             ->select('users.id', 'users.name', 'orders.id as order_id', 'orders.product_id', 'orders.created_at')             ->join('orders', function ($join) {   ...

Second Highest Salary In SQL

 SELECT MAX(salary) AS second_highest_salary FROM employees WHERE salary < (   SELECT MAX(salary)   FROM employees ); select salary AS second_highest_salary  from emp order by desc limit 1,1 SELECT salary FROM (SELECT salary, ROW_NUMBER() OVER(ORDER BY salary DESC) as rank FROM `emp` ) emp where rank = 2; SELECT salary FROM (SELECT salary, DENSE_RANK() OVER(ORDER BY salary DESC) as rank FROM `emp` ) emp where rank = 2;