Accenture placement papers on 2014
Q1. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
Q2. Which bit wise operator is suitable for turning off a particular bit in a number?
a) && operator
Q3. Which bitwise operator is suitable for checking whether a particular bit is on or off?
a) && operatorb) &operator
Q4. In C, if you pass an array as an argument to a function, what actually gets passed?
a) Value of elements in arrayb) First element of the array
c) Base address of the array
d) Address of the last element of array
Q5. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
a) The element will be set to 0.
b) The compiler would reportan error.c) The program may crash if some important data gets overwritten.d) The array size would appropriately grow.
Q6. In which numbering systems can the binary number 1011011111000101 be easily converted to?
a) Decimal system b) Hexadecimal system
c) Octal system
d) No need to convert
Q7. How will you free the allocated memory?
a) remove(war-name); b) freeswar-name);
Q8. What is the similarity between a structure, union and enumeration?
a) All of them let you define new valuesb) All of them let you define new data typesc) All of them let you define new pointersd) All of them let you define new structures