Directions to Solve Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer. A
has and never will take
B
had and ever will take
C
had taken nor will ever take
D No correction required
E
had taken and will ever take
Share : |
A rem = fmod(3.14, 2.1);
B Remainder cannot be obtain in floating point division.
C rem = modf(3.14, 2.1);
D rem = 3.14 % 2.1;
Share : |
A Infinite loop
B Hi
C Hello Hi
D Error
Share : |
A 5
B Garbage value
C 4
D Error
Share : |
A 5.000000
B 4.000000
C 3.000000
D Garbage value
Share : |
A Prints "AptitudeCrack"
B Infinite loop
C Prints "AptitudeCrack" 5 times
D Function main() doesn't calls itself
Share : |
A The function should be defined as int f(int a, int b)
B Missing parenthesis in return statement
C Redeclaration of a
D None of above
Share : |
A No error
B Error: return statement cannot be used with conditional operators
C Error: Prototype declaration
D None of above
Share : |
A No error
B Error: Doesn't print anything
C Error: Not allowed assignment
D None of above
Share : |
A It prints garbage values infinitely
B Runs infinitely without printing anything
C Error: main() cannot be called inside printf()
D No Error and print nothing
Share : |
