Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Every variable has three major items associated with it: the value stored in the

ID: 3738846 • Letter: E

Question

Every variable has three major items associated with it: the value stored in the variable, the number of bytes reserved for the variable, and the bytes'--. a. precision b. size 1. c. accuracy d. address 2. The address of a variable is the memory location of the byte reserved for the variable. a. first b. last middle d. largest 3. The number of bytes required for an integer pointer is a. one b. four c. eight d. compi 4. Pointers are simplythat are used to store the addresses of other variables. e. variables d. addresses a. prototypes b. data types 5. C++ requires that when we declare a pointer variable, we also specify the__ of the pointed to. c. size d. data type a. value b. address For dynamic allocation of memory to create new variables as a program is running, po a. required b. helpful inters are 6. c. not allowed d. allowed Using a reference to access the value of a variable without the need for explicitly using the indirection operator symbol() is referred to as a(n) a. automatic access b. quick lookup 7. c. variable access d. automatic dereference is a single-dimension array containing five integers, and there are four bytes per integer, s. If grade X &grade; [3] is computed as c. &grade; [0] 4 d. &grade; to](3 4) 4 a. grade [3 b. ágrade [0] 4 1) is a(n) The 1 in the expression * (gptr a. word b. byte 9. + c.) offset d. scale 10. When an offset is added to a pointer, the address in the pointer is c. eliminated a. not changed b. temporarily changed d. overwritten For each array created, the name of the array becomes the compiler for the array, and the a. offset b. byte count name of the pointer constant created by the 11. location reserved for the array is stored in this pointer. c. starting address d. offset address of the first

Explanation / Answer

Q.1.

The 3 major items associated with every variable is Value hold by the variable, No. of bytes and third and most important one is the address where the variable will be stored. Hence Answer is D. Address

Q.2

The address of a variable is always the Memory Location of the First byte reserved for the variable. As the adress is always considered from the very first Bytes. Hence the answer is A. First.

Q.3

All pointers such as Char, Int, Float are same As it simply stores the address and which is unsigned Int.

For 32-bit system 4 bytes is required and for 64-bit system 8 bytes is required. I suggest you to ask the examiner to clarify whether this question is for 32 bit system or it is for 64 bit system.In general considering 32 bit system The answer is B.FOUR(But ask examiner as i have written above).

Q4.

Pointer are just like any other variable which is used to store some data. Pointers stores address which is in Hexadecimal number which represents memory. Hence the answer is C. Variables

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote