Placement preparation
Aptitude, coding, verbal ability, and reasoning, broken down with worked examples for Indian engineering placements. 529 articles.
Python In-Place Operator Functions: iadd, isub, imul and More
Python's operator module exposes iadd, isub, imul and 7 more in-place functions. Traced examples show what changes between mutable lists and immutable ints.
Internal and External Linkage in C: With Code Examples
The static keyword restricts a C identifier to one translation unit; extern exposes it across files. Learn the rules, see the code, and know what interviewers test.
Speed Maths: Multiplication Shortcuts for Aptitude Tests
Six verified multiplication shortcuts for Indian aptitude tests: powers of 10, near-100 anchoring, and the slide-and-add method for multiplying by 11.
Sentence Correction Basics: Grammar for Placement Tests
Subject-verb agreement, tense consistency, and pronoun reference account for most sentence correction questions in placement tests. Here's how to read the rules.
Set Theory for Placement Aptitude: Formulas and Worked Problems
Master set theory for placement aptitude: notation, union, intersection, complement, power sets, and the inclusion-exclusion formula with 8 worked examples.
Python itertools for Placements: 7 Functions That Matter
Master Python's itertools module with verified examples covering chain, permutations, combinations, product, groupby, count, and cycle for placement coding rounds.
Lattice Multiplication for 2-Digit Numbers: Speed Math Tricks
Step-by-step guide to lattice multiplication for 2-digit numbers, with verified worked examples and aptitude exam tips. Learn the grid method in under 20 minutes.
Leap Year Program in Python: 3 Methods with Code
Three Python methods to check if a year is a leap year: calendar module, nested if statements, and a single boolean condition. Verified code and edge cases included.
Either/Or and Neither/Nor: Grammar Rules for Placement Tests
Four grammar rules cover all either/or and neither/nor questions in placement aptitude tests. Includes the proximity rule, double-negation trap, and parallel structure.
C/C++ Line Splicing: Backslash, Macros, and Traps
Line splicing in C and C++ joins lines ending with a backslash before compilation. Covers comments, macros, and placement test tricky-output traps.
Logarithm Formulas and Rules for Placement Aptitude
Logarithm rules and formulas for placement aptitude: product, quotient, power, and change-of-base, with a reference table and 8 re-derived worked examples.
Python Loops: for, while and Nested Loops
Learn Python for loops, while loops and nested loops with syntax, worked examples and placement test patterns. Covers break, continue and pass.
Job Interview Preparation: 5 Steps That Move Your Score
Five interview preparation habits every engineering student needs before placement season: sleep, digital presence, punctuality, dress, and authentic answers.
Averages in Aptitude Tests: Mean, Weighted Average, Shortcuts
Solve averages and central tendency problems for campus placement tests. Covers arithmetic mean, deviation method, weighted averages, and eight verified worked examples.
Profit and Loss: Formulas, Shortcuts, and Worked Examples
All the profit and loss formulas, shortcuts, and worked examples for placement aptitude tests, covering CP, SP, profit %, successive discounts, and false weights.
Last Two Digits of Large Numbers: Cycle Method and CRT
Find last two digits of any large power in 20 seconds. Covers the cycle method, CRT shortcut, and 4 verified examples. For TCS NQT and AMCAT prep.
Maximum A's with Four Keys: DP Solution for Placement Rounds
Solve the four-key keyboard problem with a verified DP recurrence, answer table for N=1 to 12, and step-by-step walkthrough for placement coding rounds.
Merge Two Sorted Arrays: C, C++, Java and Python
Three approaches to merge two sorted arrays in C, C++, Java, and Python: two-pointer, concatenate-and-sort, and min-heap, with time and space complexity.
Minimum Sum Partition: DP Table, Worked Example, and Code
Partition an integer array into two subsets with the smallest sum difference. DP table formulation, step-by-step worked example, and Python code for placement prep.
Python Modules: Create, Import, and Use Them Right
A practical guide to Python modules: what they are, three import styles, built-in modules for placement tests, and the __name__ guard with working code.
Stress Interview Questions: Types, Samples, and Answers
Eight types of stress interview techniques, sample questions with response frameworks, and composure tactics for placement candidates.
Multiply Numbers Near Powers of 10: Aptitude Shortcut
Master the base multiplication method for numbers near 10, 100, and 1000. Verified worked examples with correct answers for campus placement aptitude tests.
Nested Loops in Python: Types, Syntax, and Examples
Four types of nested loops in Python with working code and placement-round examples. Covers for, while, mixed variants, and break/continue control.
Operator Overloading in Python: Magic Methods with Examples
How Python maps +, -, == and other operators to dunder methods like __add__ and __lt__. Covers the full magic-method table plus two worked placement-style examples.
Parallel Structure in Sentence Correction: 5 Error Types
Five parallel-structure error types in placement verbal tests, with one fix rule each. Worked examples for AMCAT, TCS NQT, and Cocubes sentence correction.
English Prepositions of Time: at, on, in, by, for and since
Master English prepositions of time with clear rules for at, on, in, by, for, since and until. Includes common error corrections and placement test practice questions.
Prepositions in Sentence Correction: Error Types and Fix Rules
Four preposition error types tested in placement aptitude tests, each with worked examples: wrong preposition, missing, redundant, and idiomatic phrases.
Python Program to Print Prime Numbers in a Range
Step-by-step Python programs to print prime numbers in a range. Covers trial division, Python's for/else idiom, and the Sieve of Eratosthenes.
Armstrong Numbers in a Range: C, C++, Java, Python
Programs to print Armstrong numbers between two intervals in C, C++, Java, Python. Traced algorithm, integer-power fix, and time complexity.
Print an Array in Zigzag Order in Python
Step-by-step guide to rearranging a Python list in zigzag order. Covers the O(n) swap algorithm, traced examples, edge cases, and CRT placement patterns.
Printing Variables in Python: Single, Multiple, Formatted
Four Python 3 methods to print variables with text: commas, % operator, .format(), and f-strings. Includes working code, common error fixes, and a comparison table.
Program to Add Two Matrices in C, Java, and Python
How to add two matrices in C, Java, and Python: algorithm, worked example, O(m×n) time and space complexity, and common placement coding test mistakes.
Check if Two Arrays Are Equal: 3 Approaches Explained
Three approaches to check if two arrays are equal: sort-and-compare, frequency count, and direct match, with working code and complexity analysis.
Abundant Number Program: C, Java and Python with √n Check
An abundant number has a proper-divisor sum greater than itself. Code in C, Java, and Python using the O(√n) loop, with worked examples for 12, 18, and 20.
Count Edges in an Undirected Graph: Algorithm and Code
Learn how to count edges in an undirected graph using the Handshaking Lemma. Step-by-step algorithm, Python and C++ code, and complexity analysis included.
Count Even and Odd Elements in an Array
Single-pass O(n) algorithm to count even and odd elements in an array. Working code in C, C++, Python, and Java, with complexity analysis and edge cases.
Count Vowels, Consonants, Digits and Special Characters in a String
Programs in Python, C, and Java to count vowels, consonants, digits, and special characters in a string. Algorithm, code, and traced outputs included.
Find All 0(1+)0 Patterns in a String: C & Python Guide
Count every 0(1+)0 occurrence in a binary string using a linear scan. C and Python code included, plus edge cases and O(n) complexity explained for placement rounds.
Lower Triangular Matrix Check: Programs in C, Java, Python
A square matrix is lower triangular when all entries above the main diagonal are zero. Programs in C, C++, Java, and Python with traced example and complexity analysis.
Check if a Matrix Is Upper Triangular: Code and Complexity
Verify whether a square matrix is upper triangular: the below-diagonal condition, verified C, Python, and Java code, and O(n²) complexity analysis for placement rounds.
Kth Smallest Element in an Unsorted Array: 4 C++ Approaches
Four C++ methods to find the Kth smallest element in an unsorted array: sort, QuickSelect, max-heap, and nth_element, with complexity trade-offs and placement tips.
Find Duplicate Elements in an Array: 5 Approaches
Five approaches to find duplicates in an array: O(n²) nested loops, sort-and-scan, hash set, XOR trick, and Floyd's cycle detection, with C, C++, and Python code.
ASCII Value of a Character: C, C++, Java, Python
Programs to find the ASCII value of a character in C, C++, Java, and Python. Key ASCII ranges, worked examples, and interview variants for placement tests.
The Handshakes Problem: Formula, Derivation, and Code
Derive the handshakes formula step by step, verify worked examples, and implement the solution in Python and C. A combinatorics guide for placement aptitude rounds.
Maximum Product Subarray: Algorithm, Code, and Dry Run
Find the maximum product subarray using the max-min tracking method. Algorithm steps, dry run table, Python and C code, complexity analysis, and placement context.
Maximum Scalar Product of Two Vectors: Algorithm and Code
Find the maximum scalar product of two vectors by sorting both arrays in the same order. Algorithm, complexity analysis, and verified C and Python code.
Find Min and Max in Each Row of a Matrix
C and Python programs to find minimum and maximum elements in each row of a matrix. Includes algorithm, complexity analysis, and placement test variations.
Program to Find Minimum Scalar Product of Two Vectors
Find the minimum dot product of two integer arrays by sorting one ascending and the other descending. Algorithm, proof, worked example, and C/C++/Java/Python code.
Get the AI Career Roadmap 2026 (free PDF)
2026 placement-drive AI patterns, project picks recruiters credit, and a prep timeline that fits beside aptitude and coding work.
Download the free PDF