Programming Languages
217 articles in this topic

JavaScript Basics: Types, Functions, Arrays and Async Code with Worked Examples
Build a reliable JavaScript mental model by tracing values, closures, arrays, object copies and queued work. A complete three-record example verifies every total.

C++ Iterators Tutorial with Examples: Traversal, Algorithms and Invalidation
Learn how C++ iterators connect containers to algorithms. Trace vector, list and map examples, then practise safe erasure and invalidation fixes.

Conditionals in C: if, if-else, else-if and switch with runnable examples
Learn how C chooses a path through a program. Predict and trace complete examples covering conditions, ladders, logical operators, nesting and switch.

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.