Variables & Datatypes in C

7. What is size of int in C ?

A. 2 bytes
B. 4 bytes
C. 8 bytes
D. Depends on the system/compiler

View Answer


8. Range of double is -1.7e-38 to 1.7e+38 (in 16 bit platform - Turbo C under DOS)

A. True
B. False

View Answer


9. Which is false?

A. Constant variables need not be defined as they are declared and can be defined later
B. Global constant variables are initialized to zero
C. const keyword is used to define constant values
D. You cannot reassign a value to a constant variable

View Answer


10. Array is ______ datatype in C Programming language.

A. Derived Data type
B. Primitive Data type
C. Custom Data type
D. None of these

View Answer


11. If you pass an array as an argument to a function, what actually gets passed?

A. Address of last element of Array
B. Value of first element
C. Base address of array
D. Value of elements in array

View Answer


12. When double is converted to float, the value is?

A. Rounded
B. Truncated
C. Depends on the standard
D. Depends on the compiler

View Answer


13. Which of the following is not a logical operator?

A. !
B. &&
C. ||
D. |

View Answer







Also check :


Discussion


* You must be logged in to add comment.