IQuestion 11 TRUE oR FALSE WRITE CLEARLY NO ABBREVIATIONS a

IQuestion 11 TRUE oR FALSE: WRITE CLEARLY: NO ABBREVIATIONS a) The address(&) operator refers to memory location where operand is stored Ans------- b)The indirection operator refers to the value of stored operand b Ans------- c) Accessing an operand through pointers involves more processing time than direct access CAns------- -d) String function isalpha\' returns non-logic 0 for a character input e) Expression (x y)&& (x b) is true, if b is larger than y e Ans------- stack has the property of First In First out fAns value 124 FFBC. Each initialized to (a,b, c d et LLk.um: Pointerxptr refers to the first element ofx array and has a Array element is represented by 16 bit uni code. Memory is byte organized. What are the address locations of elements: c, f, and m in the above? specify in the hex decimal notation .Question 21 Machine Hex Address of elements c ---------m to the op Language Programming (problem 7.27& 7.28] and the SML system, the first two digits refer code and the last two digits to the operand memory location. (From page 327/328) The opcodes are: READ 10;wRITE 11:LOAD 20; STORE ADD 30; suBTRACT 31;DIVIDE 32 41; BRANCHZERO42; HALT 43; In the following MULTIPLY 33; BRANCH40; 1008 machine language program, starting at memory00 Read A 01 1007 Read B 02 2007 03 3108 2111 05 4300 Halt 07 0011 0022 0033 0055 12 99999 .a) What are the nitial contents of locations 08, o9, 10, and 1 before the program is run Contents of locations 07 b) In the above, does the program terminate or loop back at the Halt instruction? Ans------- c) After the program is run starting from location oo, A and B values are 44 and 77. What are stored locations 08, 09, 11. dyr contents of location o3 are changed from Contents of locations 07 above withA-7 and B-20. 3108 repeat part (b) Contents of locations 07 08 e initialization c program for the above SML system is as shown. Functional memory for (k 20; k

Solution

Q. 1.

a. The address(&) operator refers to memory location where operand is stored. True.

b. The indirection (*) operator refers to the value of stored operand. False. It actually refers to the value at the stored address.

c. Accessing an operand through pointers involves more processing time than direct access. True. As the name itself specifies, its an indirect operator, and obviously takes some extra time.

d. String function isalpha returns non-logic 0 for a character input. False. If the character entered is an alphabet it returns 1, where as if it represents anything other than an alphabet, it returns 0.

e. Expression (x < y) && (x > b) is true, if b is larger than y. False. If b is larger than y, then the condition can never be true. This is because. Assume b = 10, and y = 5. Then, a value x can never be less than 5, and greater than 10 at a time.

f. Stack has the property of First In First Out. False. Stack is a last-in first-out property.

 IQuestion 11 TRUE oR FALSE: WRITE CLEARLY: NO ABBREVIATIONS a) The address(&) operator refers to memory location where operand is stored Ans------- b)The i

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site