Blackrock
70+ Physicswallah Interview Questions and Answers
You are given two numbers, ‘X’ and ‘Y’. Your task is to find the greatest common divisor of the given two numbers.
The Greatest Common Divisor of any two integers is the largest number th...read more
I was given two tables one was employee table and other was a department table. On basis of these tables I was asked few questions :-
1. Write a query to find the max salary of any employee .
2. Writ...read more
Ninja has been given ‘N’ stars. Ninja has to make a triangle using these stars. The ‘i’th’ level of a triangle contains a ‘i’ number of stars.
Can you help Ninja to make a triangle as larg...read more
Given a singly linked list of integers. Your task is to return the head of the reversed linked list.
For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked lis...read more
You have been given a Binary Search Tree and two keys 'NODE1' and 'Node2' in it.
Your task is to find the shortest distance between two nodes with the given two keys. It may be assumed that bot...read more
Given an undirected graph of V vertices and E edges. Your task is to find all the bridges in the given undirected graph. A bridge in any graph is defined as an edge which, when removed, makes ...read more
Ninja is given a binary number as a string ‘S’ of size ‘N’, he is asked to convert it into its decimal equivalent (as an Integer) and print it.
Note:
A binary string is a string in which all ch...read more
You have been given a binary tree of integers with N number of nodes. Your task is to check if that input tree is a BST (Binary Search Tree) or not.
A binary search tree (BST) is a binary tree data ...read more
Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to a...read more
This section had algorithm design questions that were in the form of a flow chart with different steps to complete the algorithm stated in them and some blank spaces in between to be filled b...read more
The interview question focuses on algorithm design and programming ability, specifically on the TREE data structure.
Study the TREE data structure thoroughly
Focus on traversals and AVL TREE insertions and deletions
Basic knowledge in algorithm design and reasoning is important
Solve algorithm design questions in the form of flow charts
Fill in the blank spaces in the flow chart with appropriate steps
This section consisted of several sub-sections like Logical Reasoning, Attention to Detail, etc. with different time limits for each of the sub-sections. My advice to crack this round will be not to st...read more
The advice is to not spend too much time on a single question and instead focus on solving other questions within the time limits.
Manage time effectively
Prioritize questions based on difficulty
Skip difficult questions and come back to them later
Practice solving questions under time constraints
Utilize shortcuts and techniques to solve questions quickly
Q12. How will you find prime numbers between 1 to 1 million
Use the Sieve of Eratosthenes algorithm to find prime numbers between 1 to 1 million.
Implement the Sieve of Eratosthenes algorithm which marks multiples of each prime number as composite.
Start with a list of numbers from 2 to 1 million, mark 0 and 1 as non-prime.
Iterate through the list, starting from 2, mark all multiples of each number as non-prime.
The numbers left unmarked after the iteration are prime numbers.
Mention major features of OOPS. He also asked about the use of the final keyword. Then he asked me about an interface and the differences between an interface and abstract classes?
Q14. Three ants are at the corner of the triangle. Find the probability that they will never meet.
The probability that three ants at the corner of a triangle will never meet.
The ants can move randomly in any direction.
The probability depends on the shape and size of the triangle.
The probability can be calculated using geometric probability or simulation.
Assumptions need to be made about the ants' movement patterns.
1. What are keys?
2. Mention & define all the keys.
3. What is the difference between SQL and No SQL?
Q16. What is the difference between bonds and loans
Bonds are debt securities issued by corporations or governments, while loans are agreements between a borrower and a lender.
Bonds are typically traded on the open market, while loans are private agreements
Bonds have a fixed maturity date and interest rate, while loans may have variable terms
Bonds are usually issued in large denominations, while loans can be tailored to individual needs
1. Define process in OS.
2. What is the difference between process and thread?
3. Mention different states of a process.
This section entirely focused on questions related to SQL queries, syntaxes, aggregate functions, and DBMS concepts. My advice will be to have enough practice on SQL.
SQL is a programming language used for managing and manipulating relational databases.
SQL is used to retrieve, insert, update, and delete data from databases.
It uses structured query language to communicate with the database management system (DBMS).
SQL queries can be used to filter, sort, and aggregate data.
Aggregate functions like SUM, COUNT, AVG, MAX, and MIN can be used to perform calculations on data.
Understanding database concepts like tables, columns, primary keys, for...read more
There is a bucket of 3L and 5L. How to measure a 4L?
Questions on Sql fundamental
What is indexing?
What is a stored procedure?
Q21. What is white and black box testing?
White box testing is a method of testing where the internal structure and implementation details of the software are known and tested. Black box testing is a method of testing where the internal structure and implementation details of the software are unknown and only the inputs and outputs are tested.
White box testing is also known as clear box testing, glass box testing, or structural testing.
It focuses on testing the internal logic, code paths, and branches of the software...read more
What is the difference between python and C++?
Q23. How will you swap two numbers without using third variable ?
To swap two numbers without using a third variable, use arithmetic operations like addition and subtraction.
Store the sum of the two numbers in one of the variables, then subtract the other number from the sum to get the value of the first variable.
Finally, subtract the value of the first variable from the sum to get the value of the second variable.
Q24. Write the code to print the pattern that was provided?
Print a pattern using code
Use nested loops to iterate through rows and columns
Use string concatenation to build each row of the pattern
Print each row to display the pattern
Q25. Are u okay with travelling to goregaon
Yes, I am okay with travelling to Goregaon.
I am comfortable with travelling to Goregaon for work purposes.
I have no issues with commuting to Goregaon for meetings or projects.
I am willing to travel to Goregaon as required for the job.
Q26. Power Apps used for reporting and automation
Power Apps can be used for creating custom reporting and automating business processes.
Power Apps can connect to various data sources to pull in data for reporting purposes.
Users can create custom dashboards and reports using Power Apps to visualize data.
Automation can be achieved by creating workflows and processes within Power Apps.
Examples: Creating a Power App to track sales leads and generate reports, automating approval processes using Power Apps.
Q27. What are swaptions? How do you price an Option?
Swaptions are options on interest rate swaps. Option pricing involves calculating the expected future value of the underlying asset.
Swaptions give the holder the right to enter into an interest rate swap at a future date.
Pricing involves calculating the expected future value of the underlying asset using models such as Black-Scholes or binomial trees.
Factors that affect option pricing include the underlying asset price, strike price, time to expiration, volatility, and intere...read more
SQL queries and code snippets will be provided with either outputs or errors provided in the options.
Q29. Merge two arrays without using a third array.
Merge two arrays without using a third array.
Use the concat() method to merge the arrays.
Alternatively, you can use the push() method to add elements from one array to another.
Remember to handle the case where the arrays have different lengths.
What is WhiteBox and BlackBox testing?
Q31. What are the tools you used
I have used a variety of tools including Excel, SQL, Tableau, Python, and Power BI.
Excel
SQL
Tableau
Python
Power BI
How does the internet work?
Q34. What is DSA , sorting , difference between array and linked list
DSA stands for Data Structures and Algorithms. Sorting is the process of arranging data in a particular order. Array is a data structure that stores elements of the same data type in contiguous memory locations, while linked list is a data structure that stores elements in nodes with pointers to the next node.
DSA stands for Data Structures and Algorithms
Sorting is the process of arranging data in a particular order
Array stores elements of the same data type in contiguous memo...read more
Q36. How does Internet work?
The Internet is a global network of computers that communicate with each other using standardized protocols.
The Internet is made up of millions of interconnected devices, including computers, servers, routers, and switches.
Data is transmitted over the Internet in the form of packets, which are small units of information.
The Internet uses a set of protocols, such as TCP/IP, to ensure reliable and efficient communication.
When you access a website or send an email, your device s...read more
Questions about Joins and Indexing were asked.
Q38. given an 5 tab on a page and each page has 3 common element and 1 page have 5 element and each tab has muliple of 5 element find the no of classes required for the page
The number of classes required for the page can be calculated by dividing the total number of elements by the number of elements in each class.
Count the total number of elements on the page
Count the number of elements in each class
Divide the total number of elements by the number of elements in each class to get the number of classes required
Q39. Preferred location
I prefer to work in a location that offers a vibrant and diverse community, with access to cultural events and opportunities for personal growth.
I value a location that has a strong sense of community and offers a variety of cultural activities.
Access to educational and personal growth opportunities is important to me.
I am open to considering different locations that meet these criteria.
Q40. Optimal solution for 1 DSA question with string manipulation and sorting.
Optimal solution for sorting an array of strings using built-in sorting algorithm in Java.
Use Arrays.sort() method to sort the array of strings in Java.
Ensure to import the Arrays class before using the sort() method.
Example: String[] arr = {"banana", "apple", "orange"}; Arrays.sort(arr);
Differences between HTTP and HTTPS
Q42. Difference between http and https?
HTTP is unsecured while HTTPS is secured with SSL/TLS encryption.
HTTP stands for Hypertext Transfer Protocol, while HTTPS stands for Hypertext Transfer Protocol Secure.
HTTP operates on port 80, while HTTPS operates on port 443.
HTTP data is transmitted in plain text, while HTTPS data is encrypted using SSL/TLS.
HTTPS provides authentication, integrity, and confidentiality of data exchanged between a client and a server.
Websites using HTTPS have a padlock icon in the address bar...read more
Q43. How do you resolve conflcts within the teams?
I resolve conflicts within teams by promoting open communication, active listening, and facilitating constructive discussions.
Encourage open communication among team members to address issues early on
Practice active listening to understand all perspectives involved
Facilitate constructive discussions to find mutually beneficial solutions
Mediate conflicts impartially and ensure all parties feel heard and respected
Q44. Design a basic google doc editor with oops.
A basic Google Doc editor designed using OOP principles.
Create a Document class to represent the Google Doc
Include methods for editing text, adding images, and formatting
Use classes like Text, Image, and FormattingOptions for different elements
Implement features like undo/redo functionality and collaboration tools
Q45. What are derivatives and its types?
Derivatives are financial contracts that derive their value from an underlying asset or security.
Types of derivatives include futures, options, swaps, and forwards.
Futures are contracts to buy or sell an asset at a predetermined price and date.
Options give the buyer the right, but not the obligation, to buy or sell an asset at a predetermined price and date.
Swaps involve exchanging cash flows based on different financial instruments.
Forwards are similar to futures, but are cu...read more
Q46. Give me diameter of binary tree .
The diameter of a binary tree is the number of nodes on the longest path between two leaves in the tree.
The diameter of a binary tree can be calculated by finding the height of the left subtree, the height of the right subtree, and adding them together.
The diameter may or may not pass through the root of the tree.
Example: In a binary tree with nodes 1, 2, 3, 4, 5, the diameter would be 4 (passing through nodes 4, 2, 1, 3, 5).
Q47. Explain difference between synchronous and asynchronous methods
Synchronous methods block the execution until the task is completed, while asynchronous methods allow the program to continue executing other tasks while waiting for the result.
Synchronous methods wait for the task to complete before moving on to the next task.
Asynchronous methods allow the program to continue executing other tasks while waiting for the result.
Synchronous methods are easier to understand and debug, but can lead to performance issues if used inappropriately.
As...read more
3 Ants and Triangle
Q49. Difference between mutual and hedge funds
Mutual funds pool money from multiple investors to invest in a diversified portfolio, while hedge funds are more exclusive and use more aggressive strategies.
Mutual funds are open to all investors, while hedge funds are typically only available to accredited investors.
Mutual funds are regulated by the SEC, while hedge funds have more flexibility in their investment strategies.
Mutual funds are more diversified and have lower fees compared to hedge funds.
Examples: Vanguard 500 ...read more
Q50. What are the features of Java 8
Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and the new date and time API.
Lambda expressions allow you to pass functionality as an argument to a method.
Functional interfaces have a single abstract method and can be used with lambda expressions.
Streams provide a way to work with sequences of elements and perform aggregate operations.
The new date and time API provides improved date and time handling capabilities.
Default m...read more
Q51. find the frequecy of string in a large paragraph
The question asks to find the frequency of a specific string in a large paragraph.
Use a loop to iterate through each word in the paragraph
Compare each word with the given string
Keep a count of the number of times the string appears
Q52. What are Mutual funds and their Types
Mutual funds are investment vehicles that pool money from multiple investors to invest in a diversified portfolio of securities.
Mutual funds are managed by professional fund managers
Types of mutual funds include equity funds, bond funds, money market funds, and balanced funds
Equity funds invest in stocks, bond funds in bonds, money market funds in short-term debt securities, and balanced funds in a mix of stocks and bonds
Q53. What is deferred revenue?
Deferred revenue is the income received in advance for goods or services that are yet to be delivered or rendered.
Deferred revenue is also known as unearned revenue.
It is a liability on the balance sheet until the goods or services are delivered or rendered.
Examples include magazine subscriptions, prepaid rent, and gift cards.
Deferred revenue is recognized as revenue on the income statement when the goods or services are delivered or rendered.
Q54. pseudo code of finding ones in a number
Count the number of ones in a given number using pseudo code
Initialize a count variable to 0
Iterate through each bit of the number and check if it is 1
Increment the count if the bit is 1
Return the count as the result
Q55. 2) What us UseState() In React
UseState() is a hook in React that allows functional components to have state variables.
useState() is used to declare state variables in functional components.
It returns an array with two elements: the current state value and a function to update it.
The function to update the state can be called with a new value or a function that takes the previous value as an argument.
Example: const [count, setCount] = useState(0);
Example: setCount(prevCount => prevCount + 1);
Q56. diff between IRS & TRS
IRS is the Internal Revenue Service responsible for collecting taxes in the US, while TRS is the Teacher Retirement System providing retirement benefits for educators.
IRS stands for Internal Revenue Service and is responsible for collecting taxes in the United States.
TRS stands for Teacher Retirement System and provides retirement benefits for educators.
IRS deals with tax collection and enforcement, while TRS focuses on managing retirement funds for teachers.
Example: IRS coll...read more
Q57. What is fundamental analysis
Fundamental analysis is a method of evaluating a security by analyzing the financial and economic factors that influence its value.
Involves analyzing financial statements, earnings reports, market trends, and economic indicators
Focuses on determining the intrinsic value of a security
Helps investors make informed decisions based on the underlying fundamentals of a company
Contrasts with technical analysis which focuses on price movements and historical data
Q58. what is strength
Strength is the ability to overcome challenges and obstacles, both physically and mentally.
Physical strength is the ability to exert force and lift heavy objects.
Mental strength is the ability to stay resilient in the face of adversity.
Strength can also refer to emotional resilience and the ability to cope with difficult situations.
Strength can be developed through consistent practice and perseverance.
Examples of strength include weightlifting, endurance sports, and overcomin...read more
Q59. Discuss the file types
File types refer to the format in which data is stored in a computer system.
File types determine how data is organized and accessed
Common file types include .txt, .jpg, .mp3, .pdf
Each file type has specific characteristics and uses
Q60. DERRIVATIVES MUTUAL FUNDS
Derivatives mutual funds are investment funds that invest in a variety of derivative securities.
Derivatives mutual funds use derivatives such as options, futures, and swaps to achieve their investment objectives.
These funds can provide investors with exposure to a wide range of asset classes and strategies.
Investors should be aware of the risks associated with derivatives, including leverage and potential for loss.
Examples of derivatives mutual funds include those focused on ...read more
Q61. types of derivative
Derivatives are financial instruments whose value is derived from an underlying asset or group of assets.
Types of derivatives include options, futures, forwards, and swaps.
Options give the holder the right, but not the obligation, to buy or sell an asset at a specified price before a certain date.
Futures are contracts to buy or sell an asset at a specified price on a future date.
Forwards are similar to futures but are customized contracts traded over-the-counter.
Swaps involve...read more
Q62. 1) what is ReactJs?
ReactJS is a JavaScript library for building user interfaces.
Developed by Facebook
Uses a virtual DOM for efficient updates
Supports server-side rendering
Can be used with other libraries and frameworks
Uses JSX syntax to write HTML-like code in JavaScript
Example: Facebook, Instagram, Airbnb, Netflix use ReactJS
Q63. Frequency of character in string
The question is asking about how to find the frequency of each character in a given string.
Iterate through the string and count the occurrences of each character
Store the counts in a data structure like a hashmap or array
Return the counts for each character
Q64. Multi-Threading in Python - GIL
Global Interpreter Lock (GIL) in Python restricts execution of multiple threads at once to prevent race conditions.
GIL is a mutex that protects access to Python objects, preventing multiple threads from executing Python bytecodes at once.
This means that even in a multi-threaded Python program, only one thread can execute Python code at a time.
GIL can limit the performance of multi-threaded Python programs, especially for CPU-bound tasks.
However, for I/O-bound tasks, GIL may n...read more
Q65. What black rock do ?
BlackRock is a global investment management corporation that provides a variety of financial services.
BlackRock is a multinational investment management corporation based in the United States.
They offer a wide range of financial services including asset management, risk management, and advisory services.
BlackRock is known for its expertise in managing exchange-traded funds (ETFs) and other investment products.
The company serves clients worldwide, including individuals, instit...read more
Q66. Difference between asset and equity
Asset refers to any resource owned by a person or company, while equity represents ownership in a company.
Asset is a tangible or intangible resource owned by an individual or company, such as cash, property, or equipment.
Equity represents ownership in a company and is calculated as total assets minus total liabilities.
Assets can include stocks, bonds, real estate, and cash, while equity is typically represented by shares in a company.
Assets are listed on the balance sheet of ...read more
Q67. What are derivatives and types
Derivatives are financial instruments whose value is derived from an underlying asset or group of assets.
Types of derivatives include futures, options, swaps, and forwards.
Derivatives can be used for hedging, speculation, or arbitrage.
Examples of derivatives include stock options, commodity futures, and interest rate swaps.
Q68. what are asset classes
Asset classes are groups of securities that exhibit similar characteristics and behave similarly in the market.
Asset classes include stocks, bonds, real estate, commodities, and cash equivalents.
Investors can diversify their portfolios by investing in different asset classes.
Each asset class has its own risk and return characteristics.
Asset allocation involves determining the optimal mix of asset classes based on an individual's risk tolerance and investment goals.
Q69. Program of prime number
A program to find prime numbers within a given range
Iterate through numbers in the given range
Check if each number is divisible by any number other than 1 and itself
If not divisible, it is a prime number
Q70. Why internal audit?
Internal audit allows me to utilize my analytical skills to identify risks, improve processes, and add value to the organization.
Opportunity to identify and mitigate risks within the organization
Improving processes and operational efficiency
Contributing to the overall success and growth of the organization
Utilizing analytical skills to provide valuable insights
Continuous learning and development in a dynamic environment
Q71. What is ALADIN toot
ALADIN tool is a software used for managing client relationships and providing personalized services.
ALADIN stands for Automated Learning and Decision Intelligence Network.
It helps in analyzing client data to provide personalized recommendations and services.
The tool uses machine learning algorithms to improve client servicing and satisfaction.
ALADIN tool can be used in various industries such as finance, healthcare, and retail.
It streamlines communication and enhances client...read more
Q72. Longest Increasing Subsequence
Find the length of the longest increasing subsequence in an array.
Use dynamic programming to solve this problem efficiently.
Iterate through the array and keep track of the longest increasing subsequence ending at each index.
Example: For array [10, 22, 9, 33, 21, 50, 41, 60, 80], the longest increasing subsequence is [10, 22, 33, 50, 60, 80] with length 6.
Q73. What is derivatives
Derivatives are financial instruments whose value is derived from an underlying asset or group of assets.
Derivatives can be used for hedging, speculation, or arbitrage.
Common types of derivatives include options, futures, forwards, and swaps.
Derivatives allow investors to take on leverage and potentially amplify returns.
They are often used by institutional investors and traders to manage risk and enhance portfolio performance.
Q74. Java 8 in depth
Java 8 introduced several new features including lambda expressions, streams, and functional interfaces.
Lambda expressions allow for more concise code by enabling functional programming.
Streams provide a way to process collections of objects in a functional style.
Functional interfaces are interfaces with a single abstract method, which can be implemented using lambda expressions.
Java 8 also introduced the Optional class to handle null values more effectively.
Q75. Merge 2 sorted array
Merging 2 sorted arrays into a single sorted array.
Create a new array to store the merged array
Compare the first elements of both arrays and add the smaller one to the new array
Repeat until one of the arrays is empty, then add the remaining elements of the other array
Return the merged array
Q76. 2nd largest in array
Find the 2nd largest string in an array of strings.
Iterate through the array and keep track of the largest and second largest strings.
Compare each string with the current largest and second largest strings to update them accordingly.
Q77. Reverse a string
Reverse a given string
Create a new empty string to store the reversed string
Iterate through the original string from end to start and append each character to the new string
Return the reversed string
More about working at Blackrock
Top HR Questions asked in Physicswallah
Interview Process at Physicswallah
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month