Coder Baba
2.41K subscribers
1.01K photos
23 videos
722 files
723 links
Everything about programming for beginners.
1 and only official telegram channel of CODERBABA India.

Content:
.NET Developer,
Programming (ASP. NET, VB. NET, C#, SQL Server),
& Projects
follow me https://linktr.ee/coderbaba
*Programming
*Coding
*Note
Download Telegram
Are you preparing for an SQL interview? Here are some essential SQL questions to help you ace your next interview! ๐Ÿ‘จโ€๐Ÿ’ป๐Ÿ“Š
๐Ÿ” Basic SQL Concepts:
๐Ÿ“Œ Explain the difference between SQL and NoSQL databases.
๐Ÿ“Œ What are the common data types in SQL?
๐Ÿ“‹ Querying:
๐Ÿ“Œ How do you retrieve all records from a table named "Customers"?
๐Ÿ“Œ What is the difference between SELECT and SELECT DISTINCT in a query?
๐Ÿ“Œ Explain the purpose of the WHERE clause in SQL queries.
๐Ÿ”— Joins:
๐Ÿ“Œ Describe the types of joins in SQL (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN).
๐Ÿ“Œ How would you retrieve data from two tables using an INNER JOIN?
๐Ÿ“Š Aggregate Functions:
๐Ÿ“Œ What are aggregate functions in SQL? Can you name a few?
๐Ÿ“Œ How do you calculate the average, sum, and count of a column in a SQL query?
๐Ÿ” Grouping and Filtering:
๐Ÿ“Œ Explain the GROUP BY clause and its use in SQL.
๐Ÿ“Œ How would you filter the results of an SQL query using the HAVING clause?
๐Ÿ”„ Subqueries:
๐Ÿ“Œ What is a subquery, and when would you use one in SQL?
๐Ÿ“Œ Provide an example of a subquery in an SQL statement.
๐Ÿ”ง Indexes and Optimization:
๐Ÿ“Œ Why are indexes important in a database?
๐Ÿ“Œ How would you optimize a slow-running SQL query?
๐Ÿ“š Normalization and Data Integrity:
๐Ÿ“Œ What is database normalization, and why is it important?
๐Ÿ“Œ How can you enforce data integrity in a SQL database?
โš™๏ธ Transactions:
๐Ÿ“Œ What is a SQL transaction, and why would you use it?
๐Ÿ“Œ Explain the concepts of ACID properties in database transactions.
๐Ÿ“‹ Views and Stored Procedures:
๐Ÿ“Œ What is a database view, and when would you create one?
๐Ÿ“Œ What is a stored procedure, and how does it differ from a regular SQL query?
๐Ÿ”ฅ Advanced SQL:
๐Ÿ“Œ Can you write a recursive SQL query, and when would you use recursion?
๐Ÿ“Œ Explain the concept of window functions in SQL.
๐Ÿ“Œ For more SQL insights and tutorials, follow #coderbaba and stay tuned for more updates! ๐Ÿ’ก
#SQL #SQLServer #Database #InterviewPreparation #Coding #Programming
Follow @Coder_baba
๐Ÿ‘3
๐Ÿš€ Master SQL for Interviews! ๐Ÿ“Š

๐Ÿ’ก SQL Challenge: Ready to test your skills? Hereโ€™s a commonly asked SQL Interview Question that you must know to ace your next job interview! ๐Ÿ‘‡

๐Ÿ”ฅ Question:
Write a SQL query to calculate the cumulative sum of sales for each employee. The result should include:
๐Ÿ‘‰ EmployeeID
๐Ÿ‘‰ SaleDate
๐Ÿ‘‰ CumulativeSales



--SQL Code to Create the Table:

CREATE TABLE Sales (
EmployeeID INT,
SaleDate DATE,
SaleAmount DECIMAL(10, 2)
);


--Insert Sample Data into the Table

INSERT INTO Sales (EmployeeID, SaleDate, SaleAmount) VALUES
(1, '2024-01-01', 100.00), -- Employee 1 made a sale of 100 on Jan 1
(1, '2024-01-02', 150.00), -- Employee 1 made another sale on Jan 2
(1, '2024-01-03', 200.00), -- Employee 1 made another sale on Jan 3
(2, '2024-01-01', 120.00), -- Employee 2 made a sale on Jan 1
(2, '2024-01-02', 180.00), -- Employee 2 made another sale on Jan 2
(3, '2024-01-01', 200.00), -- Employee 3 made a sale on Jan 1
(3, '2024-01-03', 100.00), -- Employee 3 made a sale on Jan 3
(3, '2024-01-04', 50.00); -- Employee 3 made another sale on Jan 4

โœจ Hereโ€™s the SQL Query Solution:
WITH CumulativeSales AS (
SELECT
EmployeeID,
SaleDate,
SaleAmount,
(SELECT SUM(SaleAmount)
FROM Sales AS S2
WHERE S2.EmployeeID = S1.EmployeeID
AND S2.SaleDate <= S1.SaleDate) AS CumulativeSales
FROM Sales S1
)
SELECT
EmployeeID,
SaleDate,
SaleAmount,
CumulativeSales
FROM CumulativeSales
ORDER BY EmployeeID, SaleDate;

๐Ÿ“Œ For a detailed explanation and additional learning, watch my YouTube video: ๐ŸŽฅ
https://youtu.be/baWTD9S0dpY

๐Ÿ‘‰ Follow for More Insights: @coder_baba
๐Ÿ“Œ Don't forget to share this post with others preparing for technical interviews!

#SQLInterviewQuestions #DatabaseSkills #SQLServer #LearnSQL #InterviewPreparation #CumulativeSum #CodingTips #coderbaba
๐Ÿ‘1
๐Ÿš€ #Nagarro Recent Interview Questions ๐Ÿš€

๐Ÿ“Œ Round 1 : ( Aptitude and Technical Round Online Test)

๐Ÿ‘‰ Online aptitude round consists of verbal ability questions , and there was time limit ,
โฑ๏ธmake sure to pick other question if you don't know answer ,
๐Ÿ‘‰ Topics Covered:

RestAssured API ๐Ÿ–ฅ
Good Level Java Programs ๐Ÿ’ป
---------------------------------------------------------------------------------
๐Ÿ“Œ Round 2 : ( Technical )
๐Ÿ‘‰ Write Java Program to find the maximum sum subarray.
๐Ÿ‘‰ How System.out.println( ) works ?
๐Ÿ‘‰ Write code to achieve multiple Inheritance using Interface ?
๐Ÿ‘‰ Why String is immutable in Java ? StringBuffer use.
๐Ÿ‘‰How would you design test cases for an application where the requirements are not clear?
๐Ÿ‘‰ Suppose you have 10 test cases and they are failing randomly what will be your approach on fixing those scripts.
๐Ÿ‘‰ What is Bug Life cycle , explain in detail.
๐Ÿ‘‰ Suppose you are working with multiple tabs in selenium, how would you wait in selenium ,until the number of opened tabs should be equal to 4
๐Ÿ‘‰ How to wait for the file download to finish in selenium ?
๐Ÿ‘‰ What are dataProviders in testNg. ?
๐Ÿ‘‰ What are challenges you faced while working with framework ?
๐Ÿ‘‰ What are listeners in testNg ?
๐Ÿ‘‰ Share screen and asked to write xpath using sibling concept.
๐Ÿ‘‰ Is there any situation where you didn't agreed with developer and how did you handled them.
๐Ÿ‘‰ Do you know factory design pattern ?
----------------------------------------------------------------------------------
๐Ÿ“Œ Round 3 : ( Technical round )
๐Ÿ‘‰ How would you decide that I need to stop testing for a particular feature
๐Ÿ‘‰ Suppose requirements are not clear to you what is your approach ?
๐Ÿ‘‰ How would you handle calendars in Selenium ?
๐Ÿ‘‰ Actions class vs Select class ?
๐Ÿ‘‰ What would you do if requirements missing during testing ?
๐Ÿ‘‰ How would you fetch the attribute value of an element in selenium.
๐Ÿ‘‰ What is Multi Threading in Java
๐Ÿ‘‰ What are global variables and environment variables in postman.
๐Ÿ‘‰ I want to check API response is correct or not but when hitting API using GET ,it takes 1 minute for response to come , is there other HTTP Method ?
๐Ÿ‘‰ Do you know use of TRACE API Method ? (write ans in comment )
๐Ÿ‘‰ How would you ensure test cases you written are complete ?
๐Ÿ‘‰ How you will test for security vulnerability in your application ?
๐Ÿ‘‰ One question from Java stream related to finding duplicate element.
----------------------------------------------------------------------------------
๐Ÿ“Œ Round 4 : ( HR )
๐Ÿ‘‰ How soon you can join ?
๐Ÿ‘‰ Why did you leave your last job?
๐Ÿ‘‰Are you willing to relocate or travel for the job?
๐Ÿ‘‰ Salary discussion etc.

๐Ÿ’ก Pro Tip: Be prepared, stay calm, and best of luck for your interview! ๐Ÿ’ช #InterviewPreparation #TechJobs #CareerGrowth #Wipro #Nagarro #JobInterview #coderbaba
follow @coder_baba
๐Ÿ‘1
๐Ÿš€#Coforge Interview Questions for hashtag#QA role | Exp : 7-8 years

๐Ÿ“Œ Round 1 : ( Technical )
๐Ÿ‘‰ : Explain about your project , how long is your sprint ?
๐Ÿ‘‰ : Have you created a framework from scratch ? What are challenges you have faced while working with framework ?
๐Ÿ‘‰ : Difference between StringBuffer and StringBuilder
๐Ÿ‘‰ : Program to remove duplicate elements from an arraylist.
๐Ÿ‘‰ : Where have you used Inheritance in your framework ?
๐Ÿ‘‰ : How would you handle authentication popup using selenium ?
๐Ÿ‘‰ : How many testcases you have automated in a single sprint.
๐Ÿ‘‰ : Difference between RequestSpecification , ResponseSpecification in REST Assured write code & explain it
๐Ÿ‘‰ : Difference between 500 vs 503 API Status code
----------------------------------------------------------------
๐Ÿ“Œ Round 2 ( Technical )
๐Ÿ‘‰ : Given a string , remove all the duplicate elements from a string
๐Ÿ‘‰ : Write code to fetch the username, password from properties file
๐Ÿ‘‰ : What is use of GroupBy in SQL.
๐Ÿ‘‰ : Suppose you logged a bug , developer says it's not a bug how would you convince developer that it's a bug.
๐Ÿ‘‰ : Suppose a JS alert is coming on a webpage ,it appears randomly when you click some random button (you cannot predict when it will come) ,then how would you make sure that alert is accepted automatically by selenium.
๐Ÿ‘‰ : What is Stale Element exception.
๐Ÿ‘‰ : Have you tested GRAPHQL API. Explain how you did it ?
๐Ÿ‘‰ : How many string objects will be created : String s1 = new String("JAVA");
๐Ÿ‘‰ : Difference between finally and finalize in Java
๐Ÿ‘‰ : Use of protected access modifier ?
๐Ÿ‘‰ : How would you achieve thread safety in your framework. When running tests in parallel.

hashtag#Round 3 : (Managerial)
๐Ÿ‘‰Again he asked few technical questions on Selenium,API

hashtag#Round 4 : (HR Discussion)
๐Ÿ‘‰Salary discussion
๐Ÿ’ก Pro Tip: Be prepared, stay calm, and best of luck for your interview! ๐Ÿ’ช #InterviewPreparation #TechJobs #CareerGrowth #Wipro #Nagarro #Coforge #JobInterview #coderbaba
follow @coder_baba
๐Ÿš€ Valuelabs Interview Questions: SDET (4.5 to 6 years) ๐Ÿ˜Š๐Ÿ˜Š

๐Ÿ“… Duration Decided: 30 minutes
โฐ Actual Interview: 48 minutes

Here are the interview questions asked during the Valuelabs SDET interview. Hope this helps! ๐Ÿ’ก

Introduce yourself ๐Ÿง‘โ€๐Ÿ’ป
Please explain your Automation Framework and all its components. ๐Ÿ”ง
What is Page Object Model (POM)? ๐Ÿ“„
How do you run test cases in parallel in Cucumber? ๐Ÿ”„
Explain the contents of the Runner File in Cucumber. ๐Ÿƒโ€โ™‚๏ธ
What is a Singleton Design Pattern? ๐Ÿ”„
What are the advantages and disadvantages of Page Object Model? ๐Ÿ“‘
What is Selenium Grid? ๐ŸŒ
Explain the WebDriver create statement line? ๐Ÿ’ป
Explain the Maven Lifecycle? โณ
How do you run the failed test cases? ๐Ÿ”„
How do you generate Reports in Selenium? ๐Ÿ“Š
How do you customize reports after your test execution? โš™๏ธ
What kind of waits are there in Selenium? โฑ๏ธ
Write a Code Snippet for Explicit Wait in Selenium? ๐Ÿ“
Write a Code Snippet for Drag and Drop in Selenium? ๐Ÿ“ค๐Ÿ“ฅ
How do you switch to different Windows in Selenium? ๐ŸชŸ
Why do we use SET in Window Handles? ๐Ÿ”‘
Write Code for taking screenshot in Selenium? ๐Ÿ“ธ
Whatโ€™s the difference between Scenario and Scenario Outline in Cucumber? ๐Ÿ”
How do you pass data to your Selenium Scripts? ๐Ÿ’พ
How do you decide the priorities of your Test Cases? ๐Ÿ”
If you want to execute one test case repeatedly, how do you do that? ๐Ÿ”
What are the different annotations used in TestNG? ๐Ÿท
Write the hierarchy of annotations in TestNG. ๐Ÿ”
What is the defect life cycle? ๐Ÿž
Whatโ€™s the difference between Agile and Waterfall Model? ๐Ÿ’ง๐Ÿž
Whatโ€™s the difference between 201 and 204 Status Code? ๐Ÿ“Š
Whatโ€™s the difference between 401 and 403 Status Code? โŒ
What are the components of an API Request? ๐ŸŒ
Whatโ€™s the difference between Query Parameters and Path Parameters? ๐Ÿ”
How do you resolve Conflicts in Git? โš”๏ธ
Whatโ€™s the difference between git pull and git patch? ๐Ÿ› 
Explain the use of Jenkins in the Automation Framework. ๐Ÿ—
๐Ÿ’ก Tip for Success: Stay calm and prepare well for these topics to ace your interview! Best of luck to all the aspiring candidates! ๐Ÿ’ชโœจ

#Valuelabs #SDETInterview #Automation #Java #Cucumber #Selenium #TestNG #API #Jenkins #Git #InterviewPreparation #TechJobs #CareerGrowth #coderbaba
๐ŸŒŸ HSBC Interview Questions for QA ๐ŸŒŸ
If you're preparing for a QA position at HSBC, check out the following interview questions that can help you get ready for your interview! ๐Ÿ“š

1)Write a Java program to find how many times a character is repeated in the string "Banana" and print the character with max repetitions (Without using collections).
๐Ÿ–ฅ Focus on logic and basic Java string manipulation.

2)Go to Amazon.com. Find a web element and iterate to find the remaining web element under the same parent.
๐Ÿ” Check your ability to identify elements on a page using Selenium WebDriver.

3)How do you capture the 404 or 500 errors in the UI through Selenium?
โš ๏ธ Selenium integration with browser logs and handling HTTP status codes.

4)Have you used any custom interfaces (not the interfaces that Selenium or RestAssured provides) in your API Testing, how have you used it?
๐Ÿ“ก API testing strategies with custom interfaces.

5)Differences between ArrayList and LinkedList.
๐Ÿ”„ Understanding the fundamental differences between two common data structures in Java.

6)What is OOPs concept have you used in your framework, and how and under what circumstances did you use it?
๐Ÿ’ป Exploring Object-Oriented Programming principles like inheritance, polymorphism, etc., in your test automation framework.

7)Difference between getWindowHandle and getWindowHandles.
๐ŸŒ Understanding how to manage multiple browser windows with Selenium.

8)Have you used serialization and deserialization? How and why have you used it?
๐Ÿ”„ Discuss your experience with converting objects to/from byte streams for API and test data handling.

9)What is Adhoc Testing? What is the expected outcome of Adhoc Testing?
๐Ÿ“ Ad-hoc testing explained โ€” unstructured testing and its outcomes.

10)What are the non-functional tests you have done? If performance testing using JMeter, then how have you performed session management?
๐Ÿš€ Discuss performance testing and the importance of session management during tests using JMeter.

11)Explain your current roles and responsibilities?
๐Ÿ‘จโ€๐Ÿ’ป Be prepared to describe your day-to-day responsibilities and how you contribute to the QA process.

12)When do you do a retrospective meeting, and what is the outcome of it?
๐Ÿ”„ Understand the importance of retrospectives in agile teams and how they help improve processes.

13)What is RTM, and who creates and owns it?
๐Ÿ“Š Requirement Traceability Matrix explained โ€” Who creates it and its role in tracking requirements during testing.

14)What is boundary value analysis and equivalence partitioning?
๐Ÿ“ Test case design techniques โ€” Understanding how to create effective test cases using boundary value analysis and equivalence partitioning.

๐Ÿ’ก Tip: Preparing well for these questions will boost your confidence during the interview! Make sure you are familiar with both the technical and conceptual aspects of QA processes.

Good luck! ๐Ÿ€ #QATesting #InterviewPreparation #HSBC
๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ง๐—ต๐—ฒ๐˜€๐—ฒ ๐—๐—ฎ๐˜ƒ๐—ฎ ๐—ฆ๐˜๐—ฟ๐—ถ๐—ป๐—ด ๐—˜๐˜€๐˜€๐—ฒ๐—ป๐˜๐—ถ๐—ฎ๐—น๐˜€ ๐—•๐—ฒ๐—ณ๐—ผ๐—ฟ๐—ฒ ๐—ฌ๐—ผ๐˜‚๐—ฟ ๐—ฆ๐——๐—˜๐—ง/๐—”๐˜‚๐˜๐—ผ๐—บ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—œ๐—ป๐˜๐—ฒ๐—ฟ๐˜ƒ๐—ถ๐—ฒ๐˜„!

โœ… What are Strings? Declaration & Initialization

โœ… Understanding String Pool & Immutability

โœ… Why Strings are Immutable & How it Helps in Test Automation

โœ… Benefits of String Immutability in Selenium Automation

โœ… String vs StringBuffer vs StringBuilder: Which One to Use?

โœ… == vs .equals() โ€” Key Differences in String Comparison

โœ… Substring Deep Dive & Coding Questions:

๐Ÿ”น Check if a Substring Exists

๐Ÿ”น Count Occurrences of a Substring

๐Ÿ”น Extract File Extensions from a Filename

โœ… Best Practices: StringBuilder, String Formatting & Performance Tips

โœ… Bonus: How to Check if a String is a Palindrome?


๐Ÿ’ก Tip: Preparing well for these questions will boost your confidence during the interview! Make sure you are familiar with both the technical and conceptual aspects of QA processes.

Good luck! ๐Ÿ€ #QATesting #InterviewPreparation