Programming Languages

221 articles in this topic

Python Loop Patterns and Idioms: A Practical Tutorial

Move beyond manual counters and fragile flags. Learn the Python loop idioms that make iteration, filtering, aggregation, pairing, and search easier to read.

Updated 3 Sep 20265 min readPython

Best Programming Language for Placements: Test Python, Java or C++ in 4 Weeks

Choose a placement coding language with evidence. This four-week trial checks employer support, timed results, explanation skill and debugging comfort before you commit.

Updated 2 Sep 20266 min readProgramming Languages Survey

C++ Arrays vs std::array vs std::span: Choose the Right Interface

Run the same five integers through raw-array, std::array and std::span interfaces, then choose from their ownership, size and lifetime contracts.

Updated 2 Sep 20266 min readC++

Dynamic Memory Allocation in C: malloc, calloc, realloc and free with a Worked Example

A runnable marks example shows how C requests, initializes, grows and releases runtime storage, with checked byte counts, ownership and safe realloc handling.

Updated 2 Sep 20265 min readC

JavaScript Strings Tutorial: Methods, Template Literals, and Runnable Examples

Learn strings from their delimiters and zero-based indexes through searching, cleaning, and coercion. Each example is runnable, including a complete input-to-key transformation.

Updated 2 Sep 20265 min readJava

Functions in Python: Parameters, Return Values, Scope and Examples

Build, call and debug Python functions through traced examples. Learn how arguments, local scope and return values work, then test yourself with short exercises.

Updated 2 Sep 20265 min readPython

JavaScript Prototypes and Inheritance: Tutorial with Runnable Examples

Understand how JavaScript finds inherited properties, shares methods, and implements constructor and class inheritance. Trace the chains, fix common mistakes, and test yourself.

Updated 1 Sep 20265 min readProgramming Languages Survey

C++ Classes and Objects MCQs: 11 Solved Questions on Members, Pointers and Inheritance

Work through 11 C++ classes and objects MCQs, then use the fresh explanations and fixed examples to repair mistakes in access, lifetime and inheritance rules.

Updated 1 Sep 20268 min readC++

Operator Overloading in C++: Syntax, Rules, and Worked Examples

Learn what C++ calls for an overloaded operator, then test addition, stream output, increment, and fraction comparison with exact values.

Updated 31 Aug 20266 min readC

Java Iterators and Comparators: Runnable Examples, Sorting Rules and Common Traps

Learn when to use Iterator, Comparable and Comparator through one Java 17 Student example, exact outputs, cursor traces and safe sorting rules.

Updated 31 Aug 20265 min readJava

Python Variables and Data Types: Beginner Tutorial with Worked Examples

Learn how Python names bind to objects, how built-in types behave, and why conversion and mutation matter. Trace a complete learner record and test yourself with runnable examples.

Updated 31 Aug 20265 min readPython

Programming Languages MCQs: 12 Solved Questions on Definition and Purpose

Build the foundations behind basic programming-language questions, then solve 12 published MCQs on translators, errors, pseudocode, parameters and language quality.

Updated 30 Aug 20267 min readProgramming Languages Survey