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



Azure - Machine Learning MCQ's

1. Which of the following is a python REPL environment ?

   View Answer   

   jupyter notebook



2. What is the default Python package manager in case of Azure ML Studio?

   View Answer   

    conda 



3. Which of the following can be generally used to clean and prepare Big Data?

   View Answer   

    U-SQL



4. Reference data is _________.

   View Answer   

    additional application data for user



5. Get the required size of a dataset from a large amount of accumulated data is called ________.

   View Answer   

    statistical sampling B,D,C,A,E 



Nginx MCQ's

1. ___________ was introduced in the year 1995.

a) Apache HTTP
b) Apache Tomcat
c) Nginx
d) IBM Websphere

   View Answer   

   Apache HTTP



2. ___________ webserver was introduced primarily to support Java servlets.

a) Apache Tomcat
b) IBM Websphere
c) Nginx
d) Apache HTTP

   View Answer   

   Apache Tomcat



3. Nginx was introduced in the year _________.

a) 1998
b) 1999
c) 1996
d) 1997

   View Answer   

   1999



4. IBM Websphere was introduced in the year __________.

a) 1999
b) 1995
c) 1996
d) 1998

   View Answer   

   1998



5. Nginx has become popular as it resolves __________.

a) C10X problem
b) C10M problem
c) C10K problem
d) Event-driven

   View Answer   

   C10K problem