You are here : Home >> All Company Study Materials >> Capgemini Archive >> Capgemini Pseudo Code Questions
37. What will be the output of following code :
#include<stdio.h>
int main()
{
while(!!7)
printf(“Hai”);
return 0;
}
A. Hai
B. HaiHai
C. Infinite loop
D. None of these
Ans. C
Explanation : Above code will result in infinite loop.
38. What will be the output of following code :
#include<stdio.h>
int main(){
while(!printf(“awesome”));
return 0;
}
A. awesome
B. Error
C. Infinite loop
D. None of these
Ans. A
Explanation : Above code will just print “awesome” as the message.
sir in ques 1 answer should be ‘b’ i guess
No.
The answer is neither ‘b’ and nor ‘a’ it is ‘c’ because elements of upper triangle of the matrix are getting copied to lower triangle of the matrix therefore it is making the matrix ‘Symmetric’.
Sir can you please explain how c will be the option of question 2
Can u provide explanation…..
Sir my suggestions is that you should add the whole solutions of questions because anybody having trouble how they resolve their issue.
And is my solution and your option does not match how i get the concept???
Answer of Question No. 7 is 21