Accenture Placement Papers
Placement Papers for All Companies
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?
a) .b) &c) *d) ->
Q2. Which bit wise operator is suitable for turning off a particular bit in a number?
a) && operatorb) &operatorc) ||operatord) :operator
Q3. Which bitwise operator is suitable for checking whether a particular bit is on or off?
a) && operator
b) &operator c) ||operator d) :operator
Q4. In C, if you pass an array as an argument to a function, what actually gets passed?
a) Value of elements in array
b) 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 systemd) No need to convert
Q7. How will you free the allocated memory?
b) freeswar-name); c) deletesvar-name); d) dalloc(var-name);
Q8. What is the similarity between a structure, union and enumeration?
a) All of them let you define new values
b) All of them let you define new data types
c) All of them let you define new pointers
d) All of them let you define new structures