Memory Map Questions and Answers

Take Exam

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

21. Mapping virtual address to physical address

  • page table is used
  • Segmentation is used
  • Symbol table is used
  • None of these
Show Answer Report

22. attempts tow rite a read only location

  • segmentation fault
  • Null pointer assignment
  • Page fault
  • None of these
Show Answer Report

23. Turbo C used formula: segment address *16 + offset address

  • To get the 20 bits physical address
  • To get the 32 bits physical address
  • To get the 24 bits physical address
  • None of these
Show Answer Report

24. Virtual memory is a part of

  • hard Disk Memory
  • RAM memory
  • Flash Memory
  • None of these
Show Answer Report

25. Which byte order is followed by Motorola Processors ?

  • Little-Endian
  • Big-Endian
  • Bi-Endian
  • None of these
Show Answer Report

26. Every C program starts from main and ends with

  • Ending Corely brace
  • Null statement
  • Semocolon
  • None of these
Show Answer Report

27. List in chronological order, when these languages became officially recognised as a standard i) ANSI C II) ANSI common LIST (III) ANSI COBAL (iv)ANSI ADA

  • i, ii, iii, iv
  • i, iii, ii, iv
  • iv, iii, i, ii
  • i, iv, iii, ii
Show Answer Report

28. Addresses of the Stack variables are always growing

  • Up Order
  • Down Order
  • Left Order
  • Right Order
Show Answer Report

29. Whch of the following stream associated with Keyboard ?

  • stdin
  • stdout
  • stderr
  • None of these
Show Answer Report

30. Which of the following is not a keyword ?

  • goto
  • volatile
  • printf
  • All the above
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test