CSE MCQ
which have a short duration in a program
which have short names
which may require less storage than normal integers
all of these
unsigned character
unsigned integer
character
none of' these
is globally accessible by all functions
has a declaration
will be initialized to 0 if not initialized
&street and street will have different values
&street is meaningless
&street+1 and street+1 will have the same values
None of the above
file lives even after the program that created it terminates
memory space will not be wasted
there are many system tools to manipulate files
All of the abone
Array stores data of the same type
Array can be a part of a structure
Array of structure is allowed
All of the above
&x[ i ] is same as x + i - 1
*(x + 1) is same as *(&x [ i ])
*(x + i) is same as x[ i ]
both (b) & (c)
storage needed will be proportional to the size of the data
execution will be faster
swapping process becomes easier and faster
sixth row
Fifth row
fifth column
sixth column
two-dimensional array of characters
one-dimensional array of strings
one-dimensional array of pointers to character
All of above
Strictly speaking C supports 1-dimensional arrays only
An array element may be an array by itself
Array elements need not occupy contiguous memory locations
Both (a) and (b)
It is a collection of items that share a common name
It is a collection of items that share a common name and occupy consecutive memory location
It is a collection of items of the same type and storage class that share a common name and occupy consecutive memory locations
assigns 3 to a [5]
assigns 4 to a [5]
assigns 4 to a [4]
what is assigned is compiler-dependent
true
false
C's asset
C's shortcoming
will not compile successfully
results in run-time error
prints garbage
none of the above
both the subscripts may be left empty
the first (row) subscript may be left empty
the first subscript must be left empty
both the subscripts must be left empty
when initialization is a part of definition
when it is a declaration
when it is a formal parameter and an actual argument
3
4
5
compiler dependent
val[0 ][ 3]
val[0][4]
val[1][1]
call by value
call by value-result
call by reference
none of these