Programming Languages

378 articles in this topic

Conditional Types in TypeScript: Understand extends, infer and Union Distribution

Trace conditional types one branch at a time. Learn to extract API data types, filter union members and decide when an entire union must satisfy a condition.

Updated 2 Dec 20266 min readProgramming Languages Survey

File Handling in Java: Read, Write, Append and Copy Files Safely

Learn how Java's Path, Files, character streams and byte streams fit together. Build a score file, aggregate its rows, and copy binary data safely.

Updated 2 Dec 20265 min readJava

Python Syntax Basics: Rules, Worked Examples and Exam-Style Traps

Learn how Python reads names, expressions and indented blocks. Then trace a complete marks program and repair the syntax mistakes beginners often make.

Updated 2 Dec 20266 min readPython

Enums in TypeScript: Numeric, String and Const Enums with Compiled Output

Follow an order status from TypeScript to emitted JavaScript. Calculate numeric members, read reverse mappings and choose between ordinary enums, const enums and literal unions.

Updated 1 Dec 20265 min readProgramming Languages Survey

Java Cross-Concept Problems: Generics, Polymorphism, Collections and Exceptions

Learn a fixed reading order for Java problems that mix declared types, runtime dispatch, generic wildcards, list mutations, comparator sorting and exception control flow.

Updated 1 Dec 20266 min readJava

Pandas Basics MCQs: 12 Solved Questions with Explanations

Solve 12 Pandas basics MCQs on core data structures and everyday operations. Check each answer, explanation and worked example after making your own attempt.

Updated 1 Dec 20267 min readPython

Data Abstraction MCQs: 12 Solved Questions on Hiding Implementation Details

Learn a three-part test for separating abstraction from encapsulation and information hiding, then apply it to 12 exact MCQs with worked explanations.

Updated 30 Nov 20267 min readProgramming Languages Survey

Java GUI Programming with Swing and AWT: Components, Events and Exam Traps

Learn one reliable way to read Java GUI code: map the container and layout, place each component, then trace the listener on the EDT. A complete Swing marks calculator connects the model to common objective and code-trace traps.

Updated 30 Nov 20265 min readJava

Python Lists Explained: Indexing, Slicing, Mutation and Worked Examples

Trace one Python list from indexing to length-changing mutation, then master aliases, shallow copies, methods, comprehensions, costs and common output traps.

Updated 30 Nov 20265 min readPython

Polymorphism in OOP: One Interface, Multiple Implementations with a Worked Dispatch Trace

Learn exactly when overloaded and overridden methods are chosen. Trace a Shape array, compute two areas, and solve a Java output problem from static and runtime types.

Updated 30 Nov 20265 min readProgramming Languages Survey

Database Connectivity in Java MCQs and Short Answers: 11 Solved JDBC Questions

Solve 11 current JDBC question-bank records with a clear dependency map. The set covers four driver types, API roles, connection setup, compile-time and runtime failures, and the right method for SELECT.

Updated 29 Nov 20267 min readJava

Python Identity and Operator Precedence MCQs: 12 Solved Questions with Explanations

Solve 12 Python MCQs on identity, membership, precedence and associativity. Commit to an option, trace the expression, then check the fresh explanation.

Updated 29 Nov 20268 min readPython