Search This Blog

Sunday, October 16, 2011

C Programming True/False Quiz

1. The default prototype of any C function is 'int'.

[A] True

[B] False





2. The set of statements belongining to a function are enclosed within a pair of braces.

[A] True

[B] False




3. Just like array of int / float, there can be array of pointers.

[A] True

[B] False




4. Logical operators cannot be used with 'do' loop.

[A] True

[B] False




5. Arithmetic instructions are used to control the sequence of execution of various statements in program.

[A] True

[B] False




6. In TSD based client server architecture, the user interface is loosely coupled with the data.

[A] True

[B] False




7. switch requires an integer expression.

[A] True

[B] False




8. Formal and Actual arguments cannot be same.

[A] True

[B] False




9. The sequence diagram shows flow of behaviour and collaboration of objects.

[A] True

[B] False




10. An Array is a Primary Constant.

[A] True

[B] False




11. A function can return only one value at a time.

[A] True

[B] False




12. One structure can be nested within another structure.

[A] True

[B] False




13. If break is not used in cases, compiler gives an error.

[A] True

[B] False




14. Control instructions are used to control the sequence of execution of various statements in program.

[A] True

[B] False




15. Standard I/O functions are nothing but stream I/O functions.

[A] True

[B] False




16. Comments cannot be nested.

[A] True

[B] False




17. A constant is a quantity that doesn't change.

[A] True

[B] False




18. argv is an array of pointers.

[A] True

[B] False




19. The interaction diagrams are not good enough if behaviour of object is conditional and gets into a loop.

[A] True

[B] False




20. The control instructions determine the 'flow of control' in a program.

[A] True

[B] False



0 comments: