Programming Languages Principles and Practices 3rd Edition Louden Test Bank download pdf
Programming Languages Principles and Practices 3rd Edition Louden Test Bank download pdf
https://testbankfan.com/product/programming-languages-principles-and-
practices-3rd-edition-louden-solutions-manual/
https://testbankfan.com/product/concepts-of-programming-
languages-10th-edition-sebesta-solutions-manual/
https://testbankfan.com/product/foundation-design-principles-and-
practices-3rd-edition-coduto-solutions-manual/
https://testbankfan.com/product/introduction-to-biotechnology-3rd-
edition-thieman-test-bank/
Dental Radiography Principles and Techniques 5th Edition
Iannucci Solutions Manual
https://testbankfan.com/product/dental-radiography-principles-and-
techniques-5th-edition-iannucci-solutions-manual/
https://testbankfan.com/product/beginning-behavioral-research-a-
conceptual-primer-7th-edition-rosnow-test-bank/
https://testbankfan.com/product/accounting-principles-11th-edition-
weygandt-test-bank/
https://testbankfan.com/product/operations-and-supply-chain-
management-the-core-4th-edition-jacobs-test-bank/
https://testbankfan.com/product/automotive-mathematics-1st-edition-
rouvel-solutions-manual/
Discovering the Essential Universe 6th Edition Comins Test
Bank
https://testbankfan.com/product/discovering-the-essential-
universe-6th-edition-comins-test-bank/
Chapter 10: Control II - Procedures and Environments
TRUE/FALSE
1. Procedures were first introduced when memory was scarce, as a way of splitting a program into
small, separately compiled pieces.
2. An activation record is a stored log recording each time a procedure or function is activated.
3. A procedure specification includes its name, the names and types of its formal parameters and its
return type, if any.
4. You call a procedure by stating its name, together with arguments to the call.
6. A call to a procedure transfers control to the beginning of the body of the called procedure.
7. A procedure declaration creates a constant procedure value and associates a symbolic name with
that value.
10. When you define a procedure, the parameters you list in the interface are the formal parameters.
11. When parameters are passed by value, the arguments are expressions that are evaluated at the time
of the call, with the arguments’ values becoming the values of the parameters during the execution
of the procedure.
13. Pass by value implies that changes cannot occur outside the procedure through the use of
parameters.
15. If a pointer is passed by value, the procedure cannot modify the contents of the pointer.
18. Pass by name can be described as an advanced inlining process for procedures.
20. In pass by name parameter passing, arguments are not evaluated until their actual use as
parameters in the procedure.
22. In strongly typed languages, procedure calls must be checked so that the arguments agree in type
and number with the parameters of the procedure.
MULTIPLE CHOICE
5. A procedure communicates with the rest of the program through its parameters and through ____.
a. constants c. nonlocal references
b. functions d. overloaded variables
ANS: C PTS: 1 REF: 447
7. The ____ is the memory allocated for the local objects of a procedure block.
a. call record c. activation heap
b. activation record d. heap record
ANS: B PTS: 1 REF: 448
13. If a parameter behaves as a constant value during execution, the parameter is passed ___.
a. by address c. by type
b. by reference d. by value
ANS: D PTS: 1 REF: 451
14. If the parameter becomes an alias for the argument, the parameter is passed ____.
a. by reference c. by value
b. by address d. by type
ANS: A PTS: 1 REF: 452
15. Pass ____ copies in the parameter value, and at the end of execution, copies out the final value of
the parameter.
a. by value c. by value-result
b. by reference d. by address
ANS: C PTS: 1 REF: 454
16. Historically, the interpretation of pass by name arguments as functions to be evaluated was
expressed by referring to them as ____.
a. chunks c. thunks
b. objects d. expressions
ANS: C PTS: 1 REF: 456
17. In a(n) ____ environment, all memory allocation can be performed at load time, and the location of
all variables are fixed for the duration of program execution.
a. dynamic c. global
b. universal d. fully static
ANS: D PTS: 1 REF: 459
18. The ____ maintains the location of the current activation record.
a. environment pointer c. stack pointer
b. activation pointer d. stack register
ANS: A PTS: 1 REF: 462
19. The pointer to the previous activation record is the ____ link.
a. reverse c. control
b. history d. return
ANS: C PTS: 1 REF: 462
20. The local variable ____ stores the distance from the environment pointer.
a. distance c. offset
b. locator d. pointer
ANS: C PTS: 1 REF: 464
22. ____ occurs when multiple access links must be followed to arrive at a nonlocal variable.
a. Access chaining c. Environmental linking
b. Lexical chaining d. Global linking
ANS: A PTS: 1 REF: 468
23. In a(n) ____ environment, activation records are not removed as long as there are references to any
of its local objects.
a. closed c. type safe
b. fully dynamic d. fully static
ANS: B PTS: 1 REF: 472
24. The process of joining a block of free memory with immediately adjacent blocks to form a larger
contiguous block of free memory is called ____.
a. consolidation c. reference counting
b. defragmenting d. coalescing
ANS: D PTS: 1 REF: 474
"No, Aunt Hester," returned the child soberly, "I was only
thinking."
"You were so quiet that I didn't even know you were in the
house. How long have you been in? I was just thinking of
sending Billy to hunt you up. No wonder Dr. Peaslee calls
you Miss Mouse, you slip around just like one."
"I've been in—oh, I don't know just how long. It wasn't a bit
dark when I came."
"I saw you running after Stray and that was my last glimpse
of you."
"I came right back; pretty soon I mean, and then I came in
the house after I had shut Stray in the wood-shed. I must
go let him out, poor doggie. He was so miserable, Aunt
Hester, for he knew he was being punished for running
away."
Just then Billy came in, Stray at his heels. The dog nosed
Ruth fawningly with much wagging of tail and twisting of
body as if trying to become on good terms with her again.
Presently a knock at the front door sent Billy to answer.
"What's the matter? You look like something was after you,"
said Billy.
"No, I don't hear anything, but—oh, never mind, I'll tell you
some time."
Ruth hesitated, then she fixed her solemn eyes upon Billy.
"He wants me, I expect," she said impressively.
Billy gave her a look. "Say, look here, what are you up to?
Is it some sort of make-believe like you and Lucia are
always playing?"
"No, it isn't. Come over here by the wood-box, Billy, and I'll
tell you if you promise not to breathe it to a soul."
"Oh, well, don't let's suppose any more till we know for
sure," said Billy. "Perhaps it isn't the same man at all, and,
if it is, perhaps he wouldn't want you to leave here. Say,
don't let's wait for her to come out to supper. I'm half-
starved and we won't have time for our lessons before
bedtime if we don't begin soon. You can keep the tea hot,
can't you?"
This they concluded to do, and it was well they did, for
nearly two hours passed before the door closed behind the
stranger, and the children had finished studying their
lessons when Miss Hester returned to them.
"You ate your supper?" she said. "That was right. I didn't
realize how late it was."
She drunk a cup of tea and ate a bit of bread as if she were
not aware of what she was doing, her face very thoughtful
meanwhile. After her meal, she sat still lost in thought, Ruth
watching her furtively.
Miss Hester drew a long sigh, and held the child closer. "It is
a difficult question, my little girl," she said.
"And I shall not, if I can help it, dear. We will not talk of it
to-night. I am to see your uncle again. One thing is sure,
you shall not leave me unless you are willing to go."
"It surely is. Come, do not think about it any more to-night.
You shall stay with me always, always, if after your uncle
has talked to you it seems to be the thing that you most
want to do."
"I want to know first," she began, "how that man knows he
is my uncle."
"He meant to come, your uncle said, but he had a hard time
of it and was not one to be very successful in this world. He
was taken ill out west and, when he knew he could not live,
he sent word to your uncle who went out and stayed with
him till he died. Before that, your father had written to your
mother but his letter was returned. It was just before he
died that your uncle promised to find you and your mother,
and if either were living to do all he could for you."
"Your uncle said that up to that time he had no idea that his
brother had left home. He had not heard from him for two
or three years, for they lived quite far apart, and your
uncle, being a successful man, had no patience with your
father who was unsuccessful. He felt that your father had
been extravagant in spending all the money which had been
left him by his father, and told him he must shift for himself.
Do you understand all this, Ruth?"
"It would seem so, dear, but I think he couldn't bear to have
your mother earning money to support him. It would have
been another to feed. Before he went away, she was
earning a little by writing for newspapers."
Ruth nodded. She remembered the constant writing
interrupted by the haunting cough. She sat thinking it all
over. After a time she turned suddenly. "One more to feed
does make a difference; Billy says so."
"Then I don't think father was so very wrong," said the child
maturely. "I can love him and be sorry for him if that is why
he went away, and I think that is the way mother felt, too.
She knew he meant to come back. I will go to bed now,
Aunt Hester."
She slipped down from Miss Hester's lap, but, as she trailed
through the door to her room, she stopped.
"There's one more thing I'd like to ask, Aunt Hester. When
is the man—my uncle, coming to see me?"
"To-morrow."
"He wasn't looking for you, but you happened to come in his
way while he was in the town on business. He says, though,
that he never has failed to look for you everywhere he has
been. Now, is that all? You will not want to get up in the
morning."
Ruth nodded gravely and crept into bed again, her mind full
of old memories and new thoughts.
CHAPTER IX
Uncle Sidney
THE next afternoon, Ruth and Billy had a long and earnest
talk in the wood-shed. The visit of her uncle had been of
enough importance for Ruth to be kept home from school
and she was now in a very excited state of mind. She had
waited with much impatience Billy's return from school, for
there were many things which she must ask him, things
which she felt she could not question Miss Hester about.
She sat now upon a tall chest, her feet dangling dejectedly.
There were marks of tears upon her face and she held her
hands nervously clasped.
"You see," Ruth was saying, "it is all for me to decide. Aunt
Hester says she cannot do it, and says it must be as I say.
My uncle talked and talked. He told me I should have music
lessons and that I should be sent to a good school and all
that. I am sure this school is good enough and I don't care
a bit about the music lessons. I'd rather know how to draw
pictures than to play the piano. You know, Billy, there is
only one thing makes me think I ought to go, and that is
Aunt Hester. You know what you said about another mouth
to feed. I'm another mouth, you know, and if it makes Aunt
Hester work so hard to feed me, maybe I ought not to
stay."
"Oh, no, for you see you haven't any relations like my Uncle
Sidney," returned Ruth. "And, besides, who would chop the
wood and do the errands, Billy? Then if you went away, who
would keep store and buy back the big house for Aunt
Hester? It would be foolish for you to go when I have an
uncle to take care of me."
"If I only wasn't another mouth," Ruth went on, "or if I were
a dog like Stray and could live on scraps, or if I were a cat
and could catch mice."
"No, he hasn't. He has only one little boy about five years
old. Billy, promise me on your sacred word and honor that
you will come and get me just as soon as you begin to keep
store, or, if Aunt Hester gets the claim, before that."
Billy nodded gravely. He wished it were not right to tell Ruth
that it would be best for her to leave them. He felt that he
would miss her sadly and that one small boy in the house
with a grave elderly woman would not have as agreeable a
time as when a youthful comrade like Ruth was on hand to
take an interest in small matters beneath the notice of their
elders.
But Ruth had been thinking, too. "I'll go, but I'm not going
to promise to stay. I'm coming back the first chance I get. If
I find a thousand dollars that nobody wants, or if I do
something like saving a train from running off the track, and
they give me a whole lot of money for it, or if—or if—the
claim comes out all right, I'll come straight back, so I just
won't think that I'm going for good, and I am going in now
to tell Aunt Hester so."
"Don't tell her it's because you know she can't afford to
keep you," charged Billy, bluntly.
"Of course not," returned Ruth. She jumped down from her
seat and went slowly back to the house. Miss Hester was
sitting at the window of her room which looked out upon the
street. She had her lap full of little garments upon which
she was sewing a missing button here, a tape there.
"He will probably buy all you need, but I don't want to have
you go away unprovided for. I suppose you must go, Ruth. I
should be doing you a wrong to encourage you to do
otherwise."
Ruth shook her head. "I'm not going to think I'll be gone
long. I will tell my uncle that I am going to stay only a little
while, that I am coming back to you and that I love you
better than him or anybody."
It was well for Miss Hester that the time for preparation was
short for Mr. Mayfield could wait only another day, and so
Ruth's belongings were hastily packed. That she might
make a good appearance, the store of clothing in the chest
up-stairs was drawn forth and all of Henrietta's things that
were in good order were packed in a small trunk. Hetty, too,
was given room, and Ruth begged that her box of pieces
might go in.
"It will make me feel like home to see all my doll rugs," she
said.
But, though Ruth would have liked dearly to have him, Miss
Hester decided otherwise.
Then, after whispering to Miss Hester, she left the room and
returned with a red silk handkerchief which Dr. Peaslee had
once brought her after a visit to the city.
Soon the carriage turned into the main street. The children
were on their way to school, and to Ruth's satisfaction, they
passed Nora Petty, to whom Ruth gave a condescending
nod. She was riding away into new splendors where Nora
could no longer twit and tease her.
As the train moved out of the station, there came over the
child an overpowering desire to jump out and run back to
Aunt Hester who loved her, to Billy and Stray, to the little
brown house which she might never see again. The big tear
drops rolled down her cheeks. She wiped them furtively
away as she kept her head turned as if looking out the
window. Her handkerchief became a damp little ball in her
hand and the telegraph poles, as they flashed by, were seen
through a watery mist. Her uncle wisely said nothing to her
for a time, but absorbed himself in his newspaper, but,
when the train boy came along, he bought some fine fruit
and a box of chocolates saying cheerfully, "Here, little girl,
don't you want to see what is in the box?"
Mr. Mayfield looked rather abashed. "To tell you the truth,
son, I didn't," he began.
Ruth heard the swish of silken skirts and down the stairs a
lady came swiftly. She was very fair and looked quite
young. Ruth had never seen any one dressed so
wonderfully, and she stared with all her eyes at the vision.
"Well, you see, Lillie, I had so much to think of. Oh, by the
way, Ruth, this is your Aunt Lillie. Did you get my telegram,
dear?"
Ruth obediently slipped the box into his hand and he gave
her a smile.
"Here, Bertie," he said, "see what Cousin Ruth has for you.
Papa didn't bring you any candy, but Cousin Ruth did."
"Nobody, miss," was the reply. "It's one of the spare rooms,
but it ain't often used except when there's more company
than common. But I sleep just down the hall in one of the
back rooms."
CHAPTER X
Homesick
"Ruth won't let me have that old doll and I'm going to get
it, I am. I'll smash it all to pieces," cried Bertie, dancing up
and down in a fury.
"Why don't you let him have it, Ruth?" said Mrs. Mayfield.
"I'll get you a better one."
"I don't want a better one," replied Ruth, fiercely. "I don't
want any but this. There isn't another like her and you
couldn't get me one that would be half so dear."
"Yes, I do, I do. It's ugly and I'm going to. Make her give it
to me, mamma."
But Ruth held steadfastly to her own. "I don't want any
other and I couldn't give this away to be broken up," she
said. "She's the only one of the family I have here to
remind me of my home, and I can't give her up."
Whereupon, Bertie burst into screams of anger and
disappointment, flinging himself upon the floor in one of his
fits of temper.
"After all your uncle has done for you, I think it is a very
little thing to ask," said Mrs. Mayfield in an offended way,
addressing Ruth. Then meeting no response, she took a
different tone. "You must give it to him, Ruth. I wish you to
obey me."
"Oh, Aunt Lillie, I can't." The tears came into Ruth's eyes as
she held Hetty more tightly.
"I won't," she said. Then she started for the door. "I reckon
you wouldn't give your child either, to be torn to pieces by a
—by a—wicked Thing," she cried as she reached the door.
"He is younger than you," was always the plea, and Ruth,
though not always with a good grace, yielded the point. But
here was an issue which she felt was a different one from
any that she had been called upon to meet.
"It isn't right; it isn't," she said over and over to herself as
she climbed the stairs. "Aunt Hester wouldn't make me do
it. I know she wouldn't. Why Aunt Hester loves Hetty and
Dr. Peaslee does and Billy, and—why they would think it as
bad as throwing a baby to the crocodiles like a heathen
mother. I'll have to hide you, Hetty darling, like Moses in
the bulrushes or like they had to hide the babies from
wicked old Herod. Bertie is just like Herod, so he is. I don't
love him one bit, and I am going to write to Aunt Hester,
and tell her all about it. Oh, where can I hide you, my
darling Hetty, so the wicked evil foe will not seek you?"
"Oh, but wouldn't you like some nice candy and a pretty
toy? Let Katie dress you and take you out to get you
something nice? We won't get Ruth anything, will we? She
shall not go with you and Katie."
At last Bertie was pacified and was led away by the long-
suffering nurse while Ruth remained in her room.
Mademoiselle was out for the afternoon, and when she had
completed the task the governess had set her to do, she
would be free to do as she chose.
She closed her door softly and looked around the room for a
hiding-place. None seemed possible at first, but at last Ruth
discovered a safe one. A small window seat had been placed
before the one window. It opened and shut like a box.
Between the back of this box and the wall under the window
there was a space over which a small board had been
placed to cover the space which was caused by a slight
jutting out of the window, making an irregular opening.
Ruth found that she could lift the board, shove it back in
place and cover it again with the cushion of the seat. She
gave Hetty a loving kiss and stowed her away in this
retreat.
Her aunt treated her with cold disdain when they next met
and Ruth gave her head a little defiant toss.
"If she 'spises me, I reckon I can 'spise her," she told
herself, and more than ever she kept out of the way.
She had been in her aunt's rooms but seldom, though the
magnificence of them charmed her. On the dressing-table
were such beautiful shining things; the soft couch was piled
high with wonderfully embroidered cushions, and the whole
place was always redolent with some faint sweet odor. The
costumes which Mrs. Mayfield wore, too, were such as Ruth
thought fit for a queen. Once or twice she had seen her
sweeping down the stairway in exquisite evening dress and
she wondered what Nora Petty would say if she knew Ruth
were living in the same house as such a fairylike being.
Bertie did not forgot the doll in spite of the candy and the
new toy with which his mother had provided him, and the
very next day he climbed the stairs to the top floor bent on
finding Hetty. It was sufficient for Bertie to be denied a
thing for him to want it beyond anything else. He looked
around the room. No doll was in sight, but on Ruth's
washstand stood the little flowery mug, Billy's parting gift.
Possessing himself of this, he went down to the nursery
where Ruth was reciting her "J'ai, tu as, il a."
"You may play wis har, of course. Go get zis doll, zis poupée
but say first what is doll. It is poupée, poupée. Repeat."
"Say, zen to your cousin, 'I give you my doll—Je vous donne
ma poupée.' Repeat."
Ruth faced her, very pale. "What will you do?" she asked
slowly.
"Then I will tell my uncle and I will ask him, too, if I must
give my precious doll to Bertie to break up. I will tell him all
about my Hetty and I know he will not make me give her
up."
For answer Bertie dashed out in the hall, held aloft the mug
for a moment and then flung it down over the baluster. It
went crashing into a hundred bits upon the marble tiling in
the hall below. Having thus spent his fury, Bertie dashed
away with an impish look over his shoulder.
"Oh, Martin," said Ruth, "it is my dear little mug. Bertie got
it from my room and threw it down here. Can it be mended,
do you think?"
The man held out the dust-pan and Ruth selected a piece
upon which a rose still showed entire. "I'll keep this
forever," she said. "Thank you, Martin."
The man shook his head as he looked after her making her
way to the upper floor. "That spoiled young un," he
muttered. "I'd just like to see him get one good spanking."
As his step rang upon the tiled floor, she went to meet him.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
testbankfan.com