Search Your Question...!

Diagonal Difference | Python Solution | HackerRank

 iven a square matrix, calculate the absolute difference between the sums of its diagonals.

For example, the square matrix  is shown below:

1 2 3
4 5 6
9 8 9  

The left-to-right diagonal = . The right to left diagonal = . Their absolute difference is .

Mini-Max Sum | Python Solution | HackerRank

 Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.

Example

The minimum sum is  and the maximum sum is . The function prints

16     24

Birthday Cake Candles | Python Solution | HackerRank

 You are in charge of the cake for a child's birthday. You have decided the cake will have one candle for each year of their total age. They will only be able to blow out the tallest of the candles. Count how many candles are tallest.

Example

The maximum height candles are  units high. There are  of them, so return .

Staircase | Python Solution | HackerRank

 Staircase detail

This is a staircase of size :

   #
  ##
 ###
####

Its base and height are both equal to . It is drawn using # symbols and spaces. The last line is not preceded by any spaces.

Write a program that prints a staircase of size .

Grading Students | Python Solution | HackerRank

 HackerLand University has the following grading policy:

  • Every student receives a  in the inclusive range from  to .
  • Any  less than  is a failing grade.

Sam is a professor at the university and likes to round each student's  according to these rules:

  • If the difference between the  and the next multiple of  is less than , round  up to the next multiple of .
  • If the value of  is less than , no rounding occurs as the result will still be a failing grade.

Regression Analysis MCQ's

1. What is the sum of standard error for the baseline model?

   View Answer   

   SST



2. __________ means predicting one variable from another.

   View Answer   

   Regress



3. R Square Value can be greater than zero.

   View Answer   

   False



4. ________ is a unit less quantity.

   View Answer   

   R Square



5. Two or more variables correlating in a Multiple Regression Model is known as ____________.

   View Answer   

   Multi–Correlation



Data Visualisation with Matplotlib MCQ's

1. Multiple lines can be plotted using a single plot function? State True or False

   View Answer   

   True



2. Which of the following parameter is used to set the color of a error bar in bar plots?

   View Answer   

   ecolor



3. Which of the following parameter is used to set the style of a line?

   View Answer   

   linestyle



4. A Figure can contain multiple Axes. State true or false.?

   View Answer   

   True



5. What does the function subplot return?

   View Answer   

   Axes object



TYPOGRAPHY MCQ's

1. The distance between baseline and descender line is called as

   View Answer   

   Descender height



2. The characters that are aligned with the ascender line is called as

   View Answer   

   Superscript



3. A narrower version of the regular style is called as

   View Answer   

   condensed



4. ___' is the white space formed in between the words of a justified body text.

   View Answer   

   river



5. Measurements of fixed values are called as

   View Answer   

   ABSOLUTE MEASUREMENT