Programming Languages
118 articles in this topic

Pattern Printing Programs in C, Java and Python: One Method for Every Star and Number Pyramid
Stop memorising separate pattern programs. Learn how two row-wise decisions generate star pyramids, number triangles and their common variations in C, Java and Python.

Python Decorators and Generators: yield, Closures and the Trace-the-Output Interview Questions
See decorators and generators as functions that retain state. Trace a wrapped call, expand @repeat(3), and follow countdown(3) through StopIteration.

Programming Languages for GATE: C Syllabus Areas, Weightage Pattern and Prep Order
Build a bounded C preparation map, calculate topic shares from your own PYQ audit, and practise two fully worked traces before following a 14-day study order.

Abstract Classes in C++: Pure Virtual Functions, Examples and Errors
Learn why an abstract base cannot be instantiated but remains useful through pointers and references. Trace two shapes, fix override errors and practise safe polymorphism.

STL Overview in C++: Containers, Iterators and Algorithms with Runnable Examples
Build a practical STL mental model, then trace seven scores through sorting, searching, filtering and aggregation. The same data clarifies map, set and priority_queue choices.

Java Coding Interview Questions: Programs Asked in Service-Company Drives
Prepare the short Java programs that recur in fresher drives. Learn the core string, array, number and collections patterns, then trace an O(n) Two-Sum solution.

OOP in Python: Classes, Inheritance, the MRO Diamond and Dunder Methods for Interviews
Work through Python's MRO diamond and the __eq__ plus __hash__ rule. These two examples explain many of the OOP output questions asked in interviews.

Language Design in Programming Languages: Syntax, Types, Scope and a Worked Evaluation
Trace one expression from source text to a value, then compare the design rules that make scope, typing, evaluation and mutation behave differently.

Function Overloading and Default Arguments in C++: Rules and Runnable Examples
Learn why overloading and default arguments are different C++ mechanisms. Compile one invoice program, trace every call, and repair ambiguous code.

Command Line Arguments in C: argc and argv Tutorial with Runnable Examples
Learn how argc and argv carry command line input into a C program, then practise argument tracing, numeric conversion, validation, and common fixes.

OOPs Concepts in Java: Inheritance, Polymorphism, Abstraction and Encapsulation with Worked Interview Questions
Turn the four OOP pillars into predictable Java behaviour. Trace superclass references, subclass objects, overridden methods, hidden fields and common follow-ups.

String Problems in Python for Coding Rounds: Palindromes, Anagrams and Compression Solved
Python turns common string problems into one-liners, but interviewers usually remove that shortcut next. Learn the Pythonic and manual solutions for three recurring patterns.