Knight Coders Interview Sample Questions 2019

Knight Coders Interview Sample Questions 2019.

1. What will be the output of the following program:

int main()
return 0;
a. Hello
b. hello
c. Hillo
d. Other:___________________________________________________________

Which integer precedes 6?
a. 2
b. 6
c. 5
d. Other:_____________________________________________________________

The answer is: c
3. Who is the father of Computers?
a. Osama Bin Laden
b. Bill Gates
c. Charles Babbage
d. Other:___

4. Write a program to print the first 10 natural numbers separated by a space.
The answer is:

void main()
//Acceptable to Turbo C++ compiler
for (int i=1;i<=10;i++)
cout<<i<<” “;

.pdf FileDownload Click here

Need More? Click Here