Question
There were two candidate in an election. 15% of the
total voters did not cast their votes whereas 10% of the casting votes were declared invalid. If the winning candidate received 60% of the total votes and won by 3840 votes then find out the total number of Voters?Solution
Let the total voters be 100 Number of casted votes = 85 Number of valid votes = 90/100 × 85 = 76.5 Winning candidates got 60% of total votes = 60 Looser candidates got = 76.5 – 60 = 16.5 Difference between winning and looser candidates votes = 3,480 60 – 16.5 = 43.5 43.5 unit = 3,480 100 = 3480/43.5 × 100 = 8000 Total number of voters = Rs 8,000
In a data analysis workflow, an index is created on a column with very low cardinality (e.g., a 'gender' column). What is a potential consequence of this?
Binary trees are often used to represent hierarchical data. Which of the following is NOT a direct application of binary trees?
What does it mean for an algorithm to be "in-place"?
What is the primary goal of the Matrix Chain Multiplication problem in dynamic programming?
Consider the following Java code:
public class LengthMix {
Β Β public static void main(String[] args) {
Β Β Β Β int[] numbers...
A function sum_matrix_elements(matrix, R, C) is designed to sum all elements of a matrix with R rows and C columns. The implementation uses nested loops...
Which is best fit for blank space 14?
Which of the following statements accurately describes Third Normal Form (3NF) in database normalization?
In a multi-homed network, BGP route flapping causes external instability. Which mechanism MOST effectively prevents repeated advertisement of unstable r...
What is the time complexity of the KMP algorithm for searching a pattern of length 'M' in a text of length 'N'?