MCQOPTIONS
Saved Bookmarks
This section includes 12 Mcqs, each offering curated multiple-choice questions to sharpen your C knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The sequential order used to interpret a range of bytes in the memory of a computer is known as _________ |
| A. | Ordering |
| B. | Sequencing |
| C. | Endianness |
| D. | Byte prediction |
| Answer» D. Byte prediction | |
| 2. |
If the data “ABCD” is to be stored in a little endian machine, it will be stored as _________ |
| A. | ABCD |
| B. | DCBA |
| C. | CDAB |
| D. | BCDA |
| Answer» C. CDAB | |
| 3. |
If the code shown below is executed on a little endian machine, then what will be the output of the following C code? |
| A. | 1 |
| B. | 1000 |
| C. | 9999 |
| D. | 0View Answer |
| Answer» B. 1000 | |
| 4. |
It is possible for a processor to support both little and big endian methods. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 5. |
If the output of the following C code is “Big endian”, then what will be the value of *a is? |
| A. | -1 |
| B. | 0 |
| C. | 1 |
| D. | 2View Answer |
| Answer» C. 1 | |
| 6. |
A machine in which the least significant byte is stored in the smallest address is __________ |
| A. | Big endian machine |
| B. | Bi-endian machine |
| C. | Binary bit machine |
| D. | Little endian machine |
| Answer» E. | |
| 7. |
File formats which have _________ as a basic unit are independent of endianness. |
| A. | 1 byte |
| B. | 2 bytes |
| C. | 3 bytes |
| D. | 4 bytes |
| Answer» B. 2 bytes | |
| 8. |
Suppose we transfer a file written on a little endian machine to a big endian machine and there is no transformation from little endian to big endian, then what happens? |
| A. | The big endian machine throws an error when it receives the file |
| B. | The big endian machine reads the file in the reverse order |
| C. | The big endian machine does not read the file |
| D. | The big endian machine reads the file in the normal order |
| Answer» B. The big endian machine reads the file in the reverse order | |
| 9. |
Which of the following is not an example of big endian machines? |
| A. | Power PC |
| B. | Motorola 68K |
| C. | SPARC processors |
| D. | ARM processors |
| Answer» C. SPARC processors | |
| 10. |
The standard byte order for networks is ____________ |
| A. | Bit-Binary |
| B. | Little endian |
| C. | Big endian |
| D. | Bi-endian |
| Answer» E. | |
| 11. |
-1 |
| A. | 0 |
| B. | 1 |
| C. | 2 |
| Answer» B. 1 | |
| 12. |
A machine in which the least significant byte is stored in the smallest address: |
| A. | Big endian machine |
| B. | Bi-endian machine |
| C. | Binary bit machine |
| D. | Little endian machine |
| Answer» E. | |