
Blackrock


30+ Blackrock Interview Questions and Answers for Freshers
Q1. Greatest Common Divisor Problem Statement
You are tasked with finding the greatest common divisor (GCD) of two given numbers 'X' and 'Y'. The GCD is defined as the largest integer that divides both of the given...read more
Find the greatest common divisor (GCD) of two given numbers 'X' and 'Y'.
Iterate from 1 to the minimum of X and Y, check if both X and Y are divisible by the current number, update GCD if true
Use Euclidean algorithm to find GCD: GCD(X, Y) = GCD(Y, X % Y)
If one of the numbers is 0, the other number is the GCD
Handle edge cases like when one of the numbers is 0 or negative
Q2. Ninja And The Triangle Problem Statement
Ninja is provided with 'N' stars and the task is to construct a triangle such that the 'i'th level of the triangle uses 'i' number of stars. The goal is to make the tria...read more
Given 'N' stars, construct a triangle with maximum height using 'i' stars in 'i'th level.
Calculate the maximum height of the triangle using the formula: height = floor((-1 + sqrt(1 + 8 * N)) / 2)
Iterate through each test case and calculate the maximum height for each 'N'.
Output the maximum height for each test case.
Q3. Reverse Linked List Problem Statement
Given a singly linked list of integers, return the head of the reversed linked list.
Example:
Initial linked list: 1 -> 2 -> 3 -> 4 -> NULL
Reversed linked list: 4 -> 3 -> 2...read more
Reverse a singly linked list of integers and return the head of the reversed linked list.
Iterate through the linked list and reverse the pointers to point to the previous node instead of the next node.
Use three pointers to keep track of the current, previous, and next nodes while reversing the linked list.
Update the head of the reversed linked list as the last node encountered during the reversal process.
Q4. Shortest Distance in a Binary Search Tree
Your task is to determine the shortest distance between two nodes with given keys in a Binary Search Tree (BST).
It is assured that both keys exist within the BST.
Inpu...read more
Find the shortest distance between two nodes in a Binary Search Tree.
Traverse the BST to find the paths from the root to both nodes.
Compare the paths to find the common ancestor node.
Calculate the distance by adding the lengths of the paths from the common ancestor to both nodes.
Return the shortest distance as the result.
Q5. Bridge in Graph Problem Statement
Given an undirected graph with V vertices and E edges, your task is to find all the bridges in this graph. A bridge is an edge that, when removed, increases the number of conne...read more
Find all the bridges in an undirected graph.
Use Tarjan's algorithm to find bridges in the graph.
A bridge is an edge whose removal increases the number of connected components.
Check for bridges by removing each edge and running a DFS to see if the graph is still connected.
Q6. Binary to Decimal Conversion
Convert a given binary number, represented as a string 'S' of size 'N', into its decimal equivalent integer and output it.
Input:
The first line contains an integer 'T', denoting th...read more
Convert a binary string to its decimal equivalent integer.
Iterate through the binary string from right to left, multiplying each digit by 2 raised to the power of its position.
Add the results of the multiplication to get the decimal equivalent.
Ensure the binary string consists only of '0' and '1' characters.
Handle multiple test cases by repeating the conversion process for each case.
Q7. Merge Two Sorted Arrays Problem Statement
Given two sorted integer arrays ARR1
and ARR2
of size M and N, respectively, merge them into ARR1
as one sorted array. Assume that ARR1
has a size of M + N to hold all ...read more
Q8. 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.
Q9. 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.
Q10. 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
Q11. 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
Yes, I can analyze SQL queries and code snippets to determine correct outputs or errors.
Understand the SQL syntax and logic to identify errors in queries.
Check for syntax errors, missing or incorrect keywords, and data type mismatches.
Analyze the code snippets to identify logical errors or potential bugs.
Compare the expected output with the provided output to determine correctness.
Joins are used to combine rows from two or more tables based on a related column, while indexing is a technique to improve the performance of queries by creating a data structure that allows for quick lookup of data.
Joins are used to retrieve data from multiple tables based on a related column, such as INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.
Indexing involves creating data structures like B-trees or hash tables to quickly locate rows in a table, improving query perfo...read more
Q14. 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.
Q15. 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.
Python is a high-level, interpreted language known for its simplicity and readability, while C++ is a low-level, compiled language known for its performance and efficiency.
Python is dynamically typed, while C++ is statically typed.
Python uses indentation for code blocks, while C++ uses curly braces.
Python has automatic memory management, while C++ requires manual memory management.
Python is slower in execution compared to C++ due to its interpreted nature.
Python is commonly u...read more
Q17. 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
Q19. 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
Q21. 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
To determine the number of classes required for a page with 5 tabs, each containing common elements and varying numbers of total elements.
Identify the common elements shared by all tabs on the page.
Calculate the total number of unique elements on the page.
Determine the number of classes needed based on the total number of unique elements.
Consider the possibility of multiple classes for tabs with a higher number of elements.
Q22. 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
Q24. 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).
Q25. 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
Q26. 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
Q28. 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
Q29. 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
Q30. 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
Q31. 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
Q32. 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
Q33. 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
Q34. 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
Q35. 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.
Q36. 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.
More about working at Blackrock

Top HR Questions asked in Blackrock for Freshers
Interview Process at Blackrock for Freshers

Top Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

