🌐
HackerRank
hackerrank.com
HackerRank - Online Coding Tests and Technical Interviews
HackerRank is the market-leading coding test and interview solution for hiring developers. Start hiring at the pace of innovation!
Pricing
Join over 28 million developers in solving code challenges on HackerRank, one of the best ways to prepare for programming interviews.
Create a Free Account
How do you want to use HackerRank · We’ll personalize your setup experience accordingly · I'm here to hire tech talent · Evaluate tech skills at scale · Free trial · I'm here to practice and prepare · Solve problems and learn new skills · Create account
Request Demo
See HackerRank in action! Attend a live, personalized demo with one of our product experts to learn how to engage, hire, and upskill the tech talent you need to innovate. We’ll cover how to: Set up a skills strategy. Take a deliberate, scientific approach to pursuing tech skills.
Log in
Thousands of companies have embraced the new way to hire and upskill developers across roles and throughout their careers · Join over 26 million developers, practice coding skills, prepare for interviews, and get hired
technical assessment software
HackerRank is a technology company that offers competitive programming services where computer programmers compete by writing programs according to provided specifications. HackerRank's programming challenges can be solved in multiple programming languages, and … Wikipedia
Factsheet
Formerly Interview Street, Inc.
Founded 1 July 2012
Founders Vivek Ravisankar
Harishankaran Karunanidhi
Factsheet
Formerly Interview Street, Inc.
Founded 1 July 2012
Founders Vivek Ravisankar
Harishankaran Karunanidhi
🌐
Reddit
reddit.com › r/csmajors › practice tests for oop hackerrank
r/csMajors on Reddit: Practice Tests for OOP Hackerrank
September 26, 2024 -

I was wondering if anyone knew of a question bank or practice tests for OOP questions on Hackerrank. The questions that I am referring to specifically are the MCQ questions in languages such as C++ or Python where you are given a list of functions and classes and then told to evaluate what is printed out by the program. These are often very tricky, and it would be nice to have a repository of questions to learn the general tricks and patterns.

An example would be something like the following in C++. The prompt would be to evaluate the output. I am looking for some really difficult examples that I can practice, especially in a timed environment.

#include<iostream>
#include<iostream>

using namespace std;
class Base1 {
 public:
     Base1()
     { cout << " Base1's constructor called" << endl; }
}; 

class Base2 {
 public:
     Base2()
     { cout << "Base2's constructor called" << endl;  }
};

class Derived: public Base1, public Base2 {
   public:
     Derived()
     {  cout << "Derived's constructor called" << endl;  }
};

int main()
{
   Derived d;
   return 0;
}

I am aware of there being a bunch of these on GeeksforGeeks. Curious if there are any other niche locations. Looking to practice these for the Old Mission OA, if anyone's taken that.

Discussions

OOP based DS and Algo practice
I was asked the same for a google interview. I got caught off guard because I was expecting a Leetcode style question. Really want to know if there are any resources that can help. More on reddit.com
🌐 r/leetcode
14
32
August 9, 2021
Is there a HackerRank Language Practice Equivalent for C# ?
CodeWars has some good tasks for C# and .NET More on reddit.com
🌐 r/csharp
30
61
October 4, 2021
Where do I find practice problems for OOP?
leetcode has a 'design' section. codewars has an 'OOP' tag. https://leetcode.com/tag/design/ I've done a lot of these they are pretty fun. Design Twitter is a good one. More on reddit.com
🌐 r/learnprogramming
64
584
December 13, 2020
Resources to Prepare for Object-Oriented Design (OOD) Interviews
https://github.com/ashishps1/awesome-low-level-design Use this. This is more than enough. More on reddit.com
🌐 r/leetcode
4
19
June 17, 2024
🌐
HackerRank
hackerrank.com › domains › java
Solve Programming Questions | HackerRank
A strictly object-oriented language designed to write industry-standard code.
🌐
GitHub
github.com › sandudorogan › HackerRank-OOP-Solutions
GitHub - sandudorogan/HackerRank-OOP-Solutions: Hacker Rank OOP solutions in C#. · GitHub
Hacker Rank OOP solutions in C#. Contribute to sandudorogan/HackerRank-OOP-Solutions development by creating an account on GitHub.
Author   sandudorogan
🌐
Studocu
studocu.com › srm institute of science and technology › object oriented programming using c++ › oop solutions for hackerrank challenges (sr0615)
OOP Solutions for HackerRank Challenges (SR0615) - Studocu
June 2, 2024 - Sr0615 hackerrank - Oodp · Anonymous Student · Academic year · 2023/2024 · Category · Other · Report Document · End of document · Was this document helpful? 10 · Report Document · Registration System Project Report - OODP - CSE B.Tech · Coursera Financial Aid Application Answers: Yash Garg · OOPS & DATA STRUCTURES LAB MANUAL - 191CSS431L (2020-2021) CS101: Practice-4 Tutorial on Integrating Reference Ontology and Concept Mapping ·
🌐
HackerRank
hackerrank.com › domains › python › py-classes
Solve Python
Join over 28 million developers in solving code challenges on HackerRank, one of the best ways to prepare for programming interviews.
🌐
HackerRank
hackerrank.com › challenges › classes-objects › problem
Classes and Objects | HackerRank
A class defines a blueprint for an object. We use the same syntax to declare objects of a class as we use to declare variables of other basic types. For example: · Kristen is a contender for valedictorian of her high school.
Find elsewhere
🌐
HackerRank
hackerrank.com › blog › what-is-c-sharp-programming-language-introduction
What Is C#? Unveiling the Magic of C# Programming - HackerRank Blog
June 26, 2023 - Object-Oriented Programming (OOP): C# is fundamentally object oriented, supporting key OOP concepts such as inheritance, encapsulation, polymorphism, and abstraction.
🌐
Interview Coder
interviewcoder.co › home › blog › top 30+ hackerrank interview questions to sharpen your coding skills
Top 30+ HackerRank Interview Questions to Sharpen Your ...
August 16, 2025 - Keywords: data structures, coding challenge, HackerRank style, online judge, time complexity. Create base Shape with name and area() abstract method; create Rectangle and Circle subclasses implementing area. Show clear OOP design, input validation, and use of prototype inheritance via class syntax.
🌐
GitHub
github.com › ddayto21 › HackerRank-Python-Solutions
GitHub - ddayto21/HackerRank-Python-Solutions: Python Solutions to HackerRank problems involving Object-Oriented Programming, Graph Search Algorithms, and Matrices
Python Solutions to HackerRank problems involving Object-Oriented Programming, Graph Search Algorithms, and Matrices - GitHub - ddayto21/HackerRank-Python-Solutions: Python Solutions to HackerRank problems involving Object-Oriented Programming, Graph Search Algorithms, and Matrices
Starred by 15 users
Forked by 3 users
Languages   Jupyter Notebook 80.3% | Python 19.7%
🌐
LeetCode
leetcode.com › problemset
LeetCode - The World's Leading Online Programming Learning Platform
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
🌐
HackerRank
hackerrank.com › challenges › inheritance-introduction › problem
Inheritance Introduction | HackerRank
One of the important topics of Object Oriented Programming is Inheritance. Inheritance allows us to define a class in terms of another class, which allows us in the reusability of the code.Check out the code below: · The class Triangle has a function called triangle(). Now we create a class ...
🌐
HackerRank
hackerrank.com › interview › interview-preparation-kit
The HackerRank Interview Preparation Kit | HackerRank
Prepare for you upcoming programming interview with HackerRank's Ultimate Interview Preparation Kit
🌐
Coderank
coderank.solutions › hackerrank-solutions
All HackerRank Solutions
Browse all HackerRank problems and their solution in Python, Java, SQL, C, C++ and more. Access solved problems from beginner to intermediate to advanced levels.
🌐
HackerRank
hackerrank.com › challenges › java-inheritance-1 › forum
Java Inheritance I Discussions | Java | HackerRank
Here is Java Inheritance I problem solution - https://programmingoneonone.com/hackerrank-java-inheritance-i-problem-solution.html
🌐
Taro
jointaro.com › interviews › companies › at&t › experiences › software engineer (tdp program) - united states
AT&T Software Engineer (TDP Program) Interview Experience - United States
February 6, 2024 - Technical: I got 1 HackerRank LC-style question, 1 HackerRank debug question, a couple of OOP questions (4 principles), and 1 system design (sort of)