Other C++ Code Interview Questions 

Question 
Asked @ 
Answers 

What will be the output
for(i=1;i<=3;i++)
{
printf("%d",i);
continue;
i++;
} 
Impetus 
5 
Write a program using twodimensional arrays that determines
the highest and lowest of the 12 input values.
Example:
Enter 12 numbers:
13 15 20 13 35 40 16 18 20 18 20 14
highest: 40
lowest: 13


1 
MinMax
Write an algorithm that finds both the smallest and largest
numbers in a list of n numbers and calculate its complexity
T(n).

QatarUniversity 
1 
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.

Amazon 
4 
Deriving time complexity of Binary tree and AVL tree, step
by step. 
NetApp 
4 
Write a program to enter 10 number of integer entries into
an array n and then odds up all the odd entries. the program
then displays the result.
plssss answer assss fast asss u can... 

1 
write a function oriented program that generates the
Fibonacci, the current numbers of n(as input) and display
them (series). In Fibonacci, the current third number is the
sum of the previous number. 

2 
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.

NetApp 
5 
PROBLEM #8 The cashier at the counter of a Super Store, Mr.
Khazaanchi has the following
bundles of rupee cash notes with him:
Rs. 1, 2, 5, 10, 50, 100, 500, 1000
A customer comes at his counter with various items that he
has shopped. Mr. Khazaanchi totals
the item prices and tells the customer his total amount
payable. The customer gives Mr. Khazanchi
some amount of cash. Find the total number of rupee notes of
each denomination (i.e. 1, 2, 5, 10,
50, 100, 500, 1000) Mr. Khazaanchi will have to give to the
withdrawer ensuring that the total
number of rupee notes are minimum. 

1 
how to find out the maximum number out of the three inputs. 
HP 
6 
. Remove all the blank spaces between
character.Matrix is of 10* 10.
eg: INPUT

 N  A   V  T

 G  U  P 

T    A  

OUTPUT:

 N  A  V  T  

G U  P   

T  A    


Nagarro 
2 
Write an algorithm that receives a string and reverses it. 

2 

For more C++ Code Interview Questions Click Here 