Chapter-10, Programming in C 1. Assume x,y and z are floating point variables and they have been assigned the values x = 8.8, y 3.5 and z = 5.2. The value of arithmetic expression 2*x /(3*y) is — 2 1.67619 .67619 1.6 2. Bit field — is a structure declaring the sizes of the members in terms of bits None of the above is a field having many sub-fields is a member of a structure whose size is specified in terms of bits 3. A preprocessor command — need not start on a new line need not start on the first column has # as the first character comes before the first executable statement 4. A string is like an array because — an array is a kind of string they both access functions the same way a string is a kind of array they are both character arrays 5. A static variable is one — retains its value throughout the life of the program which is same as an automatic variable but is placed at the head of a program which cannot be initialized which is initialized once at the commencement of execution and cannot be changed at run time 6. A pointer variable can be changed within a function passed to a function as argument return by a function All of the above 7. A computer system having 64 K memory will have its last address as — 64000 65530 65535 65536 8. A string that is a formal parameter can be declared — (a)as an array with empty bracket (b) as a pointer to character (c) Both (a) and (b) (d) None of the above 9. A set of names can be represented as a — two dimensional array of characters one dimensional array of strings one dimensional array of pointers to character All of the above 10. A field width specifier in a printf() function — specifies the maximum value of a number specifies how many characters’ positions will be used for a number controls the margins of the program listing controls the size of type used to print numbers Loading … Question 1 of 10