π§ 50 Python Logical Coding Questions (Zoho-Style)
(Focus on loops, strings, arrays, logic, and real test patterns)
πΉ Basic Level (1β15)
- Print numbers from 1 to 100 without using loops.
- Print the Fibonacci series up to n terms.
- Find the factorial of a given number.
- Check if a number is prime.
- Reverse a number using while loop.
- Check if a string is a palindrome.
- Count vowels and consonants in a string.
- Find the sum of digits of a number.
- Swap two numbers without using a third variable.
- Print all even numbers in a given range.
- Print multiplication table of a given number.
- Find the greatest of three numbers using if-else.
- Check if a number is an Armstrong number.
- Print all prime numbers between 1 to 100.
- Find the average of numbers in a list.
πΉ Intermediate Level (16β35)
- Find 2nd largest element in a list.
- Remove duplicates from a list.
- Sort a list without using
sort()orsorted(). - Find common elements between two lists.
- Count frequency of elements in a list.
- Merge two sorted lists.
- Reverse a string without using slicing.
- Check if two strings are anagrams.
- Count words in a given sentence.
- Find character frequency in a string.
- Replace all vowels in a string with
*. - Remove special characters from a string.
- Find missing number in 1 to n series.
- Find sum of even and odd numbers in a list.
-
Print pattern:
* ** *** **** -
Print pattern:
1 12 123 1234 -
Print pattern:
A BB CCC DDDD Find the intersection and union of two sets.
Count capital and small letters in a string.
Print all unique elements in a list.
πΉ Advanced / Zoho Test Level (36β50)
- Implement a program to check for balanced parentheses.
- Find all pairs in a list whose sum equals a given number.
- Rotate array elements to left/right by k steps.
- Implement a simple calculator using functions.
- Find the longest word in a given sentence.
- Convert string
"a3b2c1"β"aaabbc". - Convert a decimal number to binary manually.
- Print frequency of each word in a paragraph.
- Reverse words in a sentence but not characters.
- Find the first non-repeating character in a string.
- Remove duplicates from string while maintaining order.
- Find if a number is βstrong numberβ (sum of factorial of digits = number).
- Find sum of all prime digits in a number.
- Find maximum occurring character in a string.
- Given matrix β print its transpose.
π 50 Aptitude & Reasoning Practice Questions (Zoho-Style)
πΉ Quantitative Aptitude (1β25)
- A train 120 m long passes a man walking at 6 km/hr in 10 sec. Find train speed.
- The ratio of ages of A and B is 3:5. After 10 years, ratio becomes 4:6. Find their present ages.
- If the cost price is βΉ800 and gain is 20%, find selling price.
- A can do a work in 10 days, B in 15 days. How long will they take together?
- A person spends 40% on rent, 30% on food, saves βΉ600. Find income.
- Find the simple interest on βΉ5000 at 8% per annum for 2 years.
- Find compound interest on βΉ4000 for 2 years at 10%.
- Ratio of milk to water is 3:2. Add 10L water β new ratio 3:4. Find milk quantity.
- Two pipes fill a tank in 12 and 15 mins. Together?
- Speed of boat in still water = 10 km/hr, current = 3 km/hr. Find upstream speed.
- If 20 men complete a work in 15 days, 10 men do it in how many days?
- Selling price = βΉ660, cost = βΉ600. Find profit %.
- A can finish a job in 12 days, B can do same in 8 days. Find ratio of their efficiency.
- Find average of 23, 27, 31, 35, 39.
- If 30% of x = 45, find x.
- A car travels 120 km at 60 km/h. Time taken?
- A number is increased by 20% and then decreased by 10%. Find net % change.
- Find least number divisible by 8, 12, 15.
- A man buys 10 pens at βΉ15 each and sells them for βΉ180 total. Find gain %.
- The sum of first 20 natural numbers = ?
- Two numbers are in ratio 4:5. Their LCM = 180. Find numbers.
- Find the perimeter of a rectangle with l=12, b=8.
- A can do 1/3 of work in 5 days. Whole work in?
- Find HCF of 36 and 84.
- 20% of a number is 50. Find the number.
πΉ Logical Reasoning & Puzzles (26β50)
- Arrange order:
- Ramesh taller than Suresh
- Mahesh shorter than Ramesh
- Who is tallest?
- If CAT = 3120, DOG = 4157 β BAT = ?
- Series: 2, 6, 12, 20, 30, ?
- Find the odd one: 3, 5, 7, 9, 11
- If + means Γ, β means Γ·, Γ means β, Γ· means +, find: 6 + 3 Γ 2 β 4 Γ· 2
- Arrange words in dictionary order: Mango, Apple, Orange, Banana
- If 3x + 7 = 16, find x.
- Fill series: A1, B2, C3, D4, ?
- Which word can be made from βINFORMATIONβ?
- In a row, Ram is 7th from left and 10th from right. How many students total?
- 3 persons A, B, C. A beats B, B beats C, C beats A. Who is best?
- If 9 = 81, 8 = 64, 7 = 49, then 6 = ?
- Statement: All dogs are animals. All cats are animals. Conclusion: ?
- Odd one out: Square, Rectangle, Triangle, Circle
- If North-East = 1, South-West = 3, North-West = ?, find logic.
- Missing number:
3 5 8
2 4 6
1 ? 5
- Mirror image of word βTEAMβ?
- If today is Wednesday, what day will it be after 45 days?
- Rahulβs mother is sister of Raniβs father. How is Rahul related to Rani?
- Which number replaces the question mark: 4 β 16, 5 β 25, 6 β ?
- Spot the pattern: 1, 4, 9, 16, 25, ?
- Arrange logic: Q β S, R β T, then U β ?
- 6 people sit in a circle. A is left of B, C is opposite D β who is right of A?
- If in a code, A = 2, B = 4, C = 6, then ACE = ?
- Find missing alphabet: AZ, BY, CX, ?
Would you like me to:
- π Send these 100 questions as a PDF file (Zoho Crash Pack)
- or π Give answers + explanations for all coding and aptitude questions (for practice review)?
Which do you want next, da β PDF or with answers?
Top comments (0)