Important Coding Questions For Practice
Important Coding Questions For Practice
Note: The content of this PDF is only meant for educational purposes and don’t solely depend on this PDF
alone for your interview preparation
1. String Operations
2. Array Based
3. General Coding Questions
4. Miscellaneous
String Operations
Array Based
General Questions
Miscellaneous
1. Write a program to Replace 1s with 0s in a given number
2. Write a program to print the following Pyramid pattern.
A
A B A
A B C B A
A B C D C B A
3. Write a program to sort first half of an array into ascending and second half of the array
into descending if the given array has even number of elements.
4. Write a program to convert binary number to decimal
5. Write a program to check if given three numbers forms a Pythagorean triplet