| Other C++ Code Interview Questions |
|| Asked @
|Show by induction that 2n > n2, for all n > 4.
|write a function – oriented program that calculates the sum
of the squares from 1 to n. thus, if the input is 3, the
output is 14
|write a program in c++ to scramble a bmp image file using a
scramble key 0x7c and an XOR logic. print out the original
image, the scrambled image and the program.
Note: the first 24bytes of a bmp file contain the header
information of the file.
|How do I store linked list datas into an array?
You are given 9 gold coins that look identical. One is
counterfeit and weighs a bit greater than the others, but
the difference is very small that only a balance scale can
tell it from the real one. You have a balance scale that
costs 25 USD per weighing.
Give an algorithm that finds the counterfeit coin with as
little weighting as possible. Of primary importance is that
your algorithm is correct; of secondary importance is that
your algorithm truly uses the minimum number of weightings
HINT: THE BEST ALGORITHM USES ONLY 2 WEIGHINGS!!!
Write an algorithm that finds both the smallest and largest
numbers in a list of n numbers and calculate its complexity
|Write a program that takes a 3 digit number n and finds out
whether the number 2^n + 1 is prime, or if it is not prime
find out its factors.
|How reader and writer problem was implemented and come up
with effective solution for reader and writer problem in
case we have n readers and 1 writer.
|Write A C++ Program To Input A Number Between 20 To 99 And
Display Its Numbername?
|using repetition structure. Write a c program that will
accept five numbers. The program should count and output the
total count of even numbers and total count of add numbers.
|how to find out the maximum number out of the three inputs.
|write a program to calculate the radius for a quadratic
equation use modular programming(function abitraction)hint
use quadratic function
|For more C++ Code Interview Questions Click Here |