JobsJob TrackerJob alerts

Western Digital ยท 39 questions

All 39Coding 28Behavioral 2Product Sense 1
  • Design UI and Flow for Product Selling WebsiteProduct Sense
  • Swap Two Numbers Without Temporary VariableCoding
  • Represent Number Greater than 7 as Sum of Multiples of 3 and 5Coding
  • Form a Straight Line from a Single Given PointCoding
  • Macros, Primes, Linked List Deletion, Bit ManipulationCoding
  • Detect/Remove Loop, Middle of Linked List, Stack via List, Longest Palindromic SubstringCoding
  • MTech background, team member conflict, handling pressureBehavioral
  • Maximum product of two numbers in an array in O(n) timeCoding
  • Segregate 0s and 1s, and sort an array of 0s, 1s, and 2sCoding
  • Reverse a negative number in CCoding
  • Delete consonants from a string in CCoding
  • Sum of all subarrays in O(n) timeCoding
  • Compute 64 % 2 using bitwise operatorsCoding
  • Questions on semaphores, virtual memory, padding, and interrupts
  • Weaknesses, strengths, and five-year career goalsBehavioral
  • Toggle bit at kth positionCoding
  • Sort ages of populationCoding
  • Unique paths in a Grid with ObstaclesCoding
  • Data stream storage algorithm
  • Car Wheel Puzzle
  • Explain and code pointersCoding
  • Difference between structure and unionCoding
  • Replace a specific bit in a binary numberCoding
  • Explain selection sortCoding
  • Call by value vs Call by reference
  • Segregate even and odd nodes in a linked listCoding
  • Usage of C in hardware programming
  • Maximize probability of white ball puzzle
  • Circular queue implementation and operationsCoding
  • OS Scheduling algorithms
  • Check PrimeCoding
  • Check PalindromeCoding
  • Toggle Kth BitCoding
  • Storage ClassesCoding
  • Range vs XrangeCoding
  • Dictionary vs Ordered DictionaryCoding
  • Reverse Words in StringCoding
  • Longest PrefixCoding
  • Resume Project Code and Data Structures Discussion
โ† Western Digital questions
  1. Interview questions
  2. Western Digital
  3. Toggle Kth Bit
Coding

Toggle Kth Bit

Filed under Western Digital

The question

Write a program to toggle the Kth bit of a binary number.

No write-up yet. Related questions below have one.

Related Western Digital questions

  • Represent Number Greater than 7 as Sum of Multiples of 3 and 5
  • Form a Straight Line from a Single Given Point
  • Macros, Primes, Linked List Deletion, Bit Manipulation
  • Detect/Remove Loop, Middle of Linked List, Stack via List, Longest Palindromic Substring
  • Maximum product of two numbers in an array in O(n) time
โ† Check PalindromeStorage Classes โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.