Coding | Mcqs | Multiple choice questions | Informative | Computer Science | Engineering | Aptitude | Quants | Verbal

INFEED

PBT | DAILY TEST | PROGRAMMING | DAILY TEST

 DATA INTERPRETATION 

 

 graphs of performance analytics on a laptop screen

 

QUESTIONS AND OPTIONS MAY VERY

1.

Pie charts shows the expenses on various heads in construction of a house . Study the Pie-chart The
percentage increase in the amount spent on labour from 1991 to 2001, given that the total amount
spent on the construction of the house is Rs. 3,60,000 in 1991 and Rs. 8,64,000 in 20

166.70%

2.

What is the difference between the total number of male viewers and female viewers of ZEE TV from all
six cities 

354

 

3.  

The following line – graph gives the ratio of the amounts of imports by a company to the amount of
exports from that company over the period from 1995 to 2001 The questions given below are based on
this graph Ratio of value of imports to exports by a company over the years If the imports of the
company in 2002 was Rs. 272 crores, the exports from the company in 2002 was 

Rs. 320 crores

 

4.

Pie charts shows the expenses on various heads in construction of a house . Study the Pie-chart What
percentage of the total amount is being spent on cement in 1991

30%


5.

The bar graph given below shows the total number of students in six sections of a class VI of a certain
school. Using the graph, answer the questions Which two sections have the same number of students 

Section A and section F

 

6.

The bar graph given below shows the total number of students in six sections of a class VI of a certain
school. Using the graph, answer the questions The percentage of students in Section C out of the total
students in class VI is approximately

 15.57% 


7.

The bar graph given below shows the total number of students in six sections of a class VI of a certain
school. Using the graph, answer the questions What is the total number of students in class VI

199 

 

8.

The bar graph given below shows the total number of students in six sections of a class VI of a certain
school. Using the graph, answer the questions What is the ratio of the number of students in Section A
to that of Section C

34:31 


9.

Pie charts shows the expenses on various heads in construction of a house . Study the Pie-chart What
is the total angle of Wood and Cement together 2001? 

168

 

10.

What is the average number of female viewers of ZEE TV taking all six cities together 

641

 

11.

The bar graph given below shows the total number of students in six sections of a class VI of a certain
school. Using the graph, answer the questions The ratio of the students in section B and section C is
34:35

35:31 


12.

The following line – graph gives the ratio of the amounts of imports by a company to the amount of
exports from that company over the period from 1995 to 2001 The questions given below are based on
this graph Ratio of value of imports to exports by a company over the years What was the percentage
increase in imports from 2003 to 2004

data inadequate

 

13.

Pie charts shows the expenses on various heads in construction of a house . Study the Pie-chart What
is the difference between highest and least amount spent in 1991 (in degrees)
86o
112o
90o

 

14.

The following line – graph gives the ratio of the amounts of imports by a company to the amount of
exports from that company over the period from 1995 to 2001 The questions given below are based on
this graph Ratio of value of imports to exports by a company over the years If the imports in 2004 was
Rs. 250 crores and the total exports in the years 2004 and 2005 together was Rs. 500 crores, then the
imports in 2005

Rs.420 crocres 

 

15.

Pie charts shows the expenses on various heads in construction of a house . Study the Pie-chart If the
total cost of constructing the house is Rs. 3,60,000 in 1991 and Rs. 8,64,000 in 2001 ,What is the
amount spent on Steel in 1991 and 2001
Rs. 60,000 , Rs. 84,000
Rs. 80,000 , Rs. 2,10,000

 RS.50,000, RS.1,44,00

 

16.

The following line – graph gives the ratio of the amounts of imports by a company to the amount of
exports from that company over the period from 1995 to 2001 The questions given below are based on
this graph Ratio of value of imports to exports by a company over the years The imports were
minimum proportionate to the exports of the company in the year
2002

2003 

 

17.

The total number of male viewers of ZEE TV from city C is what percentage more or less than the total
number of female viewers of SONY TV from city F
12.4%
16%

18.60% 


18.

The average number of male viewers of SONY TV from all cities together is what percentage of the total
number of viewers of STAR PLUS TV from city D ( Approximate value)
40%

50%
30%
 

19.

The total number of female viewers of COLOR TV from city C is what percentage of the total number of
female viewers of STAR PLUS from city A(approximate value)

88%
86%
82%
 

 

20.

The following line – graph gives the ratio of the amounts of imports by a company to the amount of
exports from that company over the period from 1995 to 2001 The questions given below are based on
this graph Ratio of value of imports to exports by a company over the years In how many of the given
years were the exports more than the imports

4

 

PROGRAMMING 

 laptop computer showing codes

PROBLEM 1

Problem statement
Given a number 'n' and a prime number 'p'. Print modular multiplicative inverse of all integer from 1 to n
(both inclusive) with respect to given prime number 'p'. Note:-a modular multiplicative inverse of an
integer a is an integer x such that the product ax is congruent to 1 with respect to the modulus p.
Input Format
First line of input contains value 'n'. Next line of input contains value 'p'
Output Format
A series of integers which are modular multiplicative inverse of all integers from 1 to n.
Constraints
1<=n<=10^5 1<=p<=10^5

SOLUTION 

PYTHON PROGRAM:

def modInverse(a, prime) :
    a = a % prime
    for x in range(1,prime) :
        if ((a*x) % prime == 1) :
            return x
    return -1

def printModIverses(n, prime) :
    for i in range(1,n+1) :
        print( modInverse(i, prime) ,end= " ")
n=int(input())
prime=int(input())
printModIverses(n, prime)

 


PROBLEM 2

Problem statement
Given three numbers x, y and p, compute (x^y) % p.
Input Format
Single line of input contains three space separated integers integers x,y and p.
Output Format
Print (x^y) % p.
Constraints
1<=x<=50 1<=y<=100 1<=p<=20

SOLUTION 

PYTHON CODE:

def power(x, y, p) :
    res = 1
    x = x % p
    if (x == 0) :
        return 0
    while (y > 0) :
        if ((y & 1) == 1) :
            res = (res * x) % p
        y = y >> 1  
        x = (x * x) % p
    return res
x,y,p=map(int,input().split())
print(power(x, y, p))


PROBLEM 3

Problem statement
Nick is interested in prime numbers. Once he read about Goldbach problem. It states that every even
integer greater than 2 can be expressed as the sum of two primes. That got Nick's attention and he
decided to invent a problem of his own and call it Noldbach problem. Since Nick is interested only in
prime numbers, Noldbach problem states that at least k prime numbers from 2 to n inclusively can be
expressed as the sum of three integer numbers: two neighboring prime numbers and 1. For example, 19
= 7 + 11 + 1, or 13 = 5 + 7 + 1. Two prime numbers are called neighboring if there are no other prime
numbers between them. You are to help Nick, and find out if he is right or wrong.
Input Format
The first line of the input contains two integers n and k.
Output Format
Print "YES"(without subquotes) if at least k prime numbers from 2 to n inclusively can be expressed as
it was described above. Otherwise output NO
Constraints
(2 ≤ n ≤ 1000)
(0 ≤ k ≤ 1000)

SOLUTION 

PYTHON CODE :

n,k=map(int,input().strip().split())
v = []
for i in range(2,n+1):
    if all(i%j!=0 for j in v):
        v.append(i)
c=0
for i in range(len(v)-1):
    if v[i]+v[i+1]+1 in v:
        c+=1
if(c>=k):
    print("YES")
else:
    print("NO")

2 Comments

Post a Comment

Previous Post Next Post