DEV Community

Cover image for Questions to Expect in an Interview
Chelsea Chemweno
Chelsea Chemweno

Posted on

Questions to Expect in an Interview

Tech Interviews are not as ambiguous as you might think .
In order to top it all , practice these to build programming skills.
You could either use the langugage of your choose or the languge that is required t be used b the interviwer .

  1. Digits in Numbers
#Find a digit at a specific place in a number

#Count the digits in a number 

#Find the largest digit in a number

#Find the second largest digit in a number

#Find the Kth largest digit in a number

#Find the smallest digit in a number

#Find the second smallest digit in a number

#Reverse the digits in a number 

#Rotate the digits in a number

#Is the number a palindrome 

#Check the number divisibility by 2, 3, 5 , & 9

#Find the generic root (sum of all digits a number)

Enter fullscreen mode Exit fullscreen mode

2.Numeric Operations

#Find the sum of 'n' numbers 

#Find the expontention of a number 

#Find the factorial of a number 

#Check if the number is a perfect square 

#If a number is a perfect square , find its square root 

#Find the multiplication of 'n' numbers 
Enter fullscreen mode Exit fullscreen mode

3.Prime Factors

#Check if a number is a primary or not 

#Find the GCD of 2 numbers 

#Find the LCM of two numbers 

#Find all prime factors of a number 

#Given a number , print all primes smaller than it 

Enter fullscreen mode Exit fullscreen mode

4.Number Series

#A Fibonacci sequence 

#An AP sequence 

#A GP sequence 

#Any given sequence 

#Find the Kth number in 1 to 4 

#Find the first 'k' numbers in 5 to 8 

#Find the ith to jth numbers in 9 to 12

#Given some values ,find 13 AP's steps value 

#Given some values , find 14 GP's common ratio
Enter fullscreen mode Exit fullscreen mode
  1. Algebraic Equations
#Given two linear equations ,find the solution 

#Given a quadratic equation , find the root values 

#Given a linear equation, find the dependent value for an independent value.
Enter fullscreen mode Exit fullscreen mode

6.Complex Numbers

#Given a complex number , print its real and imagariey part 

#Multiply two complex numbers 

#Divide two complex numbers 

#Find the square of a comple number 

#Add two complex numbers 

#Substract two complex numbers 

#Find the square root of a negative number 

Enter fullscreen mode Exit fullscreen mode

7 . Special Numbers

#Check if a number is strong number 

#Check if a number is a perfect number 

#Check if a number is an Armstrong number 

#Check if a number is a Lychrel number 

#Check if a number is Harshad number 

#Check if a number is Catalan number 

#Check if a number is a Duck number 

#Check if a number is an Ugly number 

#Check if a number is an Abundant number 

#Check if a number is Narcissistic Decimal number 

#Check if a number is Lucus number 

#Check if a number is Kaperkar number 

#Check if a number is a Happy number 

#Check if a number is an Evil number 

#Check if a number is an Amicable number 

#Check if a number is a Pronic number 

#Check if a number is a friendly Pair number 

#Check if a number is a Sunny number 

#Check if a number is a Deficient number 

#Check if a number is a Neon number 

#Check if a number is Automorphic number 

#Check if a number is Trimorphic number 
Enter fullscreen mode Exit fullscreen mode

8.Unit conversion

#Base 
  >Octal
  >Binary 
  >Hexadecimal 
  >Decimal 
#Weight 
  >Gram 
  >Kilogram
  >Quintal
  >Tonne 
  >Pound 
  >Ounce 
#Lenght 
  >cm 
  >mtr 
  >km 
  >ft
  >mile
#Area 
  >sq cm 
  >sq mtr 
  >sq km 
  >sq km 
  >sq inch 
  >sq ft 
  >sq yard 
  >Arce
  >Hectare
#Volume 
  >Cubic mtr 
  >Cubic Inch 
  >Cubic Ft 
  >litre 
  >Gallon
  >Pint 
  >Barrel 
#Temperature 
 >Fahrenheit
 >Celcius 
 >Kelvin 
 >Rankine 
 >Newton 
 >Romer 
 >Reaumur 
#Time 
 >Second 
 >Minute 
 >Hour 
 >Day 
 >Week
 >Month 
 >Year 
#Currency 
 >USD
 >EUR
 >GBP 
 >JPY
 >CHF
 >CAD 
 >AUD 
 >CNY 
 >HKD
 >SGD
 >KRW 
 >INR 
 >ZAR  
Enter fullscreen mode Exit fullscreen mode

9.Calculation

#Calculate loan 

#Calculte fixed deposit returns 

#Calculate Simple Interest 

#Calculate Compound Interest 

#Calculate BMI 

#Calcualte item Price  (Considering tax , discount and shipping ) 
Enter fullscreen mode Exit fullscreen mode
  1. Geometry
#Find the distance between two points 

#Given two sides of a right-angel triangle , find the 3rd 

#Find the 3rd angel of a triangle when 2 are given 

#Area of a triangle when two sides are given 

#Perimeter of a square 

#Area of a square 

#Circumference of a circle 

#Circumference of a semi-circle 

#Area of a rectangle 

#Perimeter of a rectangle  

#Area of a semi-circle 

#Area of a ring 

#Circumference of an eclipse 

#Area of an eclipse 

#Volume of a hemisphere 

#Volume of a cube 

#Surface Area of a cylinder 

#Surface Area of a cylinder 
Enter fullscreen mode Exit fullscreen mode

11 . Vector

#Find scalar multiplication of a vector 

#Find the magnitude of a vector 

#Find a unit vector along a given vector

#Find dot product of two vectors 

#Find a cross product of two  vectors 

#Check if the vectors are orthogonal 

#Find addition/subtraction of vectors 

Enter fullscreen mode Exit fullscreen mode

12 .Matrix

#Find the determinant of a matrix 

#Find the multiplication of two matrices 

#Find the transpose of a matrix 

#Find if two matrices are orthogonal 

#Find inverse of a 2x2 and 3x3 matrix 

#Find the addition and subtraction of matrices 
Enter fullscreen mode Exit fullscreen mode

11.Set

#Find the union of 2 sets 

#Find the intersection of two sets

#Find the difference between two sets 

#Find if two sets are disjoint 

#Find the symmetric difference between two sets  

#Find if 2 set is subset/superset of another 
Enter fullscreen mode Exit fullscreen mode

Top comments (0)