Recent Questions and Answers



Recent Questions

63198 QuestionsPage 5 of 4214.

Hamming Code to detect Error of 10 bit Message

Error detection of 10 bit message using hamming code.

Asked by: Suhel on Jul 28, 2019.EDIT

Missing Number 999, 727, ?, 339

Find the Missing number 999, 727, ?, 339.

Asked by: Aluvala Suresh on Jul 27, 2019.EDIT

TCS Ninja Exam Pattern

Please provide me a TCS Ninja Exam Pattern along with previous year question paper.

Asked by: Nandeesh on Jul 26, 2019.

Different Ways to Make the Environment Friendlier

What would you do to make the environment friendlier?

Asked by: Banuapatrici on Jul 26, 2019.EDIT

Find the Cost Price of the Book which was Sold for Rs 891

A man sold his book for Rs 891, thereby gaining 1/10th of its cost price. Then the cost price of the book was?

Asked by: Kainat on Jul 25, 2019.EDIT

Write a C Program to Calculate the S-score of a Given Array

The S-score of an array of integers is calculated as follows:

For each integer in the array, the S-score is 2 if the last digit or the second-last digit of the integer is 7, or 3 if both the last and second-last digits are 7, and 0 if none of those digits are 7.
Here second-last digit means the digit in the tens place.
The S-score is never more than 3
For example: 107 scores 2, 172 scores 2, 32177 scores 3, and 17322 scores 0.
The total S-score of an array is simply the sum of the S-scores of all the integers in the array
For example: the array {107, 172, 32177, 17322} will score 2+2+3+0 = 7.
If an integer does not have a second-last digit, it is assumed to be 0.

Write a function in C which calculates the S-score of a given array. The prototype of the function should be as follows:

int array_score(int a[], int len);
Here, a is the array, and len is the length of the array. The function should return the S-score of the input array.

Asked by: Aman Singh on Jul 25, 2019.EDIT

Write a Program to Print the Contents of the Array

Consider this C Program or Java Program. It reads integers from the standard input (until it gets a negative number) and puts them into an array. After that it calls processArray on the array, and then prints the contents of the array on standard output.

Currently, processArray does not modify the array. You have to change this program so that any number in the array is replaced by -1 if it divisible by 7, with -2 if it is greater than 100, and with -3 if it is divisible by 7 and greater than 100. To do this, you have to put your code inside processArray. Do not change anything else in the program.

Asked by: Geetika on Jul 25, 2019.EDIT

Function in C which Calculates the F-score of an Array

The F-score of an array of integers is calculated as follows:

For each integer in the array, the F-score is 2 if the last digit or the second-last digit of the integer is divisible by 4, or 3 if both the last and second-last digits are divisible by 4, and 0 if none of those digits are divisible by for.
Here second-last digit means the digit in the tens place.
The F-score is never more than 3
For example: 138 scores 2, 142 scores 2, 32148 scores 3, and 17322 scores 0.
The total F-score of an array is simply the sum of the F-scores of all the integers in the array
For example: the array {138, 142, 32148, 17322} will score 2+2+3+0 = 7.
If an integer does not have a second-last digit, it is assumed to be 0 (which is divisble by 4).

Write a function in C which calculates the F-score of a given array. The prototype of the function should be as follows:

int array_score(int a[], int len);
Here, a is the array, and len is the length of the array. The function should return the F-score of the input array.

Asked by: Rishabg on Jul 25, 2019.EDIT

Find the RHS of 10 3 = ?

2 7 = 23
5 9 = 11
10 3 = ?

Asked by: Pradeep Kumar Mangaraj on Jul 25, 2019.  Answers (1)EDIT

Solve and Find the Missing Number 46095, 4190, 598, 119, ?, 19

Solve the series by finding the missing number 46095, 4190, 598, 119, ?, 19.

Asked by: Mounika on Jul 25, 2019.EDIT

Code Value for Watch

If Titan is coded as 48797 then what is the code for Watch?

Asked by: Gulshan on Jul 25, 2019.EDIT

Next Number of 16, 8, 8, 12, 24, 60, 180

Find the Next number of 16, 8, 8, 12, 24, 60, 180.

Asked by: Sravya on Jul 24, 2019.

Find the Value of Stage

Cat = 72
Trot= 292
Stage = ?

Asked by: Surabhi on Jul 23, 2019.  Answers (1)

Estimating Bridge and Culvert by Centre Line Method

Can we estimate bridge and culvert by centre line method?

Asked by: Sovit Ghimire on Jul 23, 2019.

Converting the Piano Sound

How to convert the piano sound by a computer so that the sound can be well and fresh?

Asked by: Niyonshuti Abel on Jul 23, 2019.EDIT

Sponsored Links


Current Affairs

Quick Links