Professional Documents
Culture Documents
MULTIPLE CHOICE
a. 1, 2, 3, 4
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 3
d. 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
ANS: D
a. 1, 2, 3, 4
b. 0, 1, 2, 3, 4
c. 0, 1, 2, 3
d. 4, 5, 6, 7, 8, 9, 10, 11, 12, 13
ANS: C
a. 3 b. 4 c. 1 d. 3 4
4 5 3 6 8
6 5 2
8 6 4
ANS: A
a. 3 b. 4 c. 1 d. 3 4
4 5 3 6 8
6 5 2
8 6 4
ANS: A
a. 5 b. 5 c. 5 d. 2
7 5 5 5
7.5 7 3
7 7 7
ANS: B
a. While
b. For
c. Repeat ... Until
d. Do ... While
e. all of the above can be nested in a For loop
ANS: E
a. 13 b. 7 c. 7 6 d. 13
14 6 7 7 14
15 7 8 6 14
8 8 7 15
ANS: D
8. What will be displayed after code corresponding to the following pseudocode is run?
Declare A As Integer
Declare B As Integer
Declare C As Integer
Set A = 3
While A <= 6
Set B = (2 * A) – 1
Write B
Set C = A
While C <= (A+1)
Write C
Set C = C + 1
End While(C)
Set A = A + 2
End While(A)
a. 5 b. 3 c. 5 d. 5
3 5 3 3
9 4 4 3
5 5 9 9
9 5 5
5 6 5
ANS: C
9. Which of the following statements should be used to validate that a number input by the
user into a variable named Widgets is an integer value?
a. 4.41
b. 3.5
c. 3.91
d. 4.5
ANS: B
13. What is the output of the code corresponding to the following pseudocode?
Declare M As Integer
Declare P As Integer
Repeat
Set P = 1
While P < 4
Write M + “ and “ + P
Set P = P + 1
End While(P)
Set M = M + 1
Until M = 3
14. Which statement would produce an output of one of the following numbers:
5, 6, 7, 8, 9, 10
a. Floor(Random() * 5) + 5
b. Floor(Random() * 6) + 5
c. Floor(Random()) + 5
d. Floor(Random() * 9) - 5
ANS: A
15. What is displayed when the following pseudocode is coded and run, given that the input is
“Harold”?
TRUE/FALSE
1. True/False: It is possible to have both a Select Case statement and an If-Then
structure within a single loop.
ANS: T
4. True/False: If one For loop is nested within another, then the limit value for the two loops
must be different.
ANS: F
14. True/False: In a program with nested loops, the inner loop is completed before the outer
loop.
ANS: T
SHORT ANSWER
1. Numbers that form an unpredictable sequence in which each number is equally likely to oc-
cur are called __________ __________.
ANS: random numbers
3. The starting value of an algorithm used to generate a range of numbers is called the
_________.
ANS: seed
5. When one loop is contained within another loop, we say these are __________ loops.
ANS: nested
6. The statement
If Int(Number) != Number Then...
checks to see if the value of Number is a(n) _________.
ANS: integer
7. In a program with nested loops, the outer loop is completed __________ (before/after) the
inner loop.
ANS: after
8. If a counter named MyCount in a For loop has the value of 5 on the first pass, 10 on the
second pass, 15 on the third pass, and so on, the increment would be written as
__________.
ANS: MyCount+5
9. If a counter named MyCount in a For loop has the initial value of 5 on the first pass and
we want it to go through 4 iterations, increasing its value by 5 on each pass, the test
condition would be written as __________.
ANS: MyCount <= 20 or MyCount < 21
10. The function that returns the number of characters in a string is the __________ function.
ANS: Length_Of()
First wipe, and then, without paring, slice into a stone jar some
young and quickly-grown cucumbers; pour on them as much boiling
vinegar as will cover them well, with a teaspoonful of salt, and two-
thirds as much of peppercorns to the pint and a half of vinegar: it
may remain on them for a month, or even for two, if well defended
from the air: it should then be strained, allowed to settle, and poured
quite clear into small dry bottles, which should be well corked. A mild
onion can be intermixed with the cucumbers, when its flavour is
considered an improvement.
CELERY VINEGAR.
Throw into a pint and a half of ready boiling vinegar a few grains of
cayenne, or half an ounce of peppercorns, a large saltspoonful of
salt, and a pint of the white part of the roots and stems of some fine
fresh celery sliced up thin: let it boil for two or three minutes, turn it
into a stone jar, and secure it well from the air as soon as it is cold. It
may be strained off and bottled in three or four weeks, but may
remain as many months in the jar without injury.
ESCHALOT, OR GARLIC VINEGAR.
This is a far more useful preparation even than the preceding one,
since it can be used to impart the flavour of the eschalot to dishes for
which acid is not required. Peel and slice, or bruise, four ounces of
eschalots, put them into a bottle, and add to them a pint of sherry; in
a fortnight pour off the wine, and should it not be strongly flavoured
with the eschalots, steep in it two ounces more, for another fortnight;
a half-teaspoonful of cayenne may be added at first. The bottle
should be shaken occasionally, while the eschalots are infusing, but
should remain undisturbed for the last two or three days, that the
wine may be clear when it is poured off to bottle for keeping. Sweet-
basil wine is made by steeping the fresh leaves of the herb in wine,
from ten to fifteen days.
Eschalots, 4 oz.; sherry, 1 pint: 15 days, or more.
HORSERADISH VINEGAR.
Peel small, sound, freshly-gathered flaps, cut off the stems, and
scrape out the fur entirely; then arrange the mushrooms singly on
tins or dishes, and dry them as gradually as possible in a gentle
oven. Put them, when they are done, into tin canisters, and store
them where they will be secure from damp. French cooks give them
a single boil in water, from which they then are well drained, and
dried, as usual. When wanted for table, they should be put into cold
gravy, slowly heated, and gently simmered, until they are tender.
MUSHROOM POWDER.
When the mushrooms have been prepared with great nicety, and
dried, as in the foregoing receipt, pound them to a very fine powder;
sift it, and put it immediately into small and perfectly dry bottles; cork
and seal them without delay, for if the powder be long exposed to the
air, so as to imbibe any humidity, or if it be not well secured from it in
the bottles, it will be likely to become putrid: much of that which is
purchased, even at the best Italian warehouses, is found to be so,
and, as it is sold at a very high price, it is a great economy, as well
as a surer plan, to have it carefully prepared at home. It is an
exceedingly useful store, and an excellent addition to many dishes
and sauces. To insure its being good, the mushrooms should be
gathered in dry weather, and if any addition of spices be made to the
powder (some persons mix with it a seasoning of mace and
cayenne), they should be put into the oven for a while before they
are used: but even these precautions will not be sufficient, unless the
powder be stored in a very dry place after it is bottled. A teaspoonful
of it, with a quarter of a pint of strong veal gravy, as much cream,
and a small dessertspoonful of flour, will make a good béchamel or
white sauce.
EXCELLENT POTATO FLOUR, OR ARROW-ROOT.
Rub four ounces of the best Durham mustard very smooth with a
full teaspoonful of salt, and wet it by degrees with strong horseradish
vinegar, a dessertspoonful of cayenne, or of chili vinegar, and one or
two of tarragon vinegar when its flavour is not disliked. A quarter of a
pint of vinegar poured boiling upon an ounce of scraped horseradish,
and left for one night, closely covered, will be ready to use for this
mustard, but it will be better for standing two or three days.
Durham mustard, 4 oz.; salt, large teaspoonful; cayenne, or chili
vinegar, 1 dessertspoonful; horseradish vinegar, third of pint.
Obs.—This is an exceedingly pungent compound, but has many
approvers.
ANOTHER TARTAR MUSTARD.
Mix the salt and mustard smoothly, with equal parts of horseradish
vinegar, and of chili vinegar. Mustard made by these receipts will
keep long, if put into jars or bottles and closely corked. Cucumber,
eschalot, or any other of the flavoured vinegars for which we have
given receipts, may in turn be used for it, and mushroom, gherkin, or
India pickle-liquor, likewise.
CHAPTER VIII.
Forcemeats.
GENERAL REMARKS.