C Programming True/False Quiz
1. Functions are written to avoid rewriting the same section of code which requires oftenly.
[A] True
[B] False
2. A structure variable can be passed to a function.
[A] True
[B] False
3. When function is called by itself, it is known as recursive function.
[A] True
[B] False
4. There is no three dimensional array in C.
[A] True
[B] False
5. Only one comment can be given in a C program.
[A] True
[B] False
6. strstr() finds number of occurences of a give string in another string.
[A] True
[B] False
7. The use case may begin with no precondition or with some preconditions.
[A] True
[B] False
8. If the value of a formal argument is changed in the called funciton, the corresponding changes take place in the calling funciton.
[A] True
[B] False
9. Real falls under secondary constant in C.
[A] True
[B] False
10. The return statement should present at the end of the called function.
[A] True
[B] False
11. While passing an array elements to a function by call by value we pass values of array elements to the function.
[A] True
[B] False
12. All structure elements are stored in contiguous memory locations.
[A] True
[B] False
13. There are basically 5 types of instructions in C.
[A] True
[B] False
14. A value of object changes when event occurs.
[A] True
[B] False
15. scanf is used to accept the input from the user.
[A] True
[B] False
16. strupr() function is used to convert a string into upper case.
[A] True
[B] False
17. When array is declared with rows and columns it is called as 2-D i.e. two dimensional array.
[A] True
[B] False
18. When array elements are passed to a function with call by reference, function has pointer arguments.
[A] True
[B] False
19. If the file is absent, fopen() returns NULL.
[A] True
[B] False
20. The keywords should not be used as variables.
[A] True
[B] False
0 comments:
Post a Comment