1. Point out the error in the program.

Screenshot 1

A. Error: unknown pointer conversion
B. Error: cannot convert ptr const value
C. No error
D. None of above


Correct Answer: B. Error: cannot convert ptr const value

2. Point out the error in the program (in Turbo-C).

Screenshot 2

A. Error: unknown max in declaration/Constant expression required
B. Error: invalid array string
C. None of above
D. No error. It prints A A


Correct Answer: A. Error: unknown max in declaration/Constant expression required

3. Point out the error in the program.

Screenshot 3

A. Error: RValue required
B. Error: cannot modify const object
C. Error: LValue required in strcpy
D. No error


Correct Answer: B. Error: cannot modify const object

4. Point out the error in the program.

Screenshot 4

A. Error: Lvalue required
B. Error: cannot convert ‘const char * to char *‘.
C. No error and No output
D. None of above


Correct Answer: C. No error and No output

5. Point out the error in the program.

Screenshot 5

A. Error: unknown data type const int
B. Error: const variable have been initialised when declared.
C. Error: stack overflow in x
D. No error


Correct Answer: B. Error: const variable have been initialised when declared.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 5 =