Memory Map Questions and Answers
A memory map in C language represents how memory is allocated and organized for variables, functions, and data segments during program execution. It includes the text (code), data, heap, and stack segments. Understanding the C memory map is vital for programmers tackling programming questions and answers in competitive coding tests or technical interviews by companies like TCS, Infosys, and Wipro. These questions assess your grasp of runtime memory allocation, pointers, and scope of variables. This section includes detailed C language questions with answers on memory maps, helping learners debug programs efficiently and develop optimized code.
Memory Map
Showing 10 of
101 questions
81. A compiler is
- A fast interpreter
- slower than an interpreter
- Converts a program to machine code
- None of the previous
82. An interpreter is
- Faster than a compiler
- Translate and executes programs statement by statement
- Converts a program to machine code
- None of the previous
84. Givent hat the subprogram putc displays the character in a1, the effect of the following instruments is to mov a1, 'c' sub a1, 2 call putc
- Display 2
- Display 'c'
- display 'a'
- Display a blank
85. which o the following is an illegal 8086 instruction ?
- mov 20, x
- inc A1
- and bx, bx
- add ax, 30
86. The memory address register is used to store
- Data to be transferred to memory
- Data that has been transferred from memory
- The index of the memory location
- An instruction that has been transferred from memory.
87. The memory data register is used to store
- Data to be transferred to or from memory
- Data to be transferred to the stack
- the adress of a memory location
- An instruction that has been transferred from memory
88. The memory data register is used to store
- Data to be transferred to or from memory
- Data to be transferred to the stack
- the adress of a memory location
- An instruction that has been transferred from memory
89. the read/write line is
- Belongs to the data bus
- Belongs to the control bus
- Belongs to the address bus
- CPU bus
90. The program counter
- stores the address of the instruction that is currently being executed
- Stores the next instruction to be executed
- Stores the address of the next instruction to be executed
- Stores the instruction that is being currently executed.