Programming Languages

378 articles in this topic

Varargs in Java: Syntax, Array Behaviour and Overloading Traps

One Java method can accept zero, one or several arguments. Trace how varargs use arrays, see when mutations affect the caller, and distinguish compilation errors from runtime exceptions.

Updated 6 Dec 20265 min readJava

Python File Handling Basics: Modes, Read/Write Traces and Exam Traps

Learn a mechanical way to solve Python file questions: apply the mode first, track the cursor and newlines, then compute returned values and final contents.

Updated 6 Dec 20266 min readPython

Java Introduction and JDK Setup Interview Questions: Compile, Run and Debug

Explain what happens between a Java source file and its output. Practise terminal setup checks, trace a two-number program and repair package, classpath and version errors.

Updated 5 Dec 20265 min readJava

Python Binary Files Explained: Bytes, Pickle and a Worked Record Trace

Trace five raw bytes, then follow three pickled student records through loading, filtering, searching and a safe marks update.

Updated 5 Dec 20266 min readPython

Java Variables, Data Types and Loops MCQs: 12 Solved Questions with Output Traces

Trace 12 Java MCQs on variables, primitive and reference types, literals, expressions and loop syntax. Each answer includes the rule and exact output.

Updated 4 Dec 20267 min readJava

Algorithms and Decomposition in Python: Worked Trace and Exam Traps

Learn how to turn a problem contract into small responsibilities, trace every state change, and implement the verified algorithm cleanly in Python.

Updated 4 Dec 20266 min readPython

Java Operators and Type Conversion MCQs: 10 Solved Questions with Output Traces

Practise ten Java questions on relational, logical, arithmetic, bitwise and equality rules. Each solution follows operand types, values and side effects.

Updated 4 Dec 20267 min readJava

Python Character Set, Tokens, Keywords, Identifiers and Literals MCQs: 11 Solved Questions

Solve 11 Python MCQs by applying a clear test for identifiers, keywords, literals, assignment, rebinding, tuple syntax and format rounding.

Updated 4 Dec 20268 min readPython

Variables, Data Types and Loops in Java: Worked Traces and Exam Traps

Learn to trace Java programs by tracking each variable's type, scope and current value through every condition and update.

Updated 3 Dec 20266 min readJava

Python Text File MCQs: 12 Solved Questions with Explanations

Solve 12 Python text-file questions by tracing modes, cursor movement, spaces, newlines and return types. Two flawed source snippets are handled literally and as intended.

Updated 3 Dec 20268 min readPython

Java Executor Framework Interview Questions: Thread-Pool Traces and Coding Problems

Trace tasks through bounded Java thread pools, calculate Future results, explain rejection, and repair common Executor Framework mistakes.

Updated 2 Dec 20265 min readJava

Python SQL MCQs: 11 Solved Python-MySQL Questions with Explanations

Trace Python-MySQL connections, cursors, result retrieval, transactions and CRUD through one SCHOOL database example and clear question explanations.

Updated 2 Dec 20267 min readPython